Skip to content

Consider Enabling PKCE for Authorization Code by Default #16391

Open
@rwinch

Description

@rwinch

PKCE is recommended to prevent CSRF and authorization code injection attacks. We should consider enabling enabling PKCE for authorization_code flows by default to ensure we have secure defaults.

In order to ensure this goes as smoothly as possible, I think that we would need to:

  • Ensure it is easy to disable in the event that it breaks users
  • Align the Authorization Server

NOTE: This is a breaking change, so it would need to be done with Spring Security 7.0.

Metadata

Metadata

Assignees

No one assigned

    Labels

    in: oauth2An issue in OAuth2 modules (oauth2-core, oauth2-client, oauth2-resource-server, oauth2-jose)type: breaks-passivityA change that breaks passivity with the previous release

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions