KEYCLOAK-12425 Encode userid with Base64Url. (#6585)
This commit is contained in:
parent
4c17fa8664
commit
3ae508e1b9
1 changed files with 1 additions and 1 deletions
|
@ -86,7 +86,7 @@ public class WebAuthnRegister implements RequiredActionProvider, CredentialRegis
|
|||
@Override
|
||||
public void requiredActionChallenge(RequiredActionContext context) {
|
||||
UserModel userModel = context.getUser();
|
||||
String userid = userModel.getId();
|
||||
String userid = Base64Url.encode(userModel.getId().getBytes());
|
||||
String username = userModel.getUsername();
|
||||
Challenge challenge = new DefaultChallenge();
|
||||
String challengeValue = Base64Url.encode(challenge.getValue());
|
||||
|
|
Loading…
Reference in a new issue