public class NimbusReactiveOpaqueTokenIntrospector extends java.lang.Object implements ReactiveOpaqueTokenIntrospector
ReactiveOpaqueTokenIntrospector that verifies and
introspects a token using the configured
OAuth 2.0 Introspection
Endpoint.| Constructor and Description |
|---|
NimbusReactiveOpaqueTokenIntrospector(java.lang.String introspectionUri,
java.lang.String clientId,
java.lang.String clientSecret)
Creates a
OpaqueTokenReactiveAuthenticationManager with the provided
parameters |
NimbusReactiveOpaqueTokenIntrospector(java.lang.String introspectionUri,
org.springframework.web.reactive.function.client.WebClient webClient)
Creates a
OpaqueTokenReactiveAuthenticationManager with the provided
parameters |
| Modifier and Type | Method and Description |
|---|---|
reactor.core.publisher.Mono<org.springframework.security.oauth2.core.OAuth2AuthenticatedPrincipal> |
introspect(java.lang.String token)
Introspect and verify the given token, returning its attributes.
|
public NimbusReactiveOpaqueTokenIntrospector(java.lang.String introspectionUri,
java.lang.String clientId,
java.lang.String clientSecret)
OpaqueTokenReactiveAuthenticationManager with the provided
parametersintrospectionUri - The introspection endpoint uriclientId - The client id authorized to introspectclientSecret - The client secret for the authorized clientpublic NimbusReactiveOpaqueTokenIntrospector(java.lang.String introspectionUri,
org.springframework.web.reactive.function.client.WebClient webClient)
OpaqueTokenReactiveAuthenticationManager with the provided
parametersintrospectionUri - The introspection endpoint uriwebClient - The client for performing the introspection requestpublic reactor.core.publisher.Mono<org.springframework.security.oauth2.core.OAuth2AuthenticatedPrincipal> introspect(java.lang.String token)
ReactiveOpaqueTokenIntrospectorMap is indicative that the token is valid.introspect in interface ReactiveOpaqueTokenIntrospectortoken - the token to introspect