Skip to content

Commit

Permalink
update to KC23
Browse files Browse the repository at this point in the history
  • Loading branch information
dasniko committed Nov 23, 2023
1 parent f308bc7 commit 5cd7a30
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
<properties>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<aws.version>2.17.209</aws.version>
<keycloak.version>22.0.0</keycloak.version>
<keycloak.version>23.0.0</keycloak.version>
<maven.compiler.version>3.11.0</maven.compiler.version>
<maven.compiler.release>17</maven.compiler.release>
<maven-shade.version>3.2.4</maven-shade.version>
Expand Down

0 comments on commit 5cd7a30

Please sign in to comment.