Skip to main content

Issuer URL & Reverse Proxy

Two settings decide whether the URLs LoginLink hands out — in tokens, discovery documents, emails and setup pages — are the ones your users and applications can actually reach:

  1. the issuer URL — the public address of your LoginLink instance, and
  2. the reverse-proxy settings — whether LoginLink trusts the client IP and protocol your proxy reports.

Get both right before you point real applications at the instance.

The issuer URL​

The issuer is the public base URL of your deployment, for example https://auth.acme.com (no trailing path). OIDC clients compare it to the iss claim in every token, so it must match the address applications use to reach LoginLink exactly.

Set it in your deployment configuration​

Set the LoginLink:Issuer configuration key — as an environment variable in Docker or compose:

environment:
- LoginLink__Issuer=https://auth.acme.com

or as "LoginLink": { "Issuer": "https://auth.acme.com" } in appsettings.json, or an App Setting on Windows/IIS. Restart LoginLink after changing it.

This is a property of your deployment — which domain points at this server — not a preference, which is why configuration is authoritative:

  • If LoginLink:Issuer is set, it always wins. Admin → Platform Settings → Host & Branding then shows the issuer read-only, with a note saying it's set by the deployment. Change it at the deployment level and restart.
  • If it isn't set, LoginLink falls back to the value saved on the Host & Branding page. That fallback exists so older installs keep working after an upgrade; it defaults to http://localhost:5000 until someone sets it.

What the issuer drives​

One value is used consistently for:

  • the OIDC discovery document at the bare /.well-known/openid-configuration (every organization's own discovery document, scoped to it alone, is covered separately below),
  • the iss claim in every signed access and ID token for an organization that hasn't moved to its own subdomain or custom domain,
  • the OAuth endpoint URLs shown on each app's Quickstart and Edit pages in the Console,
  • each organization's SCIM base URL, and
  • validation of Management API tokens.

Several other places build absolute links from the LoginLink:Issuer configuration key directly, without the saved fallback — the links in invitation, password-reset and platform-admin emails, the embed-widget snippet, robots.txt and the sitemap. If you only ever set the issuer on the Host & Branding page, those still say http://localhost:5000. Always set LoginLink:Issuer in configuration on any real deployment.

Checking it​

Open https://your-domain/.well-known/openid-configuration — the issuer field must be exactly the URL applications use. Then decode any token from a test sign-in and confirm its iss matches. A mismatch shows up as "invalid issuer" errors in client libraries.

Per-organization issuer​

The value above is the base issuer — the platform's own, and the one every organization that hasn't moved to a subdomain or custom domain is reached at. Each organization actually has its own issuer, derived from this base value:

Organization's identity modeIts issuer
None (the default){base issuer}/{slug} — e.g. https://auth.acme.com/acmecorp
Subdomainhttps://{slug}.{platform base domain}
Custom domain (verified)https://{its own domain}

Every token an organization issues — access, ID, and API-audience — carries that organization's own iss, and its discovery document ({its issuer}/.well-known/openid-configuration) and key list ({its issuer}/.well-known/jwks.json) are scoped to it alone: another organization's keys never appear there. A tenant admin sees the exact current value, with copy-to-clipboard, at Console → Domain Settings → Authority.

If an organization is on a subdomain or custom domain, its always-available path-based address ({base issuer}/{slug}/...) still works for human sign-in, but its /.well-known/* endpoints there redirect to the canonical (subdomain/custom-domain) discovery document instead of serving a second copy — OIDC requires issuer to equal the address the document was fetched from, so there can only be one canonical discovery address per organization.

Dual-acceptance, never an automatic cutover​

Introducing per-organization issuers is additive, not a breaking migration: by default, every organization accepts tokens carrying either the base platform issuer or its own — indefinitely. Nothing stops working the day this ships, and nothing is scheduled to stop working later on its own.

An organization that wants to require its own issuer only (and reject the base one) turns on Strict issuer mode for itself at Console → Token Settings. A platform owner can also change the default every organization starts from — off (dual-acceptance) unless changed — at Admin → Platform Settings → Host & Branding; an organization's own choice at Token Settings always overrides that default. Turning Strict issuer mode on is a breaking change for any client still validating against the base issuer, so do it only once every client has moved to the address shown at Domain Settings → Authority.

Running behind a reverse proxy​

Anything that puts a proxy or load balancer in front of LoginLink — nginx, IIS, Plesk's proxy, a cloud load balancer, Docker's own networking — hides the real client address and protocol from the application. LoginLink relies on the real client IP for rate limiting, sign-in risk scoring, geo restrictions and audit trails, so it must be told which proxies it can trust.

The relevant settings live under LoginLink:ReverseProxy:

KeyMeaning
EnabledWhen true, LoginLink reads the standard X-Forwarded-For (client IP) and X-Forwarded-Proto (http/https) headers — but only from the addresses listed below.
TrustedProxiesA list of proxy IP addresses whose forwarded headers are honored.
TrustedNetworksA list of networks in CIDR form (for example 10.0.0.0/8) whose forwarded headers are honored.

The shipped defaults have this enabled and trust 172.17.0.1 — the address Docker's default bridge network presents for traffic arriving from the host. That works for a plain docker run with the host in front; if your proxy is somewhere else (another container, another machine, a cloud load balancer), replace the list with your proxy's address or network. As environment variables:

environment:
- LoginLink__ReverseProxy__Enabled=true
- LoginLink__ReverseProxy__TrustedProxies__0=10.0.0.5
- LoginLink__ReverseProxy__TrustedNetworks__0=10.1.0.0/16

Only addresses you list are trusted — a request from anywhere else can't spoof its client IP by adding its own X-Forwarded-For header. If you turn Enabled off, LoginLink sees only the proxy's address for every visitor.

Trust only your own proxies

Listing a broad network, or an address that untrusted clients can also reach, lets them forge the client IP that rate limits and risk scoring depend on. List the specific proxy addresses or the smallest network that covers them.

Checklist behind a proxy​

  1. Terminate TLS at the proxy (or forward to port 5443), and make sure it sends X-Forwarded-For and X-Forwarded-Proto.
  2. Set LoginLink__Issuer to the public https:// URL.
  3. Set TrustedProxies / TrustedNetworks to your proxy.
  4. Restart, then check /.well-known/openid-configuration and, after a test sign-in, the client IP recorded in Admin → Audit Log.

For the ports LoginLink listens on and running without Docker, see Run from a GitHub Release; for containers, see Docker Images and the docker-compose Quickstart.