@Override public boolean requireReauthentication(UserSessionModel userSession, AuthenticationSessionModel authSession) { return "true".equals(authSession.getClientNote(CASLoginProtocol.RENEW_PARAM)); }
public static Optional<String> readScope(AuthenticationFlowContext context) { Object scope = context.getAuthenticationSession().getClientNote(OAuth2Constants.SCOPE); return Optional.ofNullable(scope) .map(Object::toString); }