public class OpaqueTokenReactiveAuthenticationManager
extends java.lang.Object
implements org.springframework.security.authentication.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<org.springframework.security.core.Authentication> |
authenticate(org.springframework.security.core.Authentication authentication) |
public OpaqueTokenReactiveAuthenticationManager(ReactiveOpaqueTokenIntrospector introspector)
OpaqueTokenReactiveAuthenticationManager with the provided parametersintrospector - The ReactiveOpaqueTokenIntrospector to usepublic reactor.core.publisher.Mono<org.springframework.security.core.Authentication> authenticate(org.springframework.security.core.Authentication authentication)
authenticate in interface org.springframework.security.authentication.ReactiveAuthenticationManager