Package energy.eddie.outbound.rest
Class RestSecurityConfig
java.lang.Object
energy.eddie.outbound.rest.RestSecurityConfig
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionorg.springframework.security.oauth2.jwt.JwtDecoderjwtDecoder(org.springframework.core.env.Environment environment) org.springframework.security.web.servlet.util.matcher.PathPatternRequestMatcher.Builderorg.springframework.security.web.SecurityFilterChainrestSecurityFilterChain(org.springframework.security.web.servlet.util.matcher.PathPatternRequestMatcher.Builder restRequestMatcher, org.springframework.security.config.annotation.web.builders.HttpSecurity http, org.springframework.web.cors.CorsConfigurationSource corsConfigurationSource, org.springframework.security.oauth2.jwt.JwtDecoder decoder, boolean oauthEnabled, boolean oauthScopesEnabled)
-
Constructor Details
-
RestSecurityConfig
public RestSecurityConfig()
-
-
Method Details
-
restRequestMatcher
@Bean @ConditionalOnExpression("${outbound-connector.rest.enabled:false} and ${outbound-connector.rest.oauth2.enabled:false}") public org.springframework.security.web.servlet.util.matcher.PathPatternRequestMatcher.Builder restRequestMatcher() -
restSecurityFilterChain
@Bean @ConditionalOnExpression("${outbound-connector.rest.enabled:false} and ${outbound-connector.rest.oauth2.enabled:false}") public org.springframework.security.web.SecurityFilterChain restSecurityFilterChain(org.springframework.security.web.servlet.util.matcher.PathPatternRequestMatcher.Builder restRequestMatcher, org.springframework.security.config.annotation.web.builders.HttpSecurity http, org.springframework.web.cors.CorsConfigurationSource corsConfigurationSource, org.springframework.security.oauth2.jwt.JwtDecoder decoder, @Value("${outbound-connector.rest.oauth2.enabled:false}") boolean oauthEnabled, @Value("${outbound-connector.rest.oauth2.scopes.enabled:false}") boolean oauthScopesEnabled) -
jwtDecoder
@Bean @ConditionalOnExpression("${outbound-connector.rest.enabled:false} and ${outbound-connector.rest.oauth2.enabled:false}") public org.springframework.security.oauth2.jwt.JwtDecoder jwtDecoder(org.springframework.core.env.Environment environment)
-