Consider renaming OAuth2TokenIntrospectionClient #7245
Labels
in: oauth2
An issue in OAuth2 modules (oauth2-core, oauth2-client, oauth2-resource-server, oauth2-jose)
type: enhancement
A general enhancement
Milestone
The contract for
OAuth2TokenIntrospectionClient
isString
->Map
, taking an opaque token and returning its associated attributes.The name of the class implies that only implementations that are clients to an OAuth 2.0 Token Introspection endpoint are acceptable.
However, there are use cases where an application has a token and would like to verify and introspect it in a custom way, say via a Redis store.
As such, it would be better if this class were named something more generic like
OpaqueTokenIntrospector
.Additionally, the DSL should change to correspond. What was:
Should now be:
The text was updated successfully, but these errors were encountered: