Class ServerOAuth2AuthorizationCodeAuthenticationTokenConverter

  • All Implemented Interfaces:
    org.springframework.security.web.server.authentication.ServerAuthenticationConverter

    public class ServerOAuth2AuthorizationCodeAuthenticationTokenConverter
    extends java.lang.Object
    implements org.springframework.security.web.server.authentication.ServerAuthenticationConverter
    Converts from a ServerWebExchange to an OAuth2AuthorizationCodeAuthenticationToken that can be authenticated. The converter does not validate any errors it only performs a conversion.
    Since:
    5.1
    See Also:
    AuthenticationWebFilter.setServerAuthenticationConverter(ServerAuthenticationConverter)
    • Constructor Detail

      • ServerOAuth2AuthorizationCodeAuthenticationTokenConverter

        public ServerOAuth2AuthorizationCodeAuthenticationTokenConverter​(ReactiveClientRegistrationRepository clientRegistrationRepository)
    • Method Detail

      • convert

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