question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

UI should redirect if you have an invalid token

See original GitHub issue

Feature Request

If the UI has an invalid token, and you go to to My Workflows, My Tools, or My Account, the pages come up, but without the important content, e.g., no workflows, no tools, no profile info, etc.

Also the button at the top right is in a funny state; it has blank text.

The UI should instead redirect to you to the sign in page if you go to one of those pages, and button at the top right should say Login/Register.

This is fix would mainly be a local dev nicety, as when I reinitialize my local database, my previously issued token becomes invalid. But if we revoke a token, it would become an issue there as well.

┆Issue is synchronized with this Jira Bug ┆fixVersions: Dockstore 2.X ┆friendlyId: DOCK-247 ┆sprint: Backlog ┆taskType: Bug

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:7 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
david4096commented, Jun 7, 2021

You can manually “invalidate” your token by logging in, changing your token’s value in your browser’s LocalStorage, and then refreshing.

1reaction
coverbeckcommented, Apr 27, 2021

Relates to #3361, perhaps.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Redirect to login page when token is invalid on React
First, I made validation of the token; if it is still valid, the function " Content" will return the Dashboard, otherwise, it will...
Read more >
Why does my login to Xray UI fail with a message "error token ...
When you access the Xray URL, you are redirected to the Artifactory login page for single sign-on (SSO). After successfully logging in, the ......
Read more >
Sign in with Apple gives Invalid r… | Apple Developer Forums
I am unable to get sign in with apple working. Currently, i get this response when attempting to hit https://appleid.apple.com/auth/token: Invalid redirect_uri.
Read more >
`state` does not match when redirecting to /authorize
Hi, I have a webapp (react/node) using auth0. The auth is started using WebAuth.authorize and validated on return using WebAuth.parseHash.
Read more >
The Authorization Response - OAuth 2.0 Simplified
Once the user has finished logging in and approving the request, the authorization server is ready to redirect the user back to the...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found