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

The riddle of the Unauthorized errors... Part 1 #2781

Open
2 tasks
mkimberlin opened this issue Nov 21, 2024 · 0 comments
Open
2 tasks

The riddle of the Unauthorized errors... Part 1 #2781

mkimberlin opened this issue Nov 21, 2024 · 0 comments
Labels
bug Something isn't working web-ui

Comments

@mkimberlin
Copy link
Member

mkimberlin commented Nov 21, 2024

Two things can cause "unauthorized" errors unnecessarily in the system. This one addresses the symptom of expired sessions due to our deployment on Cloud Run (and the resulting invalid CSRF tokens) to reduce the frequency of these errors.

Acceptance Criteria

  • When and unauthorized error occurs and the the session cookie containing the CSRF token does not exist or has expired:
    • Make a call to the CSRF cookie establishing service to reestablish the session cookie and...
    • Store the updated CSRF token in local state

This should result in a lost session not generating unauthorized errors in response to service calls made from the front end.

@mkimberlin can assist with an approach to testing this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working web-ui
Projects
None yet
Development

No branches or pull requests

1 participant