Merge pull request #1749 from cfsnyder/master
KEYCLOAK-1863 added both issuer and account name to otp configuration
This commit is contained in:
commit
23546402fa
3 files changed
+16
-5
No files matched your search
+1
-1
@@ -51,7 +51,7 @@ public class TotpBean {
|
||||
|
||||
this.totpSecret = randomString(20);
|
||||
this.totpSecretEncoded = Base32.encode(totpSecret.getBytes());
|
||||
this.keyUri = realm.getOTPPolicy().getKeyURI(realm, this.totpSecret);
|
||||
this.keyUri = realm.getOTPPolicy().getKeyURI(realm, user, this.totpSecret);
|
||||
}
|
||||
|
||||
private static String randomString(int length) {
|
||||
|
||||
+1
-1
@@ -49,7 +49,7 @@ public class TotpBean {
|
||||
|
||||
this.totpSecret = HmacOTP.generateSecret(20);
|
||||
this.totpSecretEncoded = Base32.encode(totpSecret.getBytes());
|
||||
this.keyUri = realm.getOTPPolicy().getKeyURI(realm, this.totpSecret);
|
||||
this.keyUri = realm.getOTPPolicy().getKeyURI(realm, user, this.totpSecret);
|
||||
}
|
||||
|
||||
public boolean isEnabled() {
|
||||
|
||||
Reference in new issue
Block a user