Class ReactiveJWTClaimsSetAuthenticationManager
java.lang.Object
com.c4_soft.springaddons.security.oidc.starter.reactive.resourceserver.ReactiveJWTClaimsSetAuthenticationManager
- All Implemented Interfaces:
org.springframework.security.authentication.ReactiveAuthenticationManager
public class ReactiveJWTClaimsSetAuthenticationManager
extends Object
implements org.springframework.security.authentication.ReactiveAuthenticationManager
An AuthenticationManager relying on JWTClaimsSetAuthenticationManager.JWTClaimsSetAuthenticationManagerResolver, itself using SpringAddonsReactiveJwtDecoderFactory and
a Converter<Jwt, Mono<? extends AbstractAuthenticationToken>>.
DefaultSpringAddonsReactiveJwtDecoderFactory, the default SpringAddonsReactiveJwtDecoderFactory throws an exception if the OpenID Provider
configuration properties could not be resolved from the JWT claims.
- Author:
- Jérôme Wacongne <ch4mp@c4-soft.com>
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classAnReactiveAuthenticationManagerResolverfor resource servers using JWT decoder(s). -
Constructor Summary
ConstructorsConstructorDescriptionReactiveJWTClaimsSetAuthenticationManager(OpenidProviderPropertiesResolver opPropertiesResolver, SpringAddonsReactiveJwtDecoderFactory jwtDecoderFactory, org.springframework.core.convert.converter.Converter<org.springframework.security.oauth2.jwt.Jwt, ? extends reactor.core.publisher.Mono<? extends org.springframework.security.authentication.AbstractAuthenticationToken>> jwtAuthenticationConverter) -
Method Summary
Modifier and TypeMethodDescriptionreactor.core.publisher.Mono<org.springframework.security.core.Authentication>authenticate(org.springframework.security.core.Authentication authentication)
-
Constructor Details
-
ReactiveJWTClaimsSetAuthenticationManager
public ReactiveJWTClaimsSetAuthenticationManager(OpenidProviderPropertiesResolver opPropertiesResolver, SpringAddonsReactiveJwtDecoderFactory jwtDecoderFactory, org.springframework.core.convert.converter.Converter<org.springframework.security.oauth2.jwt.Jwt, ? extends reactor.core.publisher.Mono<? extends org.springframework.security.authentication.AbstractAuthenticationToken>> jwtAuthenticationConverter)
-
-
Method Details
-
authenticate
public reactor.core.publisher.Mono<org.springframework.security.core.Authentication> authenticate(org.springframework.security.core.Authentication authentication) throws org.springframework.security.core.AuthenticationException - Specified by:
authenticatein interfaceorg.springframework.security.authentication.ReactiveAuthenticationManager- Throws:
org.springframework.security.core.AuthenticationException
-