Skip to content

fix: Add username to the tokenStoreKey so the saved token is invalidated when the user changes in the environment#426

Open
michaelarnauts wants to merge 1 commit intomountain-loop:mainfrom
michaelarnauts:include-username-in-token-cache
Open

fix: Add username to the tokenStoreKey so the saved token is invalidated when the user changes in the environment#426
michaelarnauts wants to merge 1 commit intomountain-loop:mainfrom
michaelarnauts:include-username-in-token-cache

Conversation

@michaelarnauts
Copy link
Copy Markdown

Summary

When using environments to switch between users on the same OAuth2 server, the username isn't used when defining the tokenStoreKey, so the token of a different user is used after switching the environment that causes the username to change.

Without this fix, I have to use a workaround by modifying the Access Token URL so the tokenStoreKey changes. See screenshot below.

afbeelding

Submission

  • This PR is a bug fix or small-scope improvement.
  • If this PR is not a bug fix or small-scope improvement, I linked an approved feedback item below.
  • I have read and followed CONTRIBUTING.md.
  • I tested this change locally.
  • I added or updated tests when reasonable.

Approved feedback item (required if not a bug fix or small-scope improvement):

Related

https://yaak.app/feedback/posts/changing-the-environment-doesn-t-invalidate-my-authentication-token

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant