Class NimbusReactiveOpaqueTokenIntrospector
java.lang.Object
org.springframework.security.oauth2.server.resource.introspection.NimbusReactiveOpaqueTokenIntrospector
- All Implemented Interfaces:
ReactiveOpaqueTokenIntrospector
public class NimbusReactiveOpaqueTokenIntrospector
extends Object
implements ReactiveOpaqueTokenIntrospector
A Nimbus implementation of
ReactiveOpaqueTokenIntrospector
that verifies and
introspects a token using the configured
OAuth 2.0 Introspection
Endpoint.- Since:
- 5.2
-
Constructor Summary
ConstructorDescriptionNimbusReactiveOpaqueTokenIntrospector
(String introspectionUri, String clientId, String clientSecret) Creates aOpaqueTokenReactiveAuthenticationManager
with the provided parametersNimbusReactiveOpaqueTokenIntrospector
(String introspectionUri, org.springframework.web.reactive.function.client.WebClient webClient) Creates aOpaqueTokenReactiveAuthenticationManager
with the provided parameters -
Method Summary
Modifier and TypeMethodDescriptionreactor.core.publisher.Mono<OAuth2AuthenticatedPrincipal>
introspect
(String token) Introspect and verify the given token, returning its attributes.
-
Constructor Details
-
NimbusReactiveOpaqueTokenIntrospector
public NimbusReactiveOpaqueTokenIntrospector(String introspectionUri, String clientId, String clientSecret) Creates aOpaqueTokenReactiveAuthenticationManager
with the provided parameters- Parameters:
introspectionUri
- The introspection endpoint uriclientId
- The client id authorized to introspectclientSecret
- The client secret for the authorized client
-
NimbusReactiveOpaqueTokenIntrospector
public NimbusReactiveOpaqueTokenIntrospector(String introspectionUri, org.springframework.web.reactive.function.client.WebClient webClient) Creates aOpaqueTokenReactiveAuthenticationManager
with the provided parameters- Parameters:
introspectionUri
- The introspection endpoint uriwebClient
- The client for performing the introspection request
-
-
Method Details
-
introspect
Description copied from interface:ReactiveOpaqueTokenIntrospector
Introspect and verify the given token, returning its attributes. Returning aMap
is indicative that the token is valid.- Specified by:
introspect
in interfaceReactiveOpaqueTokenIntrospector
- Parameters:
token
- the token to introspect- Returns:
- the token's attributes
-