79         AuthenticationSessionModel clientSession = context.getAuthenticationSession();
    81         SerializedBrokeredIdentityContext serializedCtx = SerializedBrokeredIdentityContext.readFromAuthenticationSession(clientSession, 
BROKERED_CONTEXT_NOTE);
    82         if (serializedCtx == null) {
    83             throw new AuthenticationFlowException(
"Not found serialized context in clientSession", AuthenticationFlowError.IDENTITY_PROVIDER_ERROR);
    85         BrokeredIdentityContext brokerContext = serializedCtx.deserialize(context.getSession(), clientSession);
    87         if (!brokerContext.getIdpConfig().isEnabled()) {
    88             sendFailureChallenge(context, Response.Status.BAD_REQUEST, Errors.IDENTITY_PROVIDER_ERROR, Messages.IDENTITY_PROVIDER_UNEXPECTED_ERROR, AuthenticationFlowError.IDENTITY_PROVIDER_ERROR);
    91         actionImpl(context, serializedCtx, brokerContext);
 void sendFailureChallenge(AuthenticationFlowContext context, Response.Status status, String eventError, String errorMessage, AuthenticationFlowError flowError)
Definition: AbstractIdpAuthenticator.java:97
 
static final String BROKERED_CONTEXT_NOTE
Definition: AbstractIdpAuthenticator.java:42
 
abstract void actionImpl(AuthenticationFlowContext context, SerializedBrokeredIdentityContext serializedCtx, BrokeredIdentityContext brokerContext)