Class KeycloakAuthenticationProvider
java.lang.Object
org.keycloak.adapters.springsecurity.authentication.KeycloakAuthenticationProvider
- All Implemented Interfaces:
org.springframework.security.authentication.AuthenticationProvider
public class KeycloakAuthenticationProvider
extends Object
implements org.springframework.security.authentication.AuthenticationProvider
Performs authentication on a
KeycloakAuthenticationToken.- Version:
- $Revision: 1 $
- Author:
- Scott Rossillo
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionorg.springframework.security.core.Authenticationauthenticate(org.springframework.security.core.Authentication authentication) voidsetGrantedAuthoritiesMapper(org.springframework.security.core.authority.mapping.GrantedAuthoritiesMapper grantedAuthoritiesMapper) boolean
-
Constructor Details
-
KeycloakAuthenticationProvider
public KeycloakAuthenticationProvider()
-
-
Method Details
-
setGrantedAuthoritiesMapper
public void setGrantedAuthoritiesMapper(org.springframework.security.core.authority.mapping.GrantedAuthoritiesMapper grantedAuthoritiesMapper) -
authenticate
public org.springframework.security.core.Authentication authenticate(org.springframework.security.core.Authentication authentication) throws org.springframework.security.core.AuthenticationException - Specified by:
authenticatein interfaceorg.springframework.security.authentication.AuthenticationProvider- Throws:
org.springframework.security.core.AuthenticationException
-
supports
- Specified by:
supportsin interfaceorg.springframework.security.authentication.AuthenticationProvider
-