[SOLVED] Squidex Locally Hosted - Login Doesn't Work

I’m submitting a…

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

Current behavior

When running squidex locally and the UI for it, I go to log in at localhost:5000, I use the Google authentication method with the account I use every time, I click login then it just redirects me back to the login page. No errors of any kind that are visible to me. This has happened before but went away for awhile, now the issue is back so I can’t access the UI.

Expected behavior

Should be able to login and get taken to my apps like normal.

Minimal reproduction of the problem

Environment

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

Browser:

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

Others:

STACK TRACE:
{
“logLevel”: “Information”,
“elapsedRequestMs”: 265,
“app”: {
“name”: “Squidex”,
“version”: “1.0.0.0”,
“sessionId”: “8d09b6ef-eddd-457e-861a-a9e5655bcbed”
},
“web”: {
“requestId”: “dff05a37-ba3b-4d87-94ad-e2cfe6439bdc”,
“requestPath”: “/identity-server/signin-google”,
“requestMethod”: “GET”
},
“timestamp”: “2018-08-17T14:06:45.1847098Z”
}

{
“logLevel”: “Information”,
“elapsedRequestMs”: 3,
“app”: {
“name”: “Squidex”,
“version”: “1.0.0.0”,
“sessionId”: “8d09b6ef-eddd-457e-861a-a9e5655bcbed”
},
“web”: {
“requestId”: “3e5ba72c-890b-497b-b4ba-ac133f635407”,
“requestPath”: “/identity-server/account/external-callback”,
“requestMethod”: “GET”
},
“timestamp”: “2018-08-17T14:06:45.1946531Z”
}

{
“logLevel”: “Information”,
“message”: “Invoking IdentityServer endpoint: IdentityServer4.Endpoints.AuthorizeCallbackEndpoint for /connect/authorize/callback”,
“endpointType”: “IdentityServer4.Endpoints.AuthorizeCallbackEndpoint”,
“url”: “/connect/authorize/callback”,
“app”: {
“name”: “Squidex”,
“version”: “1.0.0.0”,
“sessionId”: “8d09b6ef-eddd-457e-861a-a9e5655bcbed”
},
“web”: {
“requestId”: “c8de9229-eaa3-4d48-b342-a85b077f9771”,
“requestPath”: “/connect/authorize/callback”,
“requestMethod”: “GET”
},
“timestamp”: “2018-08-17T14:06:45.2013118Z”,
“category”: “IdentityServer4.Hosting.IdentityServerMiddleware”
}

{
“logLevel”: “Information”,
“message”: “ValidatedAuthorizeRequest\r\n{\r\n “ClientId”: “squidex-frontend”,\r\n “ClientName”: “squidex-frontend”,\r\n “RedirectUri”: “http://localhost:5000/client-callback-popup”,\r\n “AllowedRedirectUris”: [\r\n “http://localhost:5000/login;”,\r\n “http://localhost:5000/client-callback-silent”,\r\n “http://localhost:5000/client-callback-popup”\r\n ],\r\n “SubjectId”: “anonymous”,\r\n “ResponseType”: “id_token token”,\r\n “ResponseMode”: “fragment”,\r\n “GrantType”: “implicit”,\r\n “RequestedScopes”: “squidex-api openid profile email squidex-profile role”,\r\n “State”: “167f7f1eaa2742208643c6a092fd0259”,\r\n “Nonce”: “f47e2b790fd54110bff54a44ac752df1”,\r\n “DisplayMode”: “popup”,\r\n “Raw”: {\r\n “client_id”: “squidex-frontend”,\r\n “redirect_uri”: “http://localhost:5000/client-callback-popup”,\r\n “response_type”: “id_token token”,\r\n “scope”: “squidex-api openid profile email squidex-profile role”,\r\n “state”: “167f7f1eaa2742208643c6a092fd0259”,\r\n “nonce”: “f47e2b790fd54110bff54a44ac752df1”,\r\n “display”: “popup”\r\n }\r\n}”,
“validationDetails”: “{\r\n “ClientId”: “squidex-frontend”,\r\n “ClientName”: “squidex-frontend”,\r\n “RedirectUri”: “http://localhost:5000/client-callback-popup”,\r\n “AllowedRedirectUris”: [\r\n “http://localhost:5000/login;”,\r\n “http://localhost:5000/client-callback-silent”,\r\n “http://localhost:5000/client-callback-popup”\r\n ],\r\n “SubjectId”: “anonymous”,\r\n “ResponseType”: “id_token token”,\r\n “ResponseMode”: “fragment”,\r\n “GrantType”: “implicit”,\r\n “RequestedScopes”: “squidex-api openid profile email squidex-profile role”,\r\n “State”: “167f7f1eaa2742208643c6a092fd0259”,\r\n “Nonce”: “f47e2b790fd54110bff54a44ac752df1”,\r\n “DisplayMode”: “popup”,\r\n “Raw”: {\r\n “client_id”: “squidex-frontend”,\r\n “redirect_uri”: “http://localhost:5000/client-callback-popup”,\r\n “response_type”: “id_token token”,\r\n “scope”: “squidex-api openid profile email squidex-profile role”,\r\n “state”: “167f7f1eaa2742208643c6a092fd0259”,\r\n “nonce”: “f47e2b790fd54110bff54a44ac752df1”,\r\n “display”: “popup”\r\n }\r\n}”,
“app”: {
“name”: “Squidex”,
“version”: “1.0.0.0”,
“sessionId”: “8d09b6ef-eddd-457e-861a-a9e5655bcbed”
},
“web”: {
“requestId”: “c8de9229-eaa3-4d48-b342-a85b077f9771”,
“requestPath”: “/connect/authorize/callback”,
“requestMethod”: “GET”
},
“timestamp”: “2018-08-17T14:06:45.2067536Z”,
“category”: “IdentityServer4.Endpoints.AuthorizeCallbackEndpoint”
}

{
“logLevel”: “Information”,
“message”: “Showing login: User is not authenticated”,
“app”: {
“name”: “Squidex”,
“version”: “1.0.0.0”,
“sessionId”: “8d09b6ef-eddd-457e-861a-a9e5655bcbed”
},
“web”: {
“requestId”: “c8de9229-eaa3-4d48-b342-a85b077f9771”,
“requestPath”: “/connect/authorize/callback”,
“requestMethod”: “GET”
},
“timestamp”: “2018-08-17T14:06:45.2122242Z”,
“category”: “IdentityServer4.ResponseHandling.AuthorizeInteractionResponseGenerator”
}

{
“logLevel”: “Information”,
“elapsedRequestMs”: 16,
“app”: {
“name”: “Squidex”,
“version”: “1.0.0.0”,
“sessionId”: “8d09b6ef-eddd-457e-861a-a9e5655bcbed”
},
“web”: {
“requestId”: “c8de9229-eaa3-4d48-b342-a85b077f9771”,
“requestPath”: “/identity-server/connect/authorize/callback”,
“requestMethod”: “GET”
},
“timestamp”: “2018-08-17T14:06:45.2176662Z”
}

{
“logLevel”: “Information”,
“elapsedRequestMs”: 1,
“app”: {
“name”: “Squidex”,
“version”: “1.0.0.0”,
“sessionId”: “8d09b6ef-eddd-457e-861a-a9e5655bcbed”
},
“web”: {
“requestId”: “f4f984f3-ae70-4dcf-9a03-7f8e8b7cd06e”,
“requestPath”: “/identity-server/account/login”,
“requestMethod”: “GET”
},
“timestamp”: “2018-08-17T14:06:45.2269475Z”
}

Ended up fixing this, it was some browser caching issue it seems.

I cleared the cache and opened an incognito tab and the login worked fine.

Potentially an issue because I use the same Gmail account on Cloud.Squidex and my Local. Only thing I could think of that would cause that.

1 Like

Strange, but great that you solved it :slight_smile: