Eshoponcontainers: "Unauthorised_client"- When clicking on login link

Created on 12 Jul 2018  路  5Comments  路  Source: dotnet-architecture/eShopOnContainers

Environment: Using the ubuntu 16.04 VM as a standalone server.

Only changed the localhost to Ip and put the entire app to run from jenkins with a jenkinsfile (jenkinsfile1 attached).
jenkinsfile1.txt

The app comes up. But am not able to login using the demouser/password. It says "Unauthorised client" when I click Login link from the url http://mypublicip:5100
Screenshot as below.
unauthorized client

The modified docker-compose.override.yml file is as follows:
override-yml.txt

Most helpful comment

For me this was CORS issue.

If you hit http://docker.for.win.localhost:5100/
instead of http://localhost:5100
works fine

All 5 comments

Have you set the ESHOP_EXTERNAL_DNS_NAME_OR_IP environment value to the public IP of the VM before running the images?
This environment variable is used to configure the IdSvr clients.

I have the same problem. It works on Windows but not on Ubuntu.
I have modified

  • .env file:
ESHOP_EXTERNAL_DNS_NAME_OR_IP=192.168.1.88
ESHOP_PROD_EXTERNAL_DNS_NAME_OR_IP=192.168.1.88
  • docker-compose.override.yml file
    webmvc:
    environment:
    - IdentityUrl=http://${ESHOP_EXTERNAL_DNS_NAME_OR_IP}:5105 # Local Mac: Use http://docker.for.mac.localhost:5105 || Local Windows: Use 10.0.75.1 in a "Docker for Windows" environment, if using "localhost" from browser. || #Remote access: Use ${ESHOP_EXTERNAL_DNS_NAME_OR_IP} if using external IP or DNS name from browser.

Hi @arindams621,

Could you please check this table in the database and try updating the values to the right IP?

image

Closing this issue, feel free to comment though, will reopen if necessary.

For me this was CORS issue.

If you hit http://docker.for.win.localhost:5100/
instead of http://localhost:5100
works fine

Was this page helpful?
0 / 5 - 0 ratings

Related issues

andriyankrastevv picture andriyankrastevv  路  3Comments

bakbuz picture bakbuz  路  4Comments

adahhane picture adahhane  路  4Comments

BrunoLopes picture BrunoLopes  路  4Comments

shubham2325 picture shubham2325  路  4Comments