Merge pull request #2361 from mposolda/master
KEYCLOAK-2628 protected method to IdpCreateUserIfUniqueAuthenticator …
This commit is contained in:
commit
18c0e8946a
1 changed files with 7 additions and 1 deletions
|
@ -88,7 +88,7 @@ public class IdpCreateUserIfUniqueAuthenticator extends AbstractIdpAuthenticator
|
||||||
federatedUser.addRequiredAction(UserModel.RequiredAction.UPDATE_PASSWORD);
|
federatedUser.addRequiredAction(UserModel.RequiredAction.UPDATE_PASSWORD);
|
||||||
}
|
}
|
||||||
|
|
||||||
// TODO: Event
|
userRegisteredSuccess(context, federatedUser, serializedCtx, brokerContext);
|
||||||
|
|
||||||
context.setUser(federatedUser);
|
context.setUser(federatedUser);
|
||||||
context.getClientSession().setNote(BROKER_REGISTERED_NEW_USER, "true");
|
context.getClientSession().setNote(BROKER_REGISTERED_NEW_USER, "true");
|
||||||
|
@ -140,6 +140,12 @@ public class IdpCreateUserIfUniqueAuthenticator extends AbstractIdpAuthenticator
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
// Empty method by default. This exists, so subclass can override and add callback after new user is registered through social
|
||||||
|
protected void userRegisteredSuccess(AuthenticationFlowContext context, UserModel registeredUser, SerializedBrokeredIdentityContext serializedCtx, BrokeredIdentityContext brokerContext) {
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public boolean requiresUser() {
|
public boolean requiresUser() {
|
||||||
return false;
|
return false;
|
||||||
|
|
Loading…
Reference in a new issue