public class OpaqueTokenReactiveAuthenticationManager extends java.lang.Object implements ReactiveAuthenticationManager
ReactiveAuthenticationManager implementation for opaque
Bearer Tokens,
using an
OAuth 2.0 Introspection Endpoint
to check the token's validity and reveal its attributes.
This ReactiveAuthenticationManager is responsible for introspecting and verifying an opaque access token,
returning its attributes set as part of the Authentication statement.
Scopes are translated into GrantedAuthoritys according to the following algorithm:
Collection of Strings.
Collection and prepend the "SCOPE_" keyword to each element, adding as GrantedAuthoritys.
ReactiveAuthenticationManager| Constructor and Description |
|---|
OpaqueTokenReactiveAuthenticationManager(ReactiveOpaqueTokenIntrospector introspector)
Creates a
OpaqueTokenReactiveAuthenticationManager with the provided parameters |
| Modifier and Type | Method and Description |
|---|---|
reactor.core.publisher.Mono<Authentication> |
authenticate(Authentication authentication)
Attempts to authenticate the provided
Authentication |
public OpaqueTokenReactiveAuthenticationManager(ReactiveOpaqueTokenIntrospector introspector)
OpaqueTokenReactiveAuthenticationManager with the provided parametersintrospector - The ReactiveOpaqueTokenIntrospector to usepublic reactor.core.publisher.Mono<Authentication> authenticate(Authentication authentication)
ReactiveAuthenticationManagerAuthenticationauthenticate in interface ReactiveAuthenticationManagerauthentication - the Authentication to testAuthentication is returned. If
authentication cannot be determined, an empty Mono is returned. If authentication
fails, a Mono error is returned.