Class SpaceResourceServerConfig

  • All Implemented Interfaces:
    org.springframework.security.oauth2.config.annotation.web.configuration.ResourceServerConfigurer

    @Configuration
    @EnableResourceServer
    @ConditionalOnWebApplication
    @ConditionalOnMissingClass("io.naraplatform.checkpoint.config.OAuth2ResourceServerConfig")
    public class SpaceResourceServerConfig
    extends org.springframework.security.oauth2.config.annotation.web.configuration.ResourceServerConfigurerAdapter
    • Constructor Detail

      • SpaceResourceServerConfig

        public SpaceResourceServerConfig()
    • Method Detail

      • configure

        public void configure​(org.springframework.security.config.annotation.web.builders.HttpSecurity http)
                       throws java.lang.Exception
        Specified by:
        configure in interface org.springframework.security.oauth2.config.annotation.web.configuration.ResourceServerConfigurer
        Overrides:
        configure in class org.springframework.security.oauth2.config.annotation.web.configuration.ResourceServerConfigurerAdapter
        Throws:
        java.lang.Exception
      • configure

        public void configure​(org.springframework.security.oauth2.config.annotation.web.configurers.ResourceServerSecurityConfigurer config)
        Specified by:
        configure in interface org.springframework.security.oauth2.config.annotation.web.configuration.ResourceServerConfigurer
        Overrides:
        configure in class org.springframework.security.oauth2.config.annotation.web.configuration.ResourceServerConfigurerAdapter
      • tokenStore

        @Bean
        public org.springframework.security.oauth2.provider.token.TokenStore tokenStore()
      • tokenServices

        @Primary
        @Bean
        public org.springframework.security.oauth2.provider.token.DefaultTokenServices tokenServices()
      • jwtAccessTokenConverter

        @Bean
        public org.springframework.security.oauth2.provider.token.store.JwtAccessTokenConverter jwtAccessTokenConverter()
      • sampleDramaRequest

        public DramaRequest sampleDramaRequest()
      • sampleMetroRequest

        public MetroRequest sampleMetroRequest()