-
Notifications
You must be signed in to change notification settings - Fork 9.2k
Description
OAuth2 servers have metadata too. RFC8414
This issue is about adding oauth2MetadataUrl to oauth2 allows the client to download the OAuth2 client to download the RFC8414 OAuth2 metadata. Please see #3594 for one variant of adding oauth2MetadataUrl to OAS.
The reading of the authorization server metadata enables clients to understand which features an authorization server supports.
E.g. which grant types are supported, which scopes are supported,
Some of which might improve over time. Reacting to the changed and hopefully improved metadata allows clients to e.g. improve their security if e.g. PKCE is newly supported.
See e.g. OAuth 2.0 Security Best Current Practice for features secure authorization servers should or must support.
oauth2 flows should be a subset of the grant_types_supported from the OAuth2 metadata.