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.

Workflows (possibly tools) cached through logout and login via google

See original GitHub issue

Bug 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:

  1. Logout and Reload, to start from a clean slate
  2. Login as user 1
  3. Click on My Workflows
  4. Logout
  5. Login as user 2
  6. Open Chrome Dev Tools
  7. 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:closed
  • Created 5 years ago
  • Comments:7 (7 by maintainers)

github_iconTop GitHub Comments

1reaction
coverbeckcommented, Aug 30, 2018

Update 2: More than one instance of UserService is being created, and that’s what’s leading to the problem; the code would work if UserService were a singleton. I believe this has to do something with modules and lazy loading. Investigating using forRoot(), but still coming up to speed on it.

1reaction
denis-yuencommented, Aug 24, 2018

A bit of a smoking gun, the GUI calls https://staging.dockstore.org/api/users/{wrong user}/workflows but calls https://staging.dockstore.org/api/users/{correct user}/workflows after a hard refresh

Read more comments on GitHub >

github_iconTop 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 >

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