Class HttpStatusServerEntryPoint
- java.lang.Object
-
- org.springframework.security.web.server.authentication.HttpStatusServerEntryPoint
-
- All Implemented Interfaces:
ServerAuthenticationEntryPoint
public class HttpStatusServerEntryPoint extends java.lang.Object implements ServerAuthenticationEntryPoint
AServerAuthenticationEntryPoint
that sends a genericHttpStatus
as a response. Useful for JavaScript clients which cannot use Basic authentication since the browser intercepts the response.- Since:
- 5.1
-
-
Constructor Summary
Constructors Constructor Description HttpStatusServerEntryPoint(org.springframework.http.HttpStatus httpStatus)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description reactor.core.publisher.Mono<java.lang.Void>
commence(org.springframework.web.server.ServerWebExchange exchange, AuthenticationException authException)
Initiates the authentication flow
-
-
-
Method Detail
-
commence
public reactor.core.publisher.Mono<java.lang.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
-
-