mirror of
https://github.com/spring-projects/spring-security.git
synced 2025-07-06 02:32:14 +00:00
Polish Resource Server Multi-tenancy Docs
Issue gh-7532
This commit is contained in:
parent
1ebb73856b
commit
9f970094e0
@ -1604,8 +1604,7 @@ AuthenticationManagerResolver<HttpServletRequest> tokenAuthenticationManagerReso
|
|||||||
OpaqueTokenAuthenticationProvider opaqueToken = opaqueToken();
|
OpaqueTokenAuthenticationProvider opaqueToken = opaqueToken();
|
||||||
|
|
||||||
return request -> {
|
return request -> {
|
||||||
String token = bearerToken.resolve(request);
|
if (useJwt(request)) {
|
||||||
if (isAJwt(token)) {
|
|
||||||
return jwt::authenticate;
|
return jwt::authenticate;
|
||||||
} else {
|
} else {
|
||||||
return opaqueToken::authenticate;
|
return opaqueToken::authenticate;
|
||||||
@ -1614,6 +1613,8 @@ AuthenticationManagerResolver<HttpServletRequest> tokenAuthenticationManagerReso
|
|||||||
}
|
}
|
||||||
----
|
----
|
||||||
|
|
||||||
|
NOTE: The implementation of `useJwt(HttpServletRequest)` will likely depend on custom request material like the path.
|
||||||
|
|
||||||
And then specify this `AuthenticationManagerResolver` in the DSL:
|
And then specify this `AuthenticationManagerResolver` in the DSL:
|
||||||
|
|
||||||
.Authentication Manager Resolver
|
.Authentication Manager Resolver
|
||||||
|
Loading…
x
Reference in New Issue
Block a user