4

Hi when i tried to run the docker getting started template from Sitecore i got following error

Your login is complete. You can close the browser tab now.

Login information has been saved.

Populating Solr managed schema...

You are not authorized to perform the task you are attempting. You may need to be assigned 
additional permissions.

Pushing latest items to Sitecore...

You are not authorized to perform the task you are attempting. You may need to be assigned additional permissions.

Its happening after I'm logged-in in Sitecore and accepting the application access in PowerShell it says: You are not authorized to perform the task you are attempting. You may need to be assigned additional permissions

enter image description here

enter image description here

After looking into the logs I found following log entry:

ERROR Error connecting to https://id.myproject.localhost/.well-known/openid-configuration: An error occurred while sending the request.
 at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at Sitecore.Owin.Authentication.IdentityServer.Infrastructure.HttpMessageHandlerAuthorityReplacer.<SendAsync>d__3.MoveNext()

Can somebody help me?

4

1 Answer 1

0

Sitecore CLI needs Identity server for authentication. By sending dotnet sitecore login, CLI may be able to open the identity server url in browser and get the access token.

Here, the issue is that your CM environment is not able to connect to Identity server. This is needed to read the openid-configuration. If you are using Docker, you can attach shell to the CM container, ping {ID domain} and see it if works.

You can also try logging into Sitecore CM https://{cm-domain}/sitecore/login and check whether the login is redirected to Identity server or staying with Sitecore CM login screen url itself https://{cm-domain}/sitecore/login?fbc=1. If it stays with CM login screen, then your CM container is not able to reach ID server.

In order to resolve it, you can add hostname to every container as suggested here.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.