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: detailed status during web app bootstrap; handle token errors #1450

Merged
merged 4 commits into from
Dec 14, 2024

Conversation

csmig
Copy link
Member

@csmig csmig commented Dec 13, 2024

Resolves #1447

init.js and stigman.js were updated to display concatenated status messages during the bootstrap phases 1) authorization, 2) app loading, and 3) initial API request for /user.

OIDCProvider.js was updated to throw on errors from the token endpoint. Also, the stored PKCE code verifier is now removed after being used for the token request. Before making the token request, OIDCProvider now checks if the stored code verifier exists. If not, it restarts the authorization phase by redirecting back to the base URL.

These updates appear to handle the scenario where a user has bookmarked our authorization request while viewing the OP login page, and later uses this bookmark.

Handling of the API request to /user was not modified, it uses our common routine for making API requests which does not support retry rounds.

Token inspection was not added because token issues should result in an API error response, which is already being displayed by the web app.

@csmig csmig changed the title feat: discrete status during web app bootstrap; handle token errors feat: detailed status during web app bootstrap; handle token errors Dec 13, 2024
client/src/js/stigman.js Outdated Show resolved Hide resolved
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 csmig added the UI label Dec 14, 2024
@cd-rite cd-rite merged commit 12bd984 into main Dec 14, 2024
3 checks passed
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.

Add more informative error messages/handling on client init and auth processes
2 participants