Open ID Connect Proof Key of Code Exchange (PKCE)

Description

The use of Proof Key of Code Exchange (PKCE) is an extension to the Authorization Code flow to prevent CSRF and code injection attacks.

This change requires:

  1. Generation of a code_verifier, and keeping it for later.

  2. Creating a hash of the code_verifier (called a code_challenge) to include in the authorization request.

  3. Later when the access token request includes the code_verifier.
    The token endpoint will check the code_verifer against the code_challenge by performing the same hash function.


Reference:

Environment

None

Activity

Show:
Fixed

Details

Assignee

Reporter

Components

Priority

Created November 21, 2023 at 6:46 AM
Updated November 23, 2023 at 11:30 PM
Resolved November 23, 2023 at 4:36 PM