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

feat: save pkce code verifier/challenge for debugging #1455

Closed
wants to merge 1 commit into from

Conversation

csmig
Copy link
Member

@csmig csmig commented Dec 21, 2024

In oidcProvider.js, persist to localStorage the values of the last used PKCE code_verifier and code_challenge. This might help in debugging esoteric issues as reported in #1440.

The last used values can be found using DevTools or a JS console to view localStorage items last-code-verifier and last-code-challenge. The last-code-challenge should be the URL encoded Base64 representation of the SHA256 digest of last-code-verifier.

In a Linux shell, the proper code challenge for a given last-code-verifier can be calculated by invoking:

echo -n "<last-code-verifier>" | sha256sum | xxd -r -p | base64 | tr '+/' '-_' | tr -d '='

@csmig csmig added the UI label Dec 21, 2024
Copy link

Quality Gate Passed Quality Gate passed for 'nuwcdivnpt_stig-manager-client'

Issues
0 New issues
0 Accepted issues

Measures
0 Security Hotspots
0.0% Coverage on New Code
0.0% Duplication on New Code

See analysis details on SonarQube Cloud

@csmig
Copy link
Member Author

csmig commented Dec 23, 2024

Replaced by #1456

@csmig csmig closed this Dec 23, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant