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: oAuth configuration is sometime invalid on SSR mode #1367

Merged

Conversation

tbouliere-datasolution
Copy link
Contributor

When the browser does not have the apiToken cookie and the angular application is in SSR mode, the ApiService#constructUrlForPath function is called before the getRestEndpoint selector is properly initialized.
This leads to an incorrect ICM token retrieval URL

PR Type

[x ] Bugfix
[ ] Feature
[ ] Code style update (formatting, local variables)
[ ] Refactoring (no functional changes, no API changes)
[ ] Build-related changes
[ ] CI-related changes
[ ] Documentation content changes
[ ] Application / infrastructure changes
[ ] Other:

What Is the Current Behavior?

Issue Number: Closes #

What Is the New Behavior?

Does this PR Introduce a Breaking Change?

[ ] Yes
[ ] No

Other Information

Error

When the browser does not have the apiToken cookie and the angular application is in SSR mode, the
ApiService#constructUrlForPath function is called before the getRestEndpoint selector is properly
initialized.
This leads to an incorrect ICM token retrieval URL
@Eisie96 Eisie96 self-requested a review February 6, 2023 13:03
@suschneider suschneider assigned suschneider and Eisie96 and unassigned suschneider Feb 6, 2023
@Eisie96 Eisie96 merged commit 61f9b0e into intershop:develop Feb 8, 2023
@shauke shauke added this to the 3.3 milestone Feb 21, 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.

4 participants