Tuesday, February 18, 2020

Sitecore Identity Server Error: Sorry, there was an error : unauthorized_client in Sitecore 9.1 login to CMS Azure App Service PAAS


 
Hello Sitecore Engineers,


 This is kind of an easy one, but I thought id throw it into a blog post in case it helps someone:


After adding a new binding from IIS on my Sitecore 9.1 instance I was getting "unauthorized client" error while login with newly added binding URL.

 The official doc for this is here but they don't talk about using the pipe operator


File Name : Sitecore.IdentityServer.Host.xml
Location : C:\inetpub\wwwroot\9Dot1.identityserver\Config\production

After adding field tag AllowedCorsOriginsGroup in  Sitecore.IdentityServer.Host.xml file I was able to login properly with newly added URL.

Also you can fix this issue by placing a pipe operator beside of old AllowedCorsOriginsGroup as below like this:.

<AllowedCorsOriginsGroup1>http://9Dot1.sc | http://jss.9Dot1.sc</AllowedCorsOriginsGroup1

Hope this Helps

Colin Cooper

No comments:

Post a Comment