Login issue Invalid redirect_uri

I have…

  • [ ] Checked the logs and have provided uploaded a log file and provided a link because I found something suspicious there.

I’m submitting a…

  • [ ] Regression (a behavior that stopped working in a new release)
  • [X] Bug report
  • [ ] Performance issue
  • [ ] Documentation issue or request

Current behavior

  1. Visit homepage BASE_URL
  2. Click on “Login to Squidex” button
  3. Displays the popup with Operation failed Invalid redirect_uri message

Expected behavior

  1. Visit homepage BASE_URL
  2. Click on “Login to Squidex” button
  3. Displays the popup with login form with Username & Password

Minimal reproduction of the problem

Environment

  • [X] Self hosted with docker
  • [ ] Self hosted with IIS
  • [ ] Self hosted with other version
  • [ ] Cloud version

Hosted on Azure Kubernetes Service (AKS)

Version: 3.x

Browser:

  • [X] Chrome (desktop)
  • [ ] Chrome (Android)
  • [ ] Chrome (iOS)
  • [ ] Firefox
  • [X] Safari (desktop)
  • [ ] Safari (iOS)
  • [ ] IE
  • [X] Edge

Others:

Environment Variables

URLS__BASEURL: aks-dev-01.southeastasia.cloudapp.azure.com
URLS__ENFORCEHTTPS: true
LOGGING__HUMAN: false
EVENTSTORE__MONGODB__CONFIGURATION: mongodb://squidex-db-0.squidex-db-svc,squidex-db-1.squidex-db-svc:27017/
EVENTSTORE__MONGODB__DATABASE: Squidex2
STORE__MONGODB__CONFIGURATION: mongodb://squidex-db-0.squidex-db-svc,squidex-db-1.squidex-db-svc:27017/
STORE__MONGODB__DATABASE: Squidex2
STORE__MONGODB__CONTENTDATABASE: SquidexContent2
SQUIDEX__PROTOCOL: https
SQUIDEX__FORCE_HTTPS: True
IDENTITY__ADMINEMAIL: <<SOME_ADMIN_EMAIL>>
IDENTITY__ADMINPASSWORD: <<SOME_LONG_ADMIN_PED>>
IDENTITY__GITHUBCLIENT: 
IDENTITY__GITHUBSECRET: 
IDENTITY__GOOGLECLIENT: 
IDENTITY__GOOGLESECRET: 
IDENTITY__MICROSOFTCLIENT: 
IDENTITY__MICROSOFTSECRET:

Uploading the logs here:
https://ananddevsa.blob.core.windows.net/squidex-logs/logs-from-squidex-in-squidex-app-dcd6c4967-4w626.txt?sp=r&st=2019-06-30T16:00:00Z&se=2019-08-31T15:59:00Z&spr=https&sv=2018-03-28&sig=WEwsoMdye5bb1S1UojlN5%2Bju5H7VtlUrnCaZCdHpzng%3D&sr=b

URLS__BASEURL must be an URL, not a host name, e.g. http://…

1 Like

Thanks a lot @Sebastian… you saved my day.

1 Like

Hi Sebastian, I’m getting the same error and the base URL is:
“baseUrl”: “http://localhost:8081
Thank you!

In the logs it shows the allowed urls and the used urls, please compare them…

Hi, Im sorry for the trouble but stdoutLogEnabled=“true” stdoutLogFile=".\logs\stdout" and I still cant see the logs

Are you using IIS? It should work, I have tested it today. I would also create the folder manually. But this is not my construction site, it is the ASP.NET Core integration for IIS.

1 Like

Im using IIS, Added the folder, and still no logs. im getting Invalid redirect_uri when trying to log in. no Host name configured through IIS. and its http and not https

I understood that. The base url must be the same url that you use in IIS. If your page is available under http://localhost/squidex then your base url must be exactly this.

2 Likes

Found the issue! Thank you so much!

What was the issue exactly?