-
Notifications
You must be signed in to change notification settings - Fork 6.2k
Closed
Labels
in: oauth2An issue in OAuth2 modules (oauth2-core, oauth2-client, oauth2-resource-server, oauth2-jose)An issue in OAuth2 modules (oauth2-core, oauth2-client, oauth2-resource-server, oauth2-jose)status: backportedAn issue that has been backported to maintenance branchesAn issue that has been backported to maintenance branchestype: enhancementA general enhancementA general enhancement
Milestone
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.ClientRegistrationwith 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
Sample
Metadata
Metadata
Assignees
Labels
in: oauth2An issue in OAuth2 modules (oauth2-core, oauth2-client, oauth2-resource-server, oauth2-jose)An issue in OAuth2 modules (oauth2-core, oauth2-client, oauth2-resource-server, oauth2-jose)status: backportedAn issue that has been backported to maintenance branchesAn issue that has been backported to maintenance branchestype: enhancementA general enhancementA general enhancement