Given separate spring-security-oauth2 authorization and resource servers:
I expected the authorization server's /oauth/check_token
endpoint to accept a Bearer token from a resource server in the Authorization
header but it only accepts Basic
auth. Note: I'm referring to the request auth token, not the token to be checked.
I think OAuth2AuthenticationProcessingFilter
is responsible for extracting and validating Authorization: Bearer ...
, but based on the javadoc it appears to be used only by resource servers to validate requests from users or other clients.
Should resource servers always provide Basic
auth when communicating with the authorization server? What's the best practice? If Bearer
tokens are acceptable, does the authorization server need to be configured as a resource server via @EnableResourceServer
in order to get this functionality?