UI should redirect if you have an invalid token
See original GitHub issueFeature 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:
- Created 5 years ago
- Comments:7 (5 by maintainers)
Top 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 >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
You can manually “invalidate” your token by logging in, changing your token’s value in your browser’s LocalStorage, and then refreshing.
Relates to #3361, perhaps.