Class SpaceResourceServerConfig
- java.lang.Object
-
- org.springframework.security.oauth2.config.annotation.web.configuration.ResourceServerConfigurerAdapter
-
- io.naradrama.prologue.util.spacekeeper.security.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 Summary
Constructors Constructor Description SpaceResourceServerConfig()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidconfigure(org.springframework.security.config.annotation.web.builders.HttpSecurity http)voidconfigure(org.springframework.security.oauth2.config.annotation.web.configurers.ResourceServerSecurityConfigurer config)org.springframework.security.oauth2.provider.token.store.JwtAccessTokenConverterjwtAccessTokenConverter()DramaRequestsampleDramaRequest()MetroRequestsampleMetroRequest()org.springframework.security.oauth2.provider.token.DefaultTokenServicestokenServices()org.springframework.security.oauth2.provider.token.TokenStoretokenStore()
-
-
-
Method Detail
-
configure
public void configure(org.springframework.security.config.annotation.web.builders.HttpSecurity http) throws java.lang.Exception- Specified by:
configurein interfaceorg.springframework.security.oauth2.config.annotation.web.configuration.ResourceServerConfigurer- Overrides:
configurein classorg.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:
configurein interfaceorg.springframework.security.oauth2.config.annotation.web.configuration.ResourceServerConfigurer- Overrides:
configurein classorg.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()
-
-