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: confirming cookie preferences removes punchout related cookies #1619

Merged
merged 1 commit into from
Mar 28, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Binary file modified docs/guides/cookie-banner.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
24 changes: 18 additions & 6 deletions docs/guides/cookie-consent.md
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,15 @@ cookieConsentOptions: {
description: 'cookie.consent.option.tracking.description',
},
},
allowedCookies: ['apiToken', 'cookieConsent', 'preferredLocale'],
allowedCookies: [
'apiToken',
'cookieConsent',
'preferredLocale',
'punchout_SID',
'punchout_BasketID',
'punchout_ReturnURL',
'punchout_HookURL',
],
},
```

Expand Down Expand Up @@ -100,11 +108,15 @@ This route can be linked to from anywhere within the application.

## PWA Required Cookies

| Name | Expiration | Provider | Description | Category |
| --------------- | ---------- | ------------- | ----------------------------------------------------------------- | ----------- |
| apiToken | 1 year | Intershop PWA | The API token used by the Intershop Commerce Management REST API. | First Party |
| cookieConsent | 1 year | Intershop PWA | Saves the user's cookie consent settings. | First Party |
| preferredLocale | 1 year | Intershop PWA | Saves the user's language selection. | First Party |
| Name | Expiration | Provider | Description | Category |
| ------------------ | ---------- | ------------- | ----------------------------------------------------------------- | ----------- |
| apiToken | 1 hour | Intershop PWA | The API token used by the Intershop Commerce Management REST API. | First Party |
| cookieConsent | 1 year | Intershop PWA | Saves the user's cookie consent settings. | First Party |
| preferredLocale | 1 year | Intershop PWA | Saves the user's language selection. | First Party |
| punchout_SID | Session | Intershop PWA | Saves punchout session related data - Session ID. | First Party |
| punchout_BasketID | Session | Intershop PWA | Saves punchout session related data - Basket ID. | First Party |
| punchout_ReturnURL | Session | Intershop PWA | Saves punchout session related data - Return URL. | First Party |
| punchout_HookURL | Session | Intershop PWA | Saves punchout session related data - Hook URL. | First Party |

## Disabling the Integrated Cookie Consent Handling

Expand Down
Binary file modified docs/guides/cookie-preferences.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
10 changes: 9 additions & 1 deletion src/environments/environment.model.ts
Original file line number Diff line number Diff line change
Expand Up @@ -195,7 +195,15 @@ export const ENVIRONMENT_DEFAULTS: Omit<Environment, 'icmChannel'> = {
description: 'cookie.consent.option.tracking.description',
},
},
allowedCookies: ['apiToken', 'cookieConsent', 'preferredLocale'],
allowedCookies: [
'apiToken',
'cookieConsent',
'preferredLocale',
'punchout_SID',
'punchout_BasketID',
'punchout_ReturnURL',
'punchout_HookURL',
],
},
cookieConsentVersion: 1,

Expand Down
Loading