HTTPS required Authentication Origin: Application & API OSI layer 7 · Application Last updated 28 Nov 2026

Keycloak: HTTPS required

Keycloak's realm requires SSL for external requests.

Exact message you may see HTTPS required Keycloak
Seen on: Keycloak

Meaning

Keycloak's realm option 'Require SSL' defaults to external requests, so anything not from localhost or a private IP must use HTTPS. Behind a reverse proxy the original scheme is lost unless forwarded.

Common causes

  • SSL required = external
  • Proxy not forwarding headers
  • Testing from another machine over plain HTTP

⚡ Quick fix

  1. Use HTTPS or set SSL required to none for dev
  2. Put Keycloak behind a proxy that sets X-Forwarded-Proto
  3. Start with --proxy edge when TLS terminates at the proxy
  4. Terminate TLS properly and forward X-Forwarded-Proto
  5. For development only set Require SSL to none (master realm via CLI)

Detailed fix by platform

Keycloak

  1. Realm settings → General → Require SSL

How to diagnose

  1. Scheme — HTTPS?
  2. Headers — Forwarded?

🔧 Still not fixed?

Many errors look alike. If the steps above didn’t solve it, one of these is probably what you’re facing:

Where this error sits

Origin: Application & API. Errors that are often confused with or caused by this one (click to open):

Account is not fully set up — Keycloak: invalid_grant — Account is not fully set up (Authentication)Account is not fully …account locked — Your account has been locked due to too many failed login attempts (Authentication)account lockedInvalid client or Invalid client credentials — Keycloak: unauthorized_client — Invalid client or Invalid client credentials (Authentication)Invalid client or Inv…Invalid parameter: redirect_uri — Keycloak: We are sorry... Invalid parameter: redirect_uri (Authentication)Invalid parameter: re…Invalid user credentials — Keycloak: invalid_grant — Invalid user credentials (Authentication)Invalid user credenti…invalid_client — Sign in with Apple: invalid_client (Authentication)invalid_clientRealm does not exist — Keycloak: Realm does not exist (Authentication)Realm does not existHTTPS req…

Explore the map of this error Full error map →

🧠 Still stuck? Analyze your error

Paste the full message, response headers or stack trace — we'll detect the platform and point to the most likely cause.

💬 What worked for others

No tips yet — did something else fix this for you?

Share what worked for you

Tips are checked by an editor before they appear. Links are removed.