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

Unable to view LWR B2B store #199

Open
garran89 opened this issue Oct 12, 2024 · 2 comments
Open

Unable to view LWR B2B store #199

garran89 opened this issue Oct 12, 2024 · 2 comments
Assignees
Labels

Comments

@garran89
Copy link

garran89 commented Oct 12, 2024

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 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.

Output of runtime-info.json file

{
  "orgId": "00DQI000007QIdB",
  "siteId": "0DMQI0000009eMQ",
  "clwrVersion": "252.131",
  "coreVersion": "252.9",
  "coreChangelist": "49377715",
  "bundleGenerationDate": "Oct 12, 2024 2:27:52 PM",
  "siteTemplateName": "b2b-storefront",
  "deployTarget": "CORE"
}

Is there something that I am missing while using this plugin with LWR based Salesforce commerce cloud stores?

Screenshot 2024-10-12 at 16 50 30

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.

@nrkruk nrkruk self-assigned this Oct 23, 2024
@nrkruk nrkruk added the BUG P2 label Oct 23, 2024
Copy link

git2gus bot commented Oct 23, 2024

This issue has been linked to a new work item: W-17046400

@nrkruk
Copy link
Collaborator

nrkruk commented Oct 23, 2024

@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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants