Class SpringAddonsJwtAuthenticationManagerResolver

java.lang.Object
com.c4_soft.springaddons.security.oidc.starter.synchronised.resourceserver.SpringAddonsJwtAuthenticationManagerResolver
All Implemented Interfaces:
org.springframework.security.authentication.AuthenticationManagerResolver<jakarta.servlet.http.HttpServletRequest>

public class SpringAddonsJwtAuthenticationManagerResolver extends Object implements org.springframework.security.authentication.AuthenticationManagerResolver<jakarta.servlet.http.HttpServletRequest>

An AuthenticationManagerResolver always resolving the same JWTClaimsSetAuthenticationManager which relies on JWTClaimsSetAuthenticationManager.JWTClaimsSetAuthenticationManagerResolver, itself using SpringAddonsJwtDecoderFactory and a Converter@lt;Jwt, AbstractAuthenticationToken>.

DefaultSpringAddonsJwtDecoderFactory, the default SpringAddonsJwtDecoderFactory 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

    • SpringAddonsJwtAuthenticationManagerResolver

      public SpringAddonsJwtAuthenticationManagerResolver(OpenidProviderPropertiesResolver opPropertiesResolver, SpringAddonsJwtDecoderFactory jwtDecoderFactory, org.springframework.core.convert.converter.Converter<org.springframework.security.oauth2.jwt.Jwt,org.springframework.security.authentication.AbstractAuthenticationToken> jwtAuthenticationConverter)
  • Method Details

    • resolve

      public org.springframework.security.authentication.AuthenticationManager resolve(jakarta.servlet.http.HttpServletRequest context)
      Specified by:
      resolve in interface org.springframework.security.authentication.AuthenticationManagerResolver<jakarta.servlet.http.HttpServletRequest>