public class OAuth2SessionAuthenticationProvider extends Object implements org.springframework.security.authentication.AuthenticationProvider
AuthenticationProvider
that authenticates a user using a
OAuth2SessionAuthenticationToken
.OAuth2SessionAuthenticationFilter
Constructor and Description |
---|
OAuth2SessionAuthenticationProvider(OAuth2UserDetailsService userDetailsService,
StatelessUtil util) |
Modifier and Type | Method and Description |
---|---|
org.springframework.security.core.Authentication |
authenticate(org.springframework.security.core.Authentication authentication) |
protected org.springframework.security.core.Authentication |
createSuccessAuthentication(OAuth2UserDetails user,
OAuth2SessionToken sessionToken) |
protected Collection<org.springframework.security.core.GrantedAuthority> |
getAuthorities(OAuth2UserDetails user,
OAuth2SessionToken sessionToken) |
boolean |
supports(Class<?> authentication) |
protected void |
validateJWT(com.nimbusds.jwt.SignedJWT jwt) |
protected void |
validateUserDetails(OAuth2UserDetails userDetails,
String clientId,
OAuth2SessionToken sessionToken) |
public OAuth2SessionAuthenticationProvider(OAuth2UserDetailsService userDetailsService, StatelessUtil util)
public boolean supports(Class<?> authentication)
supports
in interface org.springframework.security.authentication.AuthenticationProvider
public org.springframework.security.core.Authentication authenticate(org.springframework.security.core.Authentication authentication)
authenticate
in interface org.springframework.security.authentication.AuthenticationProvider
protected org.springframework.security.core.Authentication createSuccessAuthentication(OAuth2UserDetails user, OAuth2SessionToken sessionToken)
protected Collection<org.springframework.security.core.GrantedAuthority> getAuthorities(OAuth2UserDetails user, OAuth2SessionToken sessionToken)
protected void validateJWT(com.nimbusds.jwt.SignedJWT jwt) throws ParseException
ParseException
protected void validateUserDetails(OAuth2UserDetails userDetails, String clientId, OAuth2SessionToken sessionToken)
Copyright © 2021. All rights reserved.