Package com.azure.spring.aad.webapp
Class AADWebSecurityConfigurerAdapter
- java.lang.Object
-
- org.springframework.security.config.annotation.web.configuration.WebSecurityConfigurerAdapter
-
- com.azure.spring.aad.webapp.AADWebSecurityConfigurerAdapter
-
- All Implemented Interfaces:
org.springframework.security.config.annotation.SecurityConfigurer<javax.servlet.Filter,org.springframework.security.config.annotation.web.builders.WebSecurity>,org.springframework.security.config.annotation.web.WebSecurityConfigurer<org.springframework.security.config.annotation.web.builders.WebSecurity>
- Direct Known Subclasses:
AADWebApplicationConfiguration.DefaultAADWebSecurityConfigurerAdapter
public abstract class AADWebSecurityConfigurerAdapter extends org.springframework.security.config.annotation.web.configuration.WebSecurityConfigurerAdapterAbstract configuration class, used to make AzureClientRegistrationRepository and AuthzCodeGrantRequestEntityConverter take effect.
-
-
Field Summary
Fields Modifier and Type Field Description protected AADAuthenticationPropertiespropertiesAAD authentication properties
-
Constructor Summary
Constructors Constructor Description AADWebSecurityConfigurerAdapter()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected org.springframework.security.oauth2.client.endpoint.OAuth2AccessTokenResponseClient<org.springframework.security.oauth2.client.endpoint.OAuth2AuthorizationCodeGrantRequest>accessTokenResponseClient()Gets the access token response client.protected voidconfigure(org.springframework.security.config.annotation.web.builders.HttpSecurity http)protected org.springframework.security.web.authentication.logout.LogoutSuccessHandleroidcLogoutSuccessHandler()Gets the OIDC logout success handler.protected org.springframework.security.oauth2.client.web.OAuth2AuthorizationRequestResolverrequestResolver()Gets the request resolver.-
Methods inherited from class org.springframework.security.config.annotation.web.configuration.WebSecurityConfigurerAdapter
authenticationManager, authenticationManagerBean, configure, configure, getApplicationContext, getHttp, init, setApplicationContext, setAuthenticationConfiguration, setContentNegotationStrategy, setObjectPostProcessor, setTrustResolver, userDetailsService, userDetailsServiceBean
-
-
-
-
Field Detail
-
properties
@Autowired protected AADAuthenticationProperties properties
AAD authentication properties
-
-
Method Detail
-
configure
protected void configure(org.springframework.security.config.annotation.web.builders.HttpSecurity http) throws Exception- Overrides:
configurein classorg.springframework.security.config.annotation.web.configuration.WebSecurityConfigurerAdapter- Throws:
Exception
-
oidcLogoutSuccessHandler
protected org.springframework.security.web.authentication.logout.LogoutSuccessHandler oidcLogoutSuccessHandler()
Gets the OIDC logout success handler.- Returns:
- the OIDC logout success handler
-
accessTokenResponseClient
protected org.springframework.security.oauth2.client.endpoint.OAuth2AccessTokenResponseClient<org.springframework.security.oauth2.client.endpoint.OAuth2AuthorizationCodeGrantRequest> accessTokenResponseClient()
Gets the access token response client.- Returns:
- the access token response client
-
requestResolver
protected org.springframework.security.oauth2.client.web.OAuth2AuthorizationRequestResolver requestResolver()
Gets the request resolver.- Returns:
- the request resolver
-
-