Class AppAuthManager

java.lang.Object
org.keycloak.services.managers.AuthenticationManager
org.keycloak.services.managers.AppAuthManager

public class AppAuthManager extends AuthenticationManager
Author:
Bill Burke, Stian Thorgersen
  • Constructor Details

    • AppAuthManager

      public AppAuthManager()
  • Method Details

    • authenticateIdentityCookie

      public AuthenticationManager.AuthResult authenticateIdentityCookie(KeycloakSession session, RealmModel realm)
      Overrides:
      authenticateIdentityCookie in class AuthenticationManager
    • extractAuthorizationHeaderTokenOrReturnNull

      public static String extractAuthorizationHeaderTokenOrReturnNull(jakarta.ws.rs.core.HttpHeaders headers)
      Extracts the token string from the Authorization Bearer Header.
      Parameters:
      headers -
      Returns:
      the token string or null if the Authorization header is not of type Bearer, or the token string is missing.
    • extractAuthorizationHeaderToken

      public static String extractAuthorizationHeaderToken(jakarta.ws.rs.core.HttpHeaders headers)
      Extracts the token string from the Authorization Bearer Header.
      Parameters:
      headers -
      Returns:
      the token string or null of the Authorization header is missing
      Throws:
      jakarta.ws.rs.NotAuthorizedException - if the Authorization header is not of type Bearer, or the token string is missing.