public class BearerTokenServerAccessDeniedHandler
extends java.lang.Object
implements org.springframework.security.web.server.authorization.ServerAccessDeniedHandler
AccessDeniedException into an HTTP response in accordance with
RFC 6750
Section 3: The WWW-Authenticate.
So long as the class can prove that the request has a valid OAuth 2.0
Authentication, then will return an
insufficient
scope error; otherwise, it will simply indicate the scheme (Bearer) and any
configured realm.| Constructor and Description |
|---|
BearerTokenServerAccessDeniedHandler() |
| Modifier and Type | Method and Description |
|---|---|
reactor.core.publisher.Mono<java.lang.Void> |
handle(org.springframework.web.server.ServerWebExchange exchange,
org.springframework.security.access.AccessDeniedException denied) |
void |
setRealmName(java.lang.String realmName)
Set the default realm name to use in the bearer token error response
|
public BearerTokenServerAccessDeniedHandler()
public reactor.core.publisher.Mono<java.lang.Void> handle(org.springframework.web.server.ServerWebExchange exchange,
org.springframework.security.access.AccessDeniedException denied)
handle in interface org.springframework.security.web.server.authorization.ServerAccessDeniedHandlerpublic final void setRealmName(java.lang.String realmName)
realmName -