public class OIDCAuthenticationProvider extends Object implements org.springframework.security.authentication.AuthenticationProvider
| Constructor and Description |
|---|
OIDCAuthenticationProvider() |
| Modifier and Type | Method and Description |
|---|---|
org.springframework.security.core.Authentication |
authenticate(org.springframework.security.core.Authentication authentication) |
protected org.springframework.security.core.Authentication |
createAuthenticationToken(PendingOIDCAuthenticationToken token,
Collection<? extends org.springframework.security.core.GrantedAuthority> authorities,
UserInfo userInfo)
Override this function to return a different kind of Authentication, processes the authorities differently,
or do post-processing based on the UserInfo object.
|
void |
setAuthoritiesMapper(OIDCAuthoritiesMapper authoritiesMapper) |
void |
setUserInfoFetcher(UserInfoFetcher userInfoFetcher) |
boolean |
supports(Class<?> authentication) |
public OIDCAuthenticationProvider()
public org.springframework.security.core.Authentication authenticate(org.springframework.security.core.Authentication authentication) throws org.springframework.security.core.AuthenticationException
authenticate in interface org.springframework.security.authentication.AuthenticationProviderorg.springframework.security.core.AuthenticationExceptionprotected org.springframework.security.core.Authentication createAuthenticationToken(PendingOIDCAuthenticationToken token, Collection<? extends org.springframework.security.core.GrantedAuthority> authorities, UserInfo userInfo)
token - authorities - userInfo - public void setUserInfoFetcher(UserInfoFetcher userInfoFetcher)
userInfoFetcher - public void setAuthoritiesMapper(OIDCAuthoritiesMapper authoritiesMapper)
authoritiesMapper - Copyright © 2018. All rights reserved.