Requiring PKCE for Client Authorization Requests
Authlete has a feature to require OAuth 2.0 clients to use** **PKCE (RFC 7636) ** **for their authorization requests. To enablePKCE for your service client:
- Navigate to Client Settings > Endpoints > Authorization > General
-
Under
Proof Key for Code Exchange (PKCE), enable theRequire PKCEoption. By default, theRequire PKCEoption is disabled. - Click Save Changes to apply the updates.
“Proof Key for Code Exchange (RFC 7636)” setting
Once enabled, the /auth/authorization API
of the configured Authlete service will deny any authorization requests without the code_challenge parameter.
The following example shows how an authorization requests without the code_challenge parameter is handled (folded for readability):
** Authorization request without the code_challenge “parameters”**
Response (stating that code_challenge is missing)