Skip to content

fix: ensure oauth2 pkce method is sent when enabled [INS-837] - #8869

Merged
ryan-willis merged 3 commits into
developfrom
fix/oauth2-default-pkce-method-when-enabled-INS-837
Jul 17, 2025
Merged

fix: ensure oauth2 pkce method is sent when enabled [INS-837]#8869
ryan-willis merged 3 commits into
developfrom
fix/oauth2-default-pkce-method-when-enabled-INS-837

Conversation

@ryan-willis

@ryan-willis ryan-willis commented Jul 16, 2025

Copy link
Copy Markdown
Contributor

When configuring either a request or a folder with OAuth 2.0, enabling PKCE does not immediately store the value for the PKCE method. The form displays SHA-256, but the actual value on the item's authentication object is undefined until a user makes a selection from the dropdown.

Due to the complexity surrounding the addition of an onChange hook to the AuthToggleRow component that would set the default value, and the fact that users may already have this broken state in their local db, I opted to narrow this change to the getOAuth2Token method to choose SHA-256 as the PKCE method in the absence of a value when PKCE is enabled.

@ryan-willis
ryan-willis marked this pull request as ready for review July 17, 2025 14:53
@ryan-willis
ryan-willis enabled auto-merge (squash) July 17, 2025 15:31
@ryan-willis
ryan-willis merged commit c37706b into develop Jul 17, 2025
10 checks passed
@ryan-willis
ryan-willis deleted the fix/oauth2-default-pkce-method-when-enabled-INS-837 branch July 17, 2025 15:44
RoamingLost pushed a commit to RoamingLost/insomnia that referenced this pull request Aug 6, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants