Class JWTClaimsSetAuthenticationManager

java.lang.Object
com.c4_soft.springaddons.security.oidc.starter.synchronised.resourceserver.JWTClaimsSetAuthenticationManager
All Implemented Interfaces:
org.springframework.security.authentication.AuthenticationManager

public class JWTClaimsSetAuthenticationManager extends Object implements org.springframework.security.authentication.AuthenticationManager

An AuthenticationManager relying on JWTClaimsSetAuthenticationManager.JWTClaimsSetAuthenticationManagerResolver, itself using SpringAddonsJwtDecoderFactory and a Converter<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

    • JWTClaimsSetAuthenticationManager

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

    • authenticate

      public org.springframework.security.core.Authentication authenticate(org.springframework.security.core.Authentication authentication) throws org.springframework.security.core.AuthenticationException
      Specified by:
      authenticate in interface org.springframework.security.authentication.AuthenticationManager
      Throws:
      org.springframework.security.core.AuthenticationException