Skip to content

Consider enabling PKCE for confidential clients #6548

Closed
@jgrandja

Description

@jgrandja

The goal of PKCE is to provide an added level of security for OAuth 2.0 public clients (utilizing the Authorization Code Grant) from an authorization code interception attack.

However, based on OAuth 2.0 Security Best Current Practice, in section 2.1.1. Authorization Code Grant:

Note: although PKCE so far was recommended as a mechanism to protect
native apps
, this advice applies to all kinds of OAuth clients,
including web applications.

It can also be leveraged for confidential clients for an added layer of security.

Given this, we should consider adding this support. From initial research, Okta does support this scenario where a confidential client is used to authenticate with the Token Endpoint and the code_verifier is sent as a parameter.

We should conduct further research to see which other providers support this client configuration/registration.

See this comment for further details.

Related #6446

Metadata

Metadata

Assignees

Labels

in: oauth2An issue in OAuth2 modules (oauth2-core, oauth2-client, oauth2-resource-server, oauth2-jose)type: enhancementA general enhancement

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions