Skip to content

Commit

Permalink
Polish Resource Server Multi-tenancy Docs
Browse files Browse the repository at this point in the history
Issue gh-7532
  • Loading branch information
jzheaux committed Mar 24, 2020
1 parent 1ebb738 commit 9f97009
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand All @@ -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
Expand Down

0 comments on commit 9f97009

Please sign in to comment.