public final class OAuth2AuthorizationServerConfigurer<B extends org.springframework.security.config.annotation.web.HttpSecurityBuilder<B>> extends org.springframework.security.config.annotation.web.configurers.AbstractHttpConfigurer<OAuth2AuthorizationServerConfigurer<B>,B>
AbstractHttpConfigurer for OAuth 2.0 Authorization Server support.AbstractHttpConfigurer,
OAuth2ClientAuthenticationConfigurer,
OAuth2AuthorizationEndpointConfigurer,
OAuth2TokenEndpointConfigurer,
OAuth2TokenIntrospectionEndpointConfigurer,
OAuth2TokenRevocationEndpointConfigurer,
OidcConfigurer,
RegisteredClientRepository,
OAuth2AuthorizationService,
OAuth2AuthorizationConsentService,
NimbusJwkSetEndpointFilter,
OAuth2AuthorizationServerMetadataEndpointFilter| Constructor and Description |
|---|
OAuth2AuthorizationServerConfigurer() |
| Modifier and Type | Method and Description |
|---|---|
OAuth2AuthorizationServerConfigurer<B> |
authorizationConsentService(OAuth2AuthorizationConsentService authorizationConsentService)
Sets the authorization consent service.
|
OAuth2AuthorizationServerConfigurer<B> |
authorizationEndpoint(org.springframework.security.config.Customizer<OAuth2AuthorizationEndpointConfigurer> authorizationEndpointCustomizer)
Configures the OAuth 2.0 Authorization Endpoint.
|
OAuth2AuthorizationServerConfigurer<B> |
authorizationService(OAuth2AuthorizationService authorizationService)
Sets the authorization service.
|
OAuth2AuthorizationServerConfigurer<B> |
clientAuthentication(org.springframework.security.config.Customizer<OAuth2ClientAuthenticationConfigurer> clientAuthenticationCustomizer)
Configures OAuth 2.0 Client Authentication.
|
void |
configure(B builder) |
org.springframework.security.web.util.matcher.RequestMatcher |
getEndpointsMatcher()
Returns a
RequestMatcher for the authorization server endpoints. |
void |
init(B builder) |
OAuth2AuthorizationServerConfigurer<B> |
oidc(org.springframework.security.config.Customizer<OidcConfigurer> oidcCustomizer)
Configures OpenID Connect 1.0 support.
|
OAuth2AuthorizationServerConfigurer<B> |
providerSettings(ProviderSettings providerSettings)
Sets the provider settings.
|
OAuth2AuthorizationServerConfigurer<B> |
registeredClientRepository(RegisteredClientRepository registeredClientRepository)
Sets the repository of registered clients.
|
OAuth2AuthorizationServerConfigurer<B> |
tokenEndpoint(org.springframework.security.config.Customizer<OAuth2TokenEndpointConfigurer> tokenEndpointCustomizer)
Configures the OAuth 2.0 Token Endpoint.
|
OAuth2AuthorizationServerConfigurer<B> |
tokenGenerator(OAuth2TokenGenerator<? extends org.springframework.security.oauth2.core.OAuth2Token> tokenGenerator)
Sets the token generator.
|
OAuth2AuthorizationServerConfigurer<B> |
tokenIntrospectionEndpoint(org.springframework.security.config.Customizer<OAuth2TokenIntrospectionEndpointConfigurer> tokenIntrospectionEndpointCustomizer)
Configures the OAuth 2.0 Token Introspection Endpoint.
|
OAuth2AuthorizationServerConfigurer<B> |
tokenRevocationEndpoint(org.springframework.security.config.Customizer<OAuth2TokenRevocationEndpointConfigurer> tokenRevocationEndpointCustomizer)
Configures the OAuth 2.0 Token Revocation Endpoint.
|
disable, withObjectPostProcessorpublic OAuth2AuthorizationServerConfigurer<B> registeredClientRepository(RegisteredClientRepository registeredClientRepository)
registeredClientRepository - the repository of registered clientsOAuth2AuthorizationServerConfigurer for further configurationpublic OAuth2AuthorizationServerConfigurer<B> authorizationService(OAuth2AuthorizationService authorizationService)
authorizationService - the authorization serviceOAuth2AuthorizationServerConfigurer for further configurationpublic OAuth2AuthorizationServerConfigurer<B> authorizationConsentService(OAuth2AuthorizationConsentService authorizationConsentService)
authorizationConsentService - the authorization consent serviceOAuth2AuthorizationServerConfigurer for further configurationpublic OAuth2AuthorizationServerConfigurer<B> providerSettings(ProviderSettings providerSettings)
providerSettings - the provider settingsOAuth2AuthorizationServerConfigurer for further configurationpublic OAuth2AuthorizationServerConfigurer<B> tokenGenerator(OAuth2TokenGenerator<? extends org.springframework.security.oauth2.core.OAuth2Token> tokenGenerator)
tokenGenerator - the token generatorOAuth2AuthorizationServerConfigurer for further configurationpublic OAuth2AuthorizationServerConfigurer<B> clientAuthentication(org.springframework.security.config.Customizer<OAuth2ClientAuthenticationConfigurer> clientAuthenticationCustomizer)
clientAuthenticationCustomizer - the Customizer providing access to the OAuth2ClientAuthenticationConfigurerOAuth2AuthorizationServerConfigurer for further configurationpublic OAuth2AuthorizationServerConfigurer<B> authorizationEndpoint(org.springframework.security.config.Customizer<OAuth2AuthorizationEndpointConfigurer> authorizationEndpointCustomizer)
authorizationEndpointCustomizer - the Customizer providing access to the OAuth2AuthorizationEndpointConfigurerOAuth2AuthorizationServerConfigurer for further configurationpublic OAuth2AuthorizationServerConfigurer<B> tokenEndpoint(org.springframework.security.config.Customizer<OAuth2TokenEndpointConfigurer> tokenEndpointCustomizer)
tokenEndpointCustomizer - the Customizer providing access to the OAuth2TokenEndpointConfigurerOAuth2AuthorizationServerConfigurer for further configurationpublic OAuth2AuthorizationServerConfigurer<B> tokenIntrospectionEndpoint(org.springframework.security.config.Customizer<OAuth2TokenIntrospectionEndpointConfigurer> tokenIntrospectionEndpointCustomizer)
tokenIntrospectionEndpointCustomizer - the Customizer providing access to the OAuth2TokenIntrospectionEndpointConfigurerOAuth2AuthorizationServerConfigurer for further configurationpublic OAuth2AuthorizationServerConfigurer<B> tokenRevocationEndpoint(org.springframework.security.config.Customizer<OAuth2TokenRevocationEndpointConfigurer> tokenRevocationEndpointCustomizer)
tokenRevocationEndpointCustomizer - the Customizer providing access to the OAuth2TokenRevocationEndpointConfigurerOAuth2AuthorizationServerConfigurer for further configurationpublic OAuth2AuthorizationServerConfigurer<B> oidc(org.springframework.security.config.Customizer<OidcConfigurer> oidcCustomizer)
oidcCustomizer - the Customizer providing access to the OidcConfigurerOAuth2AuthorizationServerConfigurer for further configurationpublic org.springframework.security.web.util.matcher.RequestMatcher getEndpointsMatcher()
RequestMatcher for the authorization server endpoints.RequestMatcher for the authorization server endpointspublic void init(B builder)
init in interface org.springframework.security.config.annotation.SecurityConfigurer<org.springframework.security.web.DefaultSecurityFilterChain,B extends org.springframework.security.config.annotation.web.HttpSecurityBuilder<B>>init in class org.springframework.security.config.annotation.SecurityConfigurerAdapter<org.springframework.security.web.DefaultSecurityFilterChain,B extends org.springframework.security.config.annotation.web.HttpSecurityBuilder<B>>public void configure(B builder)
configure in interface org.springframework.security.config.annotation.SecurityConfigurer<org.springframework.security.web.DefaultSecurityFilterChain,B extends org.springframework.security.config.annotation.web.HttpSecurityBuilder<B>>configure in class org.springframework.security.config.annotation.SecurityConfigurerAdapter<org.springframework.security.web.DefaultSecurityFilterChain,B extends org.springframework.security.config.annotation.web.HttpSecurityBuilder<B>>