Skip to content

WebFlux oauth2Login returns 500 when bad client credentials #5562

Closed
@jgrandja

Description

@jgrandja

When WebFlux oauth2Login is configured with 1 ClientRegistration that has bad client credentials, a 500 response will occur during the processing of the Authorization Response when attempting to exchange the code for the access_token. The parameters from the authorization response are also viewable in the browser location bar.

We should ensure a redirect to the default login page to display the error message, for example, [invalid_client] Unauthorized.

Metadata

Metadata

Assignees

Labels

in: oauth2An issue in OAuth2 modules (oauth2-core, oauth2-client, oauth2-resource-server, oauth2-jose)status: backportedAn issue that has been backported to maintenance branchestype: bugA general bug

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions