Workflows (possibly tools) cached through logout and login via google
See original GitHub issueBug Report
Expected behaviour
Should see workflows for user 2 after logging out using user 1 and logging in via user 2
Actual behaviour
After switching logins to user 2, see workflows for user 1, but I can’t interact with them presumably because I have no rights.
Steps to Reproduce
Basically as described, although note the need for step 3:
- Logout and Reload, to start from a clean slate
- Login as user 1
- Click on My Workflows
- Logout
- Login as user 2
- Open Chrome Dev Tools
- Click on My Workflows. You’ll see a 403 error for
https://staging.dockstore.org/api/users/{wrong user}/workflows
┆Issue is synchronized with this Jira Bug ┆Issue Number: DOCK-77 ┆Sprint: Backlog ┆Issue Type: Bug
Issue Analytics
- State:
- Created 5 years ago
- Comments:7 (7 by maintainers)
Top Results From Across the Web
OpenID Connect | Authentication - Google Developers
You need OAuth 2.0 credentials, including a client ID and client secret, to authenticate users and gain access to Google's APIs. To view...
Read more >Troubleshooting cached login credentials in Google Chrome
Open Google Chrome; Click the Settings menu at the top right; Click New Incognito Window.
Read more >gcloud auth application-default login
API-first integration to connect existing data and applications. ... Solution to bridge existing care systems and apps on Google Cloud. ... No-code development ......
Read more >Google Sign-in for your React Native applications - GitHub
Google Sign-in for your React Native applications. Contribute to react-native-google-signin/google-signin development by creating an account on GitHub.
Read more >Testing for Browser Cache Weaknesses - OWASP Foundation
Cache details are also available via developer tools in most modern browsers, such as Firefox, Chrome, and Edge. With Firefox it is also...
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
Update 2: More than one instance of
UserService
is being created, and that’s what’s leading to the problem; the code would work ifUserService
were a singleton. I believe this has to do something with modules and lazy loading. Investigating usingforRoot()
, but still coming up to speed on it.A bit of a smoking gun, the GUI calls
https://staging.dockstore.org/api/users/{wrong user}/workflows
but callshttps://staging.dockstore.org/api/users/{correct user}/workflows
after a hard refresh