Class 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 Detail

    • 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()