Class BearerTokenServerAuthenticationEntryPoint

java.lang.Object
org.springframework.security.oauth2.server.resource.web.server.BearerTokenServerAuthenticationEntryPoint
All Implemented Interfaces:
org.springframework.security.web.server.ServerAuthenticationEntryPoint

public final class BearerTokenServerAuthenticationEntryPoint extends Object implements org.springframework.security.web.server.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 Details

    • BearerTokenServerAuthenticationEntryPoint

      public BearerTokenServerAuthenticationEntryPoint()
  • Method Details

    • setRealmName

      public void setRealmName(String realmName)
    • commence

      public reactor.core.publisher.Mono<Void> commence(org.springframework.web.server.ServerWebExchange exchange, org.springframework.security.core.AuthenticationException authException)
      Specified by:
      commence in interface org.springframework.security.web.server.ServerAuthenticationEntryPoint