Class AuthServiceOAuth2CommonAutoConfiguration
- java.lang.Object
-
- com.broadleafcommerce.auth.autoconfigure.AuthServiceOAuth2CommonAutoConfiguration
-
@Configuration @AutoConfigureBefore(org.springframework.boot.autoconfigure.security.oauth2.client.servlet.OAuth2ClientAutoConfiguration.class) @EnableConfigurationProperties(TokenProperties.class) public class AuthServiceOAuth2CommonAutoConfiguration extends Object
Common configuration used to set up the token services and converters for the authorization server.- Author:
- Nick Crum (ncrum), Phillip Verheyden (phillipuniverse)
-
-
Constructor Summary
Constructors Constructor Description AuthServiceOAuth2CommonAutoConfiguration(AuthorizationServerProperties securityProps)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description org.springframework.security.oauth2.provider.token.store.JwtAccessTokenConverter
accessTokenConverter(org.springframework.security.oauth2.provider.token.store.JwtClaimsSetVerifier verifier, SecurityService securityService, KeyPair keyPair)
org.springframework.security.oauth2.provider.endpoint.RedirectResolver
defaultRedirectResolver()
org.springframework.security.oauth2.provider.token.store.JwtClaimsSetVerifier
jwtClaimsSetVerifier()
KeyPair
keyPair()
org.springframework.security.oauth2.provider.token.DefaultAccessTokenConverter
securityServiceAccessTokenConverter(SecurityService securityService)
org.springframework.security.oauth2.provider.token.TokenStore
tokenStore(org.springframework.security.oauth2.provider.token.store.JwtAccessTokenConverter jwtTokenConverter, List<RefreshTokenRepository<RefreshToken>> repositories, TokenProperties properties, org.springframework.jdbc.core.JdbcTemplate jdbcTemplate)
org.springframework.jdbc.core.JdbcTemplate
tokenStoreCleanupJDBCTemplate(DataSource dataSource, TokenProperties properties)
-
-
-
Constructor Detail
-
AuthServiceOAuth2CommonAutoConfiguration
public AuthServiceOAuth2CommonAutoConfiguration(AuthorizationServerProperties securityProps)
-
-
Method Detail
-
jwtClaimsSetVerifier
@Bean @ConditionalOnMissingBean public org.springframework.security.oauth2.provider.token.store.JwtClaimsSetVerifier jwtClaimsSetVerifier()
-
accessTokenConverter
@Bean @Primary @ConditionalOnMissingBean public org.springframework.security.oauth2.provider.token.store.JwtAccessTokenConverter accessTokenConverter(@Nullable org.springframework.security.oauth2.provider.token.store.JwtClaimsSetVerifier verifier, SecurityService securityService, KeyPair keyPair)
-
tokenStore
@Bean @ConditionalOnMissingBean public org.springframework.security.oauth2.provider.token.TokenStore tokenStore(org.springframework.security.oauth2.provider.token.store.JwtAccessTokenConverter jwtTokenConverter, List<RefreshTokenRepository<RefreshToken>> repositories, TokenProperties properties, @Qualifier("tokenStoreCleanupJDBCTemplate") org.springframework.jdbc.core.JdbcTemplate jdbcTemplate)
-
tokenStoreCleanupJDBCTemplate
@Bean @ConditionalOnMissingBean(name="tokenStoreCleanupJDBCTemplate") public org.springframework.jdbc.core.JdbcTemplate tokenStoreCleanupJDBCTemplate(DataSource dataSource, TokenProperties properties)
-
securityServiceAccessTokenConverter
@Bean @ConditionalOnMissingBean public org.springframework.security.oauth2.provider.token.DefaultAccessTokenConverter securityServiceAccessTokenConverter(SecurityService securityService)
-
defaultRedirectResolver
@Bean @ConditionalOnMissingBean public org.springframework.security.oauth2.provider.endpoint.RedirectResolver defaultRedirectResolver()
-
keyPair
@Bean @Primary @ConditionalOnMissingBean public KeyPair keyPair() throws NoSuchAlgorithmException, InvalidKeySpecException
-
-