Closed
Description
Expected Behavior
When building a ClientRegistration
and passing a string to the AuthorizationGrantType
constructor, invalid grant types that match case insensitively with a pre-defined constant could log a warning informing users that it won't match a valid OAuth2AuthorizedClientProvider
.
Current Behavior
The AuthorizationGrantType
constructor accepts any string (including a capitalized grant type string, e.g. CLIENT_CREDENTIALS
), assuming it is a custom grant type. This allows an application to start up and load a ClientRegistration
without warnings, but does not work as expected because no OAuth2AuthorizedClientProvider
is matched.
Context
Issue gh-11897