@Configuration(proxyBeanMethods=false) @EnableConfigurationProperties(value=org.springframework.boot.autoconfigure.security.oauth2.client.OAuth2ClientProperties.class) @AutoConfigureAfter(value={org.springframework.boot.autoconfigure.security.oauth2.client.servlet.OAuth2ClientAutoConfiguration.class,org.springframework.boot.autoconfigure.security.oauth2.client.reactive.ReactiveOAuth2ClientAutoConfiguration.class}) @ConditionalOnClass(name="org.springframework.security.oauth2.client.registration.ClientRegistration") @ConditionalOnProperty(value="spring.credhub.oauth2.registration-id") @Conditional(value=org.springframework.boot.autoconfigure.security.oauth2.client.ClientsConfiguredCondition.class) public class CredHubOAuth2AutoConfiguration extends Object
Auto-configuration
for Spring CredHub OAuth2 support
beans.Modifier and Type | Method and Description |
---|---|
org.springframework.security.oauth2.client.web.OAuth2AuthorizedClientRepository |
credHubAuthorizedClientRepository(org.springframework.security.oauth2.client.registration.ClientRegistrationRepository clientRegistrationRepository)
Create an
OAuth2AuthorizedClientRepository bean for use with an
OAuth2-enabled CredHubTemplate . |
org.springframework.security.oauth2.client.registration.ClientRegistrationRepository |
credHubClientRegistrationRepository()
Create a
ClientRegistrationRepository bean for use with an OAuth2-enabled
CredHubTemplate . |
org.springframework.security.oauth2.client.web.server.ServerOAuth2AuthorizedClientRepository |
credHubReactiveAuthorizedClientRepository()
Create a
ServerOAuth2AuthorizedClientRepository bean for use with an
OAuth2-enabled ReactiveCredHubTemplate , to override the default provided by
ReactiveOAuth2ClientAutoConfiguration . |
org.springframework.security.oauth2.client.registration.ReactiveClientRegistrationRepository |
credHubReactiveClientRegistrationRepository()
Create a
ReactiveClientRegistrationRepository bean for use with an
OAuth2-enabled ReactiveCredHubTemplate , in case
ReactiveOAuth2ClientAutoConfiguration doesn't configure one. |
@Bean @ConditionalOnMissingBean @ConditionalOnClass(name="javax.servlet.http.HttpServletRequest") public org.springframework.security.oauth2.client.registration.ClientRegistrationRepository credHubClientRegistrationRepository()
ClientRegistrationRepository
bean for use with an OAuth2-enabled
CredHubTemplate
.ClientRegistrationRepository
@Bean @ConditionalOnMissingBean @ConditionalOnClass(name="javax.servlet.http.HttpServletRequest") public org.springframework.security.oauth2.client.web.OAuth2AuthorizedClientRepository credHubAuthorizedClientRepository(org.springframework.security.oauth2.client.registration.ClientRegistrationRepository clientRegistrationRepository)
OAuth2AuthorizedClientRepository
bean for use with an
OAuth2-enabled CredHubTemplate
.clientRegistrationRepository
- a ClientRegistrationRepository
OAuth2AuthorizedClientRepository
@Bean @ConditionalOnMissingBean @ConditionalOnClass(name="org.springframework.web.reactive.function.client.WebClient") public org.springframework.security.oauth2.client.registration.ReactiveClientRegistrationRepository credHubReactiveClientRegistrationRepository()
ReactiveClientRegistrationRepository
bean for use with an
OAuth2-enabled ReactiveCredHubTemplate
, in case
ReactiveOAuth2ClientAutoConfiguration
doesn't configure one.ReactiveClientRegistrationRepository
@Bean @ConditionalOnMissingBean @ConditionalOnClass(name="org.springframework.web.reactive.function.client.WebClient") public org.springframework.security.oauth2.client.web.server.ServerOAuth2AuthorizedClientRepository credHubReactiveAuthorizedClientRepository()
ServerOAuth2AuthorizedClientRepository
bean for use with an
OAuth2-enabled ReactiveCredHubTemplate
, to override the default provided by
ReactiveOAuth2ClientAutoConfiguration
.ServerOAuth2AuthorizedClientRepository