Closed
Description
Summary
Documentation suggests that defining additional grant types should be supported. Though, the ClientRegistration builder won't validate a registration using a custom grant type.
Actual Behavior
- Define a custom
org.springframework.security.oauth2.core.AuthorizationGrantType
. - Build a
org.springframework.security.oauth2.client.registration.ClientRegistration
with this custom type.
When calling build()
, any unsupported grant type is validated as an authorization code grant type, and it fails.
Expected Behavior
Custom grant type should not be validated with the wrong validator. It could be nice to be able to provide a custom validator.
Version
spring-security-oauth2-client 5.1.5.RELEASE