An authentication manager resolver lets a resource server choose which authentication manager should process each request. The selected manager can use a custom authentication provider, making the pattern useful for multitenancy and nonstandard authentication. section 15.4 section 15.5
Use the resolver when the resource server must:
- Authenticate tokens from multiple authorization servers using JwtIssuerAuthenticationManagerResolver. section 15.4
Configure the resource server
Pass authenticationManagerResolver() to oauth2ResourceServer(). A resolver can return a JwtAuthenticationProvider-backed manager for JWTs or an OpaqueTokenAuthenticationProvider-backed manager for opaque tokens.
