Package io.dialob.boot.security
Class OAuth2AuthenticationStrategy
- java.lang.Object
-
- io.dialob.boot.security.OAuth2AuthenticationStrategy
-
- All Implemented Interfaces:
AuthenticationStrategy
public class OAuth2AuthenticationStrategy extends Object implements AuthenticationStrategy
-
-
Constructor Summary
Constructors Constructor Description OAuth2AuthenticationStrategy(org.springframework.security.core.authority.mapping.GrantedAuthoritiesMapper grantedAuthoritiesMapper, org.springframework.security.oauth2.client.endpoint.OAuth2AccessTokenResponseClient<org.springframework.security.oauth2.client.endpoint.OAuth2AuthorizationCodeGrantRequest> accessTokenResponseClient)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description org.springframework.security.config.annotation.web.builders.HttpSecurityconfigureAuthentication(org.springframework.security.config.annotation.web.builders.HttpSecurity http, org.springframework.security.authentication.AuthenticationManager authenticationManager)io.dialob.security.user.CurrentUserProvidercurrentUserProviderBean()-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface io.dialob.security.spring.AuthenticationStrategy
configure
-
-
-
-
Constructor Detail
-
OAuth2AuthenticationStrategy
public OAuth2AuthenticationStrategy(@NonNull org.springframework.security.core.authority.mapping.GrantedAuthoritiesMapper grantedAuthoritiesMapper, @NonNull org.springframework.security.oauth2.client.endpoint.OAuth2AccessTokenResponseClient<org.springframework.security.oauth2.client.endpoint.OAuth2AuthorizationCodeGrantRequest> accessTokenResponseClient)
-
-
Method Detail
-
configureAuthentication
public org.springframework.security.config.annotation.web.builders.HttpSecurity configureAuthentication(@NonNull org.springframework.security.config.annotation.web.builders.HttpSecurity http, @Nullable org.springframework.security.authentication.AuthenticationManager authenticationManager) throws Exception- Specified by:
configureAuthenticationin interfaceAuthenticationStrategy- Throws:
Exception
-
currentUserProviderBean
public io.dialob.security.user.CurrentUserProvider currentUserProviderBean()
- Specified by:
currentUserProviderBeanin interfaceAuthenticationStrategy
-
-