Skip to content

Allow authorization request resolver to be changed for the OAuth2 client configuration #12430

@spoptchev

Description

@spoptchev

Describe the bug

The authorizationRequestResolver can't be changed in the OAuth2 client configuration. Because of this, we can't use the Twitter oAuth2 flow, which needs PKCE.

To Reproduce

To reproduce the issue you can use our example code. Just run the code in the spring-security-pkce-issue project. Please follow the README.md in the repository root directory for instructions.

Additionally, we have prepared a fix.

Expected behavior

The OAuth2 client configuration should be able to be changed so that the OAuth2AuthorizationRequestCustomizers.withPkce() customizer can be added to the authorization request resolver.

Please be aware that we explicitly do not need an OAuth2 login for our application. We just want to use the OAuth2 client configuration.

Metadata

Metadata

Assignees

Labels

in: oauth2An issue in OAuth2 modules (oauth2-core, oauth2-client, oauth2-resource-server, oauth2-jose)type: enhancementA general enhancement

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions