Skip to content
This repository was archived by the owner on May 31, 2022. It is now read-only.
This repository was archived by the owner on May 31, 2022. It is now read-only.

RemoteTokenServices.loadAuthentication() should not check for client_id #838

@mekangas

Description

@mekangas

Per RFC 6749 (which doesn't address the topic) and RFC 7662 (which explicitly permits this), a valid check token response from the authorization server might not contain a client_id. Therefore, it isn't appropriate for RemoteTokenServices.loadAuthentication() to validate this. Rather, the contents of a token from an otherwise valid (i.e., non-error) response is the business of, say, OAuth2AuthenticationManager.authenticate(). The check currently in place limits the usefulness of RemoteTokenServices, especially for bearer tokens.

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions