Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
@W-14758629@ SLAS Private Client Support (#1722)
* add support private slas flow by using place holder value * revert ssr js in template * revert code in template * remove console * minor fix * add test for refreshToken * allow secret passed in as prop * add silenceWarning prop and readme * add changelog * PR feedback * PR feedback * PR feedback * PR feedback * PR feedback * lint * @W-14758629@ - Add a custom proxy handler for SLAS private clients (#1664) * Allow objects in commerceapi path * Add custom endpoint for SLAS. Works on public client * Get private client working * Remove console log * A more generic header replacement * Slas credentials from env vars * Add exclusions for some endpoints * Custom middleware in ssr.js * Add dependency * Private SLAS client handler in runtime * Update commerce-sdk-react with private client endpoint * Cleanup * Public client by default * more cleanup * Fix existing tests * Runtime tests- WIP * WIP test * Apply some PR feedback * Small refactor * Working tests * add getSlasEndpoint test * Lint * Change endpoint path and other minor adjustments * Don't start server if env var not set * Fix flaky test * Add option for customizing more endpoints with private client * Rename client secret env var * Bump up a test timeout * @W-14810956@ Update generator with options for slas private client (#1683) * Allow objects in commerceapi path * Add custom endpoint for SLAS. Works on public client * Get private client working * Remove console log * add private slas/private question * add private slas/private question * A more generic header replacement * Slas credentials from env vars * Add exclusions for some endpoints * add private slas/private question * Custom middleware in ssr.js * Add dependency * Private SLAS client handler in runtime * Update commerce-sdk-react with private client endpoint * Cleanup * Public client by default * more cleanup * Fix existing tests * Runtime tests- WIP * WIP test * Apply some PR feedback * Small refactor * Working tests * add getSlasEndpoint test * Lint * Change endpoint path and other minor adjustments * Don't start server if env var not set * Fix flaky test * Add option for customizing more endpoints with private client * Rename client secret env var * Bump up a test timeout * Update generator * Lint * Fix lint in generated projects * Add comments on the original app config file * Add templates for non-extensible projects * More detailed developer note --------- Co-authored-by: Alex Vuong <[email protected]> * @W-14758629@ Private client handle missing env var (#1679) * Allow objects in commerceapi path * Add custom endpoint for SLAS. Works on public client * Get private client working * Remove console log * add private slas/private question * add private slas/private question * A more generic header replacement * Slas credentials from env vars * Add exclusions for some endpoints * add private slas/private question * Custom middleware in ssr.js * Add dependency * Private SLAS client handler in runtime * Update commerce-sdk-react with private client endpoint * Cleanup * Public client by default * more cleanup * Fix existing tests * Runtime tests- WIP * WIP test * Apply some PR feedback * Small refactor * Working tests * add getSlasEndpoint test * Lint * Change endpoint path and other minor adjustments * Don't start server if env var not set * Fix flaky test * Add option for customizing more endpoints with private client * Rename client secret env var * Bump up a test timeout * Update generator * Lint * Fix lint in generated projects * Add comments on the original app config file * Add templates for non-extensible projects * Improve missing env var handling in remote environments * More detailed developer note * Remove brackets --------- Co-authored-by: Alex Vuong <[email protected]> * Private SLAS default to yes * @W-14959704@ Set private client proxy headers (#1690) * Add header injection to custom proxy * Refactor to remove duplicate code * Update private client preset config * Update e2e workflow to test for private client apps * Add conditional destructuring * Add condition to evaluate generator prompts * Add null checks to cli prompt destructuring * remove console logs * Disable npm cache for private clients * Clear verdaccio storage in e2e test setup * lerna force publish all packages * lerna force publish all packages * lerna force publish all packages * remove force publish * Bump versions * Remove steps to clear verdaccio storage * Test slack notification for private client * Add responses for private client to generator test * Restore notification on schedule * Run private client generator linearly * @W-15163165@ Reduce session churn / fix SFRA -> PWA session share on private (#1696) * Replace SFRA->PWA session handoff logic * Merge branch 'feature/pwa-kit-slas-private-support' into private-client-hybrid * Remove console.logs * Adjust cookie name * Code refactor * Return empty string * Tests * Rework suffix of cookie chunks * Update more local storage values on SFRA token handoff * Test local storage update * Remove refresh token copies from local store * Remove refresh token copy references in test * Code cleanup * Enable PWA private client via boolean (#1704) * Replace SFRA->PWA session handoff logic * Merge branch 'feature/pwa-kit-slas-private-support' into private-client-hybrid * Remove console.logs * Adjust cookie name * Code refactor * Return empty string * Tests * Rework suffix of cookie chunks * Update more local storage values on SFRA token handoff * Test local storage update * Remove refresh token copies from local store * Remove refresh token copy references in test * Enable PWA private client via boolean * Disable private client in template and update comments * Move placeholder to constants * Apply feedback * Update comment * Update comments --------- Signed-off-by: vcua-mobify <[email protected]> * E2E move preset definition to config * Fix missing preset id * Remove missing property from preset * Remove console logs * Update changelogs * Add preset for private client hybrid CI * Update name --------- Signed-off-by: vcua-mobify <[email protected]> Co-authored-by: Alex Vuong <[email protected]> Co-authored-by: Ben Chypak <[email protected]> Co-authored-by: Jainam Tushar Sheth <[email protected]> Co-authored-by: Jainam Sheth <[email protected]>
- Loading branch information