Class BearerTokenServerAuthenticationEntryPoint
java.lang.Object
org.springframework.security.oauth2.server.resource.web.server.BearerTokenServerAuthenticationEntryPoint
- All Implemented Interfaces:
ServerAuthenticationEntryPoint
public final class BearerTokenServerAuthenticationEntryPoint
extends Object
implements ServerAuthenticationEntryPoint
An
AuthenticationEntryPoint
implementation used to commence authentication of
protected resource requests using BearerTokenAuthenticationFilter
.
Uses information provided by BearerTokenError
to set HTTP response status code
and populate WWW-Authenticate
HTTP header.
- Since:
- 5.1
- See Also:
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionreactor.core.publisher.Mono<Void>
commence
(org.springframework.web.server.ServerWebExchange exchange, AuthenticationException authException) Initiates the authentication flowvoid
setRealmName
(String realmName)
-
Constructor Details
-
BearerTokenServerAuthenticationEntryPoint
public BearerTokenServerAuthenticationEntryPoint()
-
-
Method Details
-
setRealmName
-
commence
public reactor.core.publisher.Mono<Void> commence(org.springframework.web.server.ServerWebExchange exchange, AuthenticationException authException) Description copied from interface:ServerAuthenticationEntryPoint
Initiates the authentication flow- Specified by:
commence
in interfaceServerAuthenticationEntryPoint
- Returns:
Mono<Void>
to indicate when the request for authentication is complete
-