You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am trying to use the plugin against one of my B2B LWR store. I followed the documentation and ran the sf lightning dev site command and selected the appropriate B2B store. The command ran successfully and opened the B2B store in a new chrome TAB at localhost:3000. The store then automatically redirects to the login page http://localhost:3000/login?startURL=%2F.
When I enter the B2B buyer username and password to login, the login is successful but I ended up on the non-localhost version of the homepage i.e. https://{{client}}--{{storename}}.sandbox.my.site.com/. I then again tried to visit localhost:3000 but I again ended on the login page.
Note: I also tried the command with a different store and in that case I momentarily see the buyer as logged-in but then again I am redirected back to the login page. When I enter correct username/password, I get 401 error.
The text was updated successfully, but these errors were encountered:
@garran89 - There is currently an issue with the beta in terms of accessing pages requiring authentication. Primary way you can workaround this for now would be to enable public access for the page and republish the site.
Even with guest access enabled, the site still does not function correctly. It looks like the development server logs in the running user, which causes the API's to attempt to get account information from the logged in user, instead of using the Guest User context, and there is no way to log out the running user to appropriately use the Commerce API's in a Guest User Context. Some components render correctly, ie quick order, categories, product list, product details, but when you attempt to get pricing for a product, you end up with a 403 response from the endpoint, which does not happen with the appropriate guest user context.
Hello,
I am trying to use the plugin against one of my B2B LWR store. I followed the documentation and ran the
sf lightning dev site
command and selected the appropriate B2B store. The command ran successfully and opened the B2B store in a new chrome TAB atlocalhost:3000
. The store then automatically redirects to the login pagehttp://localhost:3000/login?startURL=%2F
.When I enter the B2B buyer username and password to login, the login is successful but I ended up on the non-localhost version of the homepage i.e.
https://{{client}}--{{storename}}.sandbox.my.site.com/
. I then again tried to visit localhost:3000 but I again ended on the login page.Output of runtime-info.json file
Is there something that I am missing while using this plugin with LWR based Salesforce commerce cloud stores?
Note: I also tried the command with a different store and in that case I momentarily see the buyer as logged-in but then again I am redirected back to the login page. When I enter correct username/password, I get 401 error.
The text was updated successfully, but these errors were encountered: