KEYCLOAK-12425 Encode userid with Base64Url. (#6585)

This commit is contained in:
jacac 2019-12-16 11:40:27 -08:00 committed by Marek Posolda
parent 4c17fa8664
commit 3ae508e1b9

View file

@ -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());