Merge pull request #2361 from mposolda/master

KEYCLOAK-2628 protected method to IdpCreateUserIfUniqueAuthenticator …
This commit is contained in:
Marek Posolda 2016-03-11 11:08:17 +01:00
commit 18c0e8946a

View file

@ -88,7 +88,7 @@ public class IdpCreateUserIfUniqueAuthenticator extends AbstractIdpAuthenticator
federatedUser.addRequiredAction(UserModel.RequiredAction.UPDATE_PASSWORD);
}
// TODO: Event
userRegisteredSuccess(context, federatedUser, serializedCtx, brokerContext);
context.setUser(federatedUser);
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
public boolean requiresUser() {
return false;