Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add PKCE support #314

Merged
merged 1 commit into from
Nov 21, 2024
Merged

Add PKCE support #314

merged 1 commit into from
Nov 21, 2024

Conversation

poveden
Copy link
Contributor

@poveden poveden commented Nov 21, 2024

PR Checklist

  • I have run npm test locally and all tests are passing.
  • I have added/updated tests for any new behavior.
  • If this is a significant change, an issue has already been created where the problem / solution was discussed: Add PKCE support #218

PR Description

This PR implements #218 which adds support for PKCE, both plain and SHA256-hashed code_verifier. It is based on the RFC and should be more-or-less compliant with it.

However, it is implemented as an opt-in approach (which means that it does not support OAuth2.1 since there PKCE is always mandatory. But that was not required for the task either I assume).
This means that if the requests does not have anything related to PKCE in them, then everything works as before.

Attribution

This PR is merely a squash and minimal code cleanup from PR #245 (thanks @tanettrimas!)

@poveden poveden requested a review from nulltoken November 21, 2024 11:09
@poveden poveden mentioned this pull request Nov 21, 2024
3 tasks
@poveden poveden merged commit 4ed5353 into master Nov 21, 2024
11 checks passed
@poveden poveden deleted the tanettrimas/pkce branch November 21, 2024 11:22
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