From 5cd7a30f5e53e6b67b74cbabdcec45665ef7b7e3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Niko=20Ko=CC=88bler?= Date: Thu, 23 Nov 2023 21:40:22 +0100 Subject: [PATCH] update to KC23 --- .../passkey/registration/RegistrationUserCreationNoAccount.java | 2 +- .../main/java/dasniko/keycloak/passkey/registration/Utils.java | 2 +- pom.xml | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/passkey/src/main/java/dasniko/keycloak/passkey/registration/RegistrationUserCreationNoAccount.java b/passkey/src/main/java/dasniko/keycloak/passkey/registration/RegistrationUserCreationNoAccount.java index d085f2a..a47c561 100644 --- a/passkey/src/main/java/dasniko/keycloak/passkey/registration/RegistrationUserCreationNoAccount.java +++ b/passkey/src/main/java/dasniko/keycloak/passkey/registration/RegistrationUserCreationNoAccount.java @@ -58,7 +58,7 @@ public void validate(ValidationContext context) { context.getEvent().detail(Details.REGISTER_METHOD, "form"); UserProfileProvider profileProvider = context.getSession().getProvider(UserProfileProvider.class); - UserProfile profile = profileProvider.create(UserProfileContext.REGISTRATION_PROFILE, formData); + UserProfile profile = profileProvider.create(UserProfileContext.REGISTRATION, formData); // We check if the email address is already in use. // If yes, we return an error that is displayed to the user. diff --git a/passkey/src/main/java/dasniko/keycloak/passkey/registration/Utils.java b/passkey/src/main/java/dasniko/keycloak/passkey/registration/Utils.java index 5d5bf88..6c71664 100644 --- a/passkey/src/main/java/dasniko/keycloak/passkey/registration/Utils.java +++ b/passkey/src/main/java/dasniko/keycloak/passkey/registration/Utils.java @@ -83,7 +83,7 @@ static void createUserFromAuthSessionNotes(AuthenticationFlowContext context) { KeycloakSession session = context.getSession(); UserProfileProvider profileProvider = session.getProvider(UserProfileProvider.class); - UserProfile profile = profileProvider.create(UserProfileContext.REGISTRATION_USER_CREATION, userAttributes); + UserProfile profile = profileProvider.create(UserProfileContext.REGISTRATION, userAttributes); UserModel user = profile.create(); user.setEnabled(true); diff --git a/pom.xml b/pom.xml index d4315fd..03abf24 100644 --- a/pom.xml +++ b/pom.xml @@ -30,7 +30,7 @@ UTF-8 2.17.209 - 22.0.0 + 23.0.0 3.11.0 17 3.2.4