Openid Configuration Http/Https

This is why I introduced the base URL, just set it to https and it should work fine. I have the same scenario with the cloud.

The baseURL is the publicly used URL, not the internal URL.

yes, I have configured the baseUrl that way, but it doesn’t work.
“/.well-known/openid-configuration” gets 404 when baseUrl: https.

With “/identity-server”?`


yes with identity-server By the way, I’m using the current version from the master repo.

BaseUrl: https ;

BaseUrl: http ;

As a result of the ARR redirect, the user cannot login when different requests go to the background according to the baseUrl.

But the base URL does have nothing to do with the routing, afaik a wrong base URL cannot cause a 404.

@Sebastian I tried to explain in a top post but can you check?

Can you have a look to the logs, what URL is actually being received by Squidex?

      "HostingRequestFinishedLog":"Request finished HTTP/2 GET https://localhost:5001/identity-server/.well-known/openid-configuration - - - 200 - text/html 29.3356ms",
      "ClientAgent":"Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/ Safari/537.36"
            "Rendering":"Request finished HTTP/2 GET https://localhost:5001/identity-server/.well-known/openid-configuration - - - 200 - text/html 29.3356ms"

but return not found page.emphasized text

Thats not from Squidex.

I added Serilog for more detailed logging. I think you can reach the same result by trying what I said in your own local.

I have not deployed the 7.X to the cloud yet, but I have a test instance there with https termination on cloudflare and it works fine there.

The default docker-compose setup also does https termination on caddy, also no problem.

Perhaps I do not understand your setup?

This is exactly the same problem as I’ve already reported here: After upgrade to 6.6.0 version login no longer works. Until 6.14.0 the behavior is the same.

On 7.x the problem is not solved also.

I have a test instance with docker compose running 6.8.0 and I do not have this issue.

With a reverse proxy?

Yes, it is this setup:

After some changes on the configuration I’ve found root cause for the login having problems.

We are redirecting all HTTP request to HTTPS.

So we access login page on

After clicking on login button, SQUIDEX sends the following URL (a new window pops up and the following URL is displayed):

So, even if we access SQUIDEX on https, somewhere after clicking the login button, a http url is given.

We are using version 7.1.0.

And on docker-compose:

    image: "squidex/squidex:7.1.0"
    container_name: eticsquidex
    restart: unless-stopped  
      - ..
      - ASPNETCORE_URLS=http://+:5000
      - ...

The .env contains:

That’s normal. Usually the reverse proxy just makes a 30X redirect for all http requests.

On 6.4.0 the same configuration worked. From 6.6.0 onward it does not work.

We are using apache that also uses let’s encrypt to generate the SSL certificate.

We have an exception when forcing http to https due to the way letsencrypt works.
The exception is on “.well-known” request path. This request path does not force https.

The main problem is that the window popup (for login) opens and closes automatically and it is almost impossible to check what was being called.

A further investigation showed that the endpoint “” was being called. Since 200 OK was returned it was not obvious that the response was not the OIDC standard response (the JSON with all open id connect endpoints and details).

The problem was not on Squidex. The redirect exception rule was rewritten ant the problem was solved.

1 Like

So changed http configuration to this:

  RewriteEngine On

  RewriteCond %{HTTPS} off
  RewriteCond %{REQUEST_URI} !^\/\.well-known\/acme-challenge\/.*$
  RewriteRule (.*) https://REPLACE_BY_PUBLIC_DOMAIN/$1 [R,L]

Also needed to add


On docker-compose.yml for start working.

1 Like