Class SpringAddonsReactiveJwtAuthenticationManagerResolver

java.lang.Object
com.c4_soft.springaddons.security.oidc.starter.reactive.resourceserver.SpringAddonsReactiveJwtAuthenticationManagerResolver
All Implemented Interfaces:
org.springframework.security.authentication.ReactiveAuthenticationManagerResolver<org.springframework.web.server.ServerWebExchange>

public class SpringAddonsReactiveJwtAuthenticationManagerResolver extends Object implements org.springframework.security.authentication.ReactiveAuthenticationManagerResolver<org.springframework.web.server.ServerWebExchange>

An ReactiveAuthenticationManagerResolver always resolving the same ReactiveJWTClaimsSetAuthenticationManager which relies on JWTClaimsSetAuthenticationManager.JWTClaimsSetAuthenticationManagerResolver, itself using SpringAddonsReactiveJwtDecoderFactory and a Converter@lt;Jwt, 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>
  • Constructor Details

    • SpringAddonsReactiveJwtAuthenticationManagerResolver

      public SpringAddonsReactiveJwtAuthenticationManagerResolver(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

    • resolve

      public reactor.core.publisher.Mono<org.springframework.security.authentication.ReactiveAuthenticationManager> resolve(org.springframework.web.server.ServerWebExchange context)
      Specified by:
      resolve in interface org.springframework.security.authentication.ReactiveAuthenticationManagerResolver<org.springframework.web.server.ServerWebExchange>