# Login issue when open website

**URL:** https://forum.litium.com/t/login-issue-when-open-website/3129
**Category:** Questions
**Created:** [November 3, 2023, 2:46pm UTC](https://forum.litium.com/t/login-issue-when-open-website/3129 "2023-11-03T14:46:35Z")
**Posts on this page:** 9
**Page:** 1

<div class="post-metadata">

### Author: ![Ebad](https://avatars.discourse-cdn.com/v4/letter/e/7ea924/32.png) [@Ebad](https://forum.litium.com/u/Ebad)
#### Post date: [November 3, 2023, 2:46pm UTC](https://forum.litium.com/t/login-issue-when-open-website/3129/1 "2023-11-03T14:46:35Z")

</div>

I am facing an issue. When I run the litium website from my local host my url is something like [http://localhost:61420](http://localhost:61420) but it is directly redirecting to me [http://localhost:61420/litium](http://localhost:61420/litium) even when i dont add /litium to my url and it is not opening the storefront.Can anyone help me with this issue? My application is using SsoLoginController which uses Azure B2C authentication

---

<div class="post-metadata">

### Author: ![Martin.Brandt](https://yyz2.discourse-cdn.com/flex030/user_avatar/forum.litium.com/martin.brandt/32/974_2.png) [@Martin.Brandt](https://forum.litium.com/u/Martin.Brandt)
#### Post date: [November 3, 2023, 2:51pm UTC](https://forum.litium.com/t/login-issue-when-open-website/3129/2 "2023-11-03T14:51:42Z")

</div>

That usually happens if you have no channel in Litium connected to the domain your are visiting (localhost)

If you log in to litium and add “localhost” as a domain and connect it to your channel, it would probably solve your problem.

---

<div class="post-metadata">

### Author: ![Ebad](https://avatars.discourse-cdn.com/v4/letter/e/7ea924/32.png) [@Ebad](https://forum.litium.com/u/Ebad)
#### Post date: [November 3, 2023, 2:56pm UTC](https://forum.litium.com/t/login-issue-when-open-website/3129/3 "2023-11-03T14:56:37Z")

</div>

so you are basically saying that i should log into litium BO and then through deployment accelerator i add localhost as a domain and import that package right?

---

<div class="post-metadata">

### Author: ![Martin.Brandt](https://yyz2.discourse-cdn.com/flex030/user_avatar/forum.litium.com/martin.brandt/32/974_2.png) [@Martin.Brandt](https://forum.litium.com/u/Martin.Brandt)
#### Post date: [November 3, 2023, 3:08pm UTC](https://forum.litium.com/t/login-issue-when-open-website/3129/4 "2023-11-03T15:08:55Z")

</div>

If you have not deployed the accelerator, then yes that is a way to go.

I don’t personally like having “Localhost” as my domain name, because you can’t run more than one site on that host 😛

I would use [projectname.localtest.me](http://projectname.localtest.me) and make sure VisualStudio starts with that instead of localhost

---

<div class="post-metadata">

### Author: ![Ebad](https://avatars.discourse-cdn.com/v4/letter/e/7ea924/32.png) [@Ebad](https://forum.litium.com/u/Ebad)
#### Post date: [November 3, 2023, 3:11pm UTC](https://forum.litium.com/t/login-issue-when-open-website/3129/5 "2023-11-03T15:11:48Z")

</div>

hahah sure Thanks. Then how can I use this projectname.localtestme? I am sure I can not use it directly 😆

---

<div class="post-metadata">

### Author: ![Martin.Brandt](https://yyz2.discourse-cdn.com/flex030/user_avatar/forum.litium.com/martin.brandt/32/974_2.png) [@Martin.Brandt](https://forum.litium.com/u/Martin.Brandt)
#### Post date: [November 3, 2023, 3:12pm UTC](https://forum.litium.com/t/login-issue-when-open-website/3129/6 "2023-11-03T15:12:56Z")

</div>

I’m not sure if you are using MVC och React accelerator, and if there are any differences about this… but… in MVC you have a file called “launchSettings.json” there you can specify the launchUrl when you start project.

---

<div class="post-metadata">

### Author: ![Ebad](https://avatars.discourse-cdn.com/v4/letter/e/7ea924/32.png) [@Ebad](https://forum.litium.com/u/Ebad)
#### Post date: [November 3, 2023, 3:19pm UTC](https://forum.litium.com/t/login-issue-when-open-website/3129/7 "2023-11-03T15:19:17Z")

</div>

I have a web.config file and yes I am using MVC

---

<div class="post-metadata">

### Author: ![Ebad](https://avatars.discourse-cdn.com/v4/letter/e/7ea924/32.png) [@Ebad](https://forum.litium.com/u/Ebad)
#### Post date: [November 3, 2023, 3:21pm UTC](https://forum.litium.com/t/login-issue-when-open-website/3129/8 "2023-11-03T15:21:52Z")

</div>

When I am deploying the accelerator package it is showing me error you do not have access to current channel

---

<div class="post-metadata">

### Author: ![system](https://canada1.discourse-cdn.com/flex030/uploads/litium/original/1X/12eddac3b8b661de1db86af10ac8151b571e6fb9.png) [@system](https://forum.litium.com/u/system)
#### Post date: [December 1, 2023, 3:22pm UTC](https://forum.litium.com/t/login-issue-when-open-website/3129/9 "2023-12-01T15:22:35Z")

</div>

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.
