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

feat: punchout identity provider #916

Merged
merged 3 commits into from
Nov 22, 2021

Conversation

Eisie96
Copy link
Contributor

@Eisie96 Eisie96 commented Oct 28, 2021

PR Type

[x] Feature

What Is the Current Behavior?

OCI Punchout Sessions gets lost after Reload.

Issue Number: Closes #

What Is the New Behavior?

OCI Punchout Sessions is available after Reload. Therefore is the punchout guard refactored to a new identity provider, which saves the actual basketId to the session storage. Furthermore it is possible to override the actual identity provider on specific routes.

Does this PR Introduce a Breaking Change?

[ ] Yes
[ ] No

Other Information

AB#70891

@Eisie96 Eisie96 changed the title Refactor/punchout identity provider refactor: punchout identity provider Oct 28, 2021
@shauke shauke added this to the 1.4 milestone Oct 28, 2021
@shauke shauke changed the title refactor: punchout identity provider feat: punchout identity provider Oct 28, 2021
@Eisie96 Eisie96 force-pushed the refactor/punchout-identity-provider branch 3 times, most recently from d5654e0 to 46fd3df Compare November 4, 2021 12:47
@Eisie96 Eisie96 marked this pull request as ready for review November 4, 2021 13:23
@Eisie96 Eisie96 force-pushed the refactor/punchout-identity-provider branch from b8b0c0f to a02614b Compare November 11, 2021 13:21
@MaxKless MaxKless self-requested a review November 15, 2021 11:58
MaxKless
MaxKless previously approved these changes Nov 15, 2021
Copy link
Collaborator

@MaxKless MaxKless left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Great job!

@MaxKless
Copy link
Collaborator

MaxKless commented Nov 15, 2021

EDIT: TWO WINDOWS IN THE SAME BROWSER ARE NOT A RELEVANT USE-CASE SO THIS BUG IS IRRELEVANT. KEEPING IT UP FOR TRANSPARENCY


Sadly, I found a bug when opening two windows with OCI punchout when using a static punchout identity provider.
Steps to repeat:

  • start an OCI punchout session
  • open a second window of the PWA and open another OCI punchout session
  • add different items to the cart so you can easily distinguish between the two sessions
  • reload one window (sometimes twice or more)
  • open the other window and see the confusing behavior

When building the PWA with ng serve, the other window will be logged out.
When building the PWA with docker-compose, the other window will be logged out and a tiny sign-in window appears:
image

@MaxKless MaxKless requested a review from dhhyi November 17, 2021 09:24
@MaxKless MaxKless merged commit 36fb90f into develop Nov 22, 2021
@MaxKless MaxKless deleted the refactor/punchout-identity-provider branch November 22, 2021 12:28
SGrueber pushed a commit that referenced this pull request May 19, 2022
Co-authored-by: Marcus Schmidt <marcus.schmidt@intershop.de>
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