Class DefaultReactiveOpaqueTokenIntrospector
java.lang.Object
com.power4j.fist.boot.security.oauth2.server.resource.introspection.DefaultReactiveOpaqueTokenIntrospector
- All Implemented Interfaces:
ReactiveOpaqueTokenIntrospector
public class DefaultReactiveOpaqueTokenIntrospector
extends Object
implements ReactiveOpaqueTokenIntrospector
- Since:
- 2022.1
- Author:
- CJ (power4j@outlook.com)
-
Constructor Summary
ConstructorsConstructorDescriptionDefaultReactiveOpaqueTokenIntrospector(String introspectionUri, String clientId, String clientSecret) Creates aOpaqueTokenReactiveAuthenticationManagerwith the provided parametersDefaultReactiveOpaqueTokenIntrospector(String introspectionUri, org.springframework.web.reactive.function.client.WebClient webClient) Creates aOpaqueTokenReactiveAuthenticationManagerwith 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
-
DefaultReactiveOpaqueTokenIntrospector
public DefaultReactiveOpaqueTokenIntrospector(String introspectionUri, String clientId, String clientSecret) Creates aOpaqueTokenReactiveAuthenticationManagerwith the provided parameters- Parameters:
introspectionUri- The introspection endpoint uriclientId- The client id authorized to introspectclientSecret- The client secret for the authorized client
-
DefaultReactiveOpaqueTokenIntrospector
public DefaultReactiveOpaqueTokenIntrospector(String introspectionUri, org.springframework.web.reactive.function.client.WebClient webClient) Creates aOpaqueTokenReactiveAuthenticationManagerwith the provided parameters- Parameters:
introspectionUri- The introspection endpoint uriwebClient- The client for performing the introspection request
-
-
Method Details
-
introspect
Description copied from interface:ReactiveOpaqueTokenIntrospectorIntrospect and verify the given token, returning its attributes. Returning aMapis indicative that the token is valid.- Specified by:
introspectin interfaceReactiveOpaqueTokenIntrospector- Parameters:
token- the token to introspect- Returns:
- the token's attributes
-