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

When user session expires, errors are shown in the Admin UI #6410

Open
bladey opened this issue Aug 26, 2021 · 0 comments
Open

When user session expires, errors are shown in the Admin UI #6410

bladey opened this issue Aug 26, 2021 · 0 comments
Labels
🐛 bug Unresolved bug

Comments

@bladey
Copy link
Contributor

bladey commented Aug 26, 2021

Currently when a users login expires in the Admin UI, we see Error messages rendered in the UI and Access denied in network responses.

image (3)

Ideally this shouldn't occur, and we should catch this and redirect the user back to the sign in page.

If the page gets reloaded and hits the page middleware, a redirect happens, but ideally it should be caught before this.

Here’s the current behavior:

  • Log into Keystone App,
  • Perform some operations
  • Session Expires, Cookie gets removed
  • Trigger a GraphQL request
  • Returns with AccessDenied
  • Displays error in the related view

Expected Behavior:

  • Log Into Keystone App
  • Perform some operations
  • Session Expires, Cookie gets removed
  • Trigger a GraphQL request
  • Returns with Access Denied
  • Intercept this response
  • Redirect to login page

Adapted and sourced from Charles Cyril on the Keystone Community Slack: https://keystonejs.slack.com/archives/C01STDMEW3S/p1629859492428800

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🐛 bug Unresolved bug
Projects
None yet
Development

No branches or pull requests

2 participants