Published Date: 20 February, 2022

When I try to login into Sitecore using Sitecore CLI command, I am getting below issue:

Error connecting to https://sc101identityserver.dev.local/.well-known/openid-configuration: Bad Gateway

http://www.tekkishare.com

I checked and my Sitecore is working fine and using browser I am able to login as well.

I checked the .Net Core Runtime and .Net Core 3.1 is installed.

When I hit the below URL in browser, I am getting HTTP Error 502.5 - Process Failure error

http://www.tekkishare.com

After some research, I found that license file available on the identityserver was not valid at the path \SC101identityserver.dev.local\sitecoreruntime\license.xml

After changing the valid license file, I am getting the json below response.

http://www.tekkishare.com

After this, I tried the same PowerShell command to login using Sitecore CLI, this time Sitecore login popup came. I got the below screen after providing the credential. Here need to provide the permission, hence clicked on Yes, Allow.

http://www.tekkishare.com

http://www.tekkishare.com