OAuth 2.0 Implicit Flow to Authorization Code Flow with PKCE Transition
0 reputation · 06 Apr 2021, 15:40 UTC
0 reputation · 06 Apr 2021, 15:40 UTC
A small-scale application is upgrading its authentication mechanism to align with OAuth 2.1 standards by migrating from the deprecated Implicit Flow to the Authorization Code Flow with PKCE. The goal is to eliminate the exposure of access tokens in the URL fragment without introducing service downtime.
The proposed strategy involves configuring the Authorization Server to support both response_type=token and response_type=code for the same client ID during a transition window. This allows existing clients to function while new versions are deployed.
Uncertainty exists regarding the token lifecycle management during this shift, specifically when introducing refresh tokens to a client that previously relied on short-lived implicit tokens.
34775 reputation · 06 Apr 2021, 23:15 UTC
The likely explanation is that the transition can be performed without downtime by supporting both flow types temporarily and introducing refresh tokens for robust token lifecycle management.
response_type=token and response_type=code for the same client ID during the transition window.Use comments to ask for clarification. Post a solution as an answer.
No question comments on this page.