@ConditionalOnWebApplication @Configuration @EnableWebSecurity @EnableGlobalMethodSecurity(prePostEnabled=true) @EnableConfigurationProperties(value=org.bremersee.security.authentication.AuthenticationProperties.class) public class SecurityConfiguration extends Object
| Constructor and Description |
|---|
SecurityConfiguration(org.bremersee.security.authentication.AuthenticationProperties properties)
Instantiates a new security configuration.
|
| Modifier and Type | Method and Description |
|---|---|
org.bremersee.security.authentication.PasswordFlowAuthenticationManager |
passwordFlowAuthenticationManager(String jwkUriSet,
String jwsAlgorithm,
String issuerUri,
org.springframework.beans.factory.ObjectProvider<org.springframework.core.convert.converter.Converter<org.springframework.security.oauth2.jwt.Jwt,? extends org.springframework.security.authentication.AbstractAuthenticationToken>> jwtAuthenticationConverter,
org.springframework.beans.factory.ObjectProvider<org.bremersee.security.authentication.AccessTokenRetriever<String>> accessTokenRetriever)
Password flow authentication manager for the actuator endpoints that uses a different jwk uri
as the resource server.
|
public SecurityConfiguration(org.bremersee.security.authentication.AuthenticationProperties properties)
properties - the properties@ConditionalOnProperty(prefix="bremersee.security.authentication.actuator.jwt",
name="jwk-set-uri")
@Bean
public org.bremersee.security.authentication.PasswordFlowAuthenticationManager passwordFlowAuthenticationManager(@Value(value="${bremersee.security.authentication.actuator.jwt.jwk-set-uri}")
String jwkUriSet,
@Value(value="${bremersee.security.authentication.actuator.jwt.jws-algorithm:RS256}")
String jwsAlgorithm,
@Value(value="${bremersee.security.authentication.actuator.jwt.issuer-uri:}")
String issuerUri,
org.springframework.beans.factory.ObjectProvider<org.springframework.core.convert.converter.Converter<org.springframework.security.oauth2.jwt.Jwt,? extends org.springframework.security.authentication.AbstractAuthenticationToken>> jwtAuthenticationConverter,
org.springframework.beans.factory.ObjectProvider<org.bremersee.security.authentication.AccessTokenRetriever<String>> accessTokenRetriever)
jwkUriSet - the jwk uri setjwsAlgorithm - the jws algorithmissuerUri - the issuer urijwtAuthenticationConverter - the jwt authentication converteraccessTokenRetriever - the access token retrieverCopyright © 2020 bremersee.org. All rights reserved.