Class TokenAuthenticationConverter

java.lang.Object
es.kukenan.smartfi.microservice.webfluxconfig.configuration.security.TokenAuthenticationConverter
All Implemented Interfaces:
org.springframework.security.web.server.authentication.ServerAuthenticationConverter

public class TokenAuthenticationConverter extends Object implements org.springframework.security.web.server.authentication.ServerAuthenticationConverter
Token authentication converter.
  • Field Details

    • jwtService

      private final JwtService jwtService
      JWT service.
  • Constructor Details

    • TokenAuthenticationConverter

      public TokenAuthenticationConverter(JwtService jwtService)
      Constructor.
      Parameters:
      jwtService - JWT service.
  • Method Details

    • convert

      public reactor.core.publisher.Mono<org.springframework.security.core.Authentication> convert(org.springframework.web.server.ServerWebExchange exchange)
      Specified by:
      convert in interface org.springframework.security.web.server.authentication.ServerAuthenticationConverter
    • getTokenFromRequest

      private String getTokenFromRequest(org.springframework.http.HttpHeaders httpHeaders)