Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: use a prefix (icm_) for internal token oauth storage #1601

Conversation

tbouliere-datasolution
Copy link
Contributor

@tbouliere-datasolution tbouliere-datasolution commented Mar 6, 2024

PR Type

[x] Bugfix
[x] Refactoring (no functional changes, no API changes)

What Is the Current Behavior?

Currently, the pwa uses a dedicated instance of OauthService for token.service.ts.
But as it doesn't redefine the associated OAuthStorage, all persistent data is shared between SSO implementations (like the bearer token).

What Is the New Behavior?

This fix adds the icm_ prefix in front of all keys read and written by token.service.ts.

Does this PR Introduce a Breaking Change?

[x ] No

Other Information

@shauke shauke added this to the 5.1 milestone Mar 14, 2024
@SGrueber
Copy link
Collaborator

@tbouliere-datasolution Thank you for this pull request. I renamed the prefix of the token keys to 'icm' and fixed some linting and test issues. Please let me know whether you agree to these changes, so that I can merge your PR.

@tbouliere-datasolution
Copy link
Contributor Author

Fine by me 👍

@SGrueber SGrueber merged commit b0001db into intershop:develop Mar 14, 2024
16 checks passed
shauke pushed a commit that referenced this pull request Mar 15, 2024
---------

Co-authored-by: Silke <s.grueber@intershop.de>
@shauke shauke changed the title Use a prefix for internal token oauth storage fix: use a prefix (icm_) for internal token oauth storage Mar 15, 2024
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.

3 participants