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

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions