public class AppAuthManager extends AuthenticationManager
Modifier and Type | Class and Description |
---|---|
static class |
AppAuthManager.BearerTokenAuthenticator |
AuthenticationManager.AuthenticationStatus, AuthenticationManager.AuthResult
AUTH_TIME, CLIENT_LOGOUT_STATE, END_AFTER_REQUIRED_ACTIONS, FORM_USERNAME, INVALIDATE_ACTION_TOKEN, KEYCLOAK_IDENTITY_COOKIE, KEYCLOAK_LOGOUT_PROTOCOL, KEYCLOAK_REMEMBER_ME, KEYCLOAK_SESSION_COOKIE, logger, SET_REDIRECT_URI_AFTER_REQUIRED_ACTIONS, SSO_AUTH, USER_SESSION_PERSISTENT_STATE
Constructor and Description |
---|
AppAuthManager() |
Modifier and Type | Method and Description |
---|---|
AuthenticationManager.AuthResult |
authenticateIdentityCookie(KeycloakSession session,
RealmModel realm) |
static String |
extractAuthorizationHeaderToken(javax.ws.rs.core.HttpHeaders headers)
Extracts the token string from the Authorization Bearer Header.
|
static String |
extractAuthorizationHeaderTokenOrReturnNull(javax.ws.rs.core.HttpHeaders headers)
Extracts the token string from the Authorization Bearer Header.
|
actionRequired, authenticateIdentityCookie, backchannelLogout, backchannelLogout, backchannelLogout, backchannelLogoutUserFromClient, browserLogout, createIdentityToken, createLoginCookie, createRememberMeCookie, createRequiredAction, evaluateRequiredActionTriggers, executionActions, expireCookie, expireIdentityCookie, expireOldAuthSessionCookie, expireOldIdentityCookie, expireRememberMeCookie, expireUserSessionCookie, finishBrowserLogout, finishedRequiredActions, finishUnconfirmedUserSession, getAccountCookiePath, getClientLogoutAction, getIdentityCookiePath, getOldCookiePath, getRealmCookiePath, getRememberMeUsername, getSessionIdFromSessionCookie, isOfflineSessionValid, isSessionValid, isSSOAuthentication, logSuccess, lookupUserForBruteForceLog, nextActionAfterAuthentication, nextRequiredAction, redirectAfterSuccessfulFlow, redirectAfterSuccessfulFlow, redirectToRequiredActions, setClientLogoutAction, setClientScopesInSession, setKcActionStatus, verifyIdentityToken
public AuthenticationManager.AuthResult authenticateIdentityCookie(KeycloakSession session, RealmModel realm)
authenticateIdentityCookie
in class AuthenticationManager
public static String extractAuthorizationHeaderTokenOrReturnNull(javax.ws.rs.core.HttpHeaders headers)
headers
- public static String extractAuthorizationHeaderToken(javax.ws.rs.core.HttpHeaders headers)
headers
- javax.ws.rs.NotAuthorizedException
- if the Authorization header is not of type Bearer, or the token string is missing.Copyright © 2021 JBoss by Red Hat. All rights reserved.