-
Notifications
You must be signed in to change notification settings - Fork 145
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
Update SLAS private proxy path #1752
Conversation
packages/template-retail-react-app/app/components/_app-config/index.jsx
Outdated
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for making this change @kevinxh
`Please make sure you have enabled the SLAS Private Client Proxy in your ssr.js and set the correct environment variable PWA_KIT_SLAS_CLIENT_SECRET.` | ||
) | ||
console.error( | ||
`SLAS Private Client Proxy Request URL - ${req.protocol}://${req.get( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
log the full proxied request URL, this may help if user have configuration issues.
@@ -176,7 +176,7 @@ class Auth { | |||
constructor(config: AuthConfig) { | |||
// Special endpoint for injecting SLAS private client secret | |||
const baseUrl = config.proxy.split(`/mobify/proxy/api`)[0] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think there is a bug in the waiting here as well. Since the proxy path value is configurable we might run into issues if someone was to change that.
* fix changelog * Starting release process for 3.5.0 * Consume latest `commerce-sdk-isomorphic` (#1743) * bump isomorphic sdk version * fix param keys * upgrade to 1.13.1 * Release 3.5.0 - SLAS Private Client Support (#1747) * bump version to 3.5.0 and update CHANGELOGs * fix versions and changelogs * fix lock file versions * fix package version * fix package version 2 * use npm on both win and mac platforms * Revert "use npm on both win and mac platforms" This reverts commit 63b402f. * debug ci * try shell:true * more shell:true * Update scripts/check-version.js Signed-off-by: Kevin He <[email protected]> --------- Signed-off-by: Kevin He <[email protected]> * add missing param keys for shopper search * PR feedback * bump retail app version * add changelog for retail react app template * Update SLAS private proxy path (#1752) * update private path to /mobify/slas/private * update proxy path and add loggings * disable private client by default * bump versions * update develop with 3.5.2 realease * update changelog * update changelog --------- Signed-off-by: Kevin He <[email protected]> Co-authored-by: Kevin He <[email protected]>
Description
I want to propose we change the SLAS Private client proxy path from
/mobify/scapi/shopper/auth
to/mobify/slas/private
.The reason is that the full path of the existing proxy shows duplicated path segments like
/mobify/scapi/shopper/auth/shopper/auth/v1/organizations/f_ecom_zzrf_002/oauth2/token
, this may confuse users who think there are something wrong with the duplicated path/shopper/auth/shopper/auth
Also added some loggings to help debug failed proxy requests.
If we agree with this change, i will release a new patch version
Types of Changes
Changes
How to Test-Drive This PR
Checklists
General
Accessibility Compliance
You must check off all items in one of the follow two lists:
or...
Localization