Interface KeycloakAuthorization

All Superinterfaces:
AuthorizationProvider

public interface KeycloakAuthorization extends AuthorizationProvider
Implementation of the Keycloak Authorization Provider.
Author:
Paulo Lopes.
  • Method Details

    • create

      static KeycloakAuthorization create()
      Factory method to create an Authorization Provider for tokens adhering to the Keycloak token format. When the user is known to not be a JWT, (e.g.: a OAuth2 response token) then the root claim is expected to be the extracted from the user User.attributes() under the key: accessToken.
      Returns:
      a AuthorizationProvider