Browse Source

Polish Resource Server Multi-tenancy Docs

Issue gh-7532
pull/8184/head
Josh Cummings 6 years ago
parent
commit
8872d8b7d0
No known key found for this signature in database
GPG Key ID: 49EF60DD7FF83443
  1. 5
      docs/manual/src/docs/asciidoc/_includes/servlet/oauth2/oauth2-resourceserver.adoc

5
docs/manual/src/docs/asciidoc/_includes/servlet/oauth2/oauth2-resourceserver.adoc

@ -1604,8 +1604,7 @@ AuthenticationManagerResolver<HttpServletRequest> tokenAuthenticationManagerReso @@ -1604,8 +1604,7 @@ AuthenticationManagerResolver<HttpServletRequest> tokenAuthenticationManagerReso
OpaqueTokenAuthenticationProvider opaqueToken = opaqueToken();
return request -> {
String token = bearerToken.resolve(request);
if (isAJwt(token)) {
if (useJwt(request)) {
return jwt::authenticate;
} else {
return opaqueToken::authenticate;
@ -1614,6 +1613,8 @@ AuthenticationManagerResolver<HttpServletRequest> tokenAuthenticationManagerReso @@ -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:
.Authentication Manager Resolver

Loading…
Cancel
Save