What functionality uses the tenant issuer, and can it be changed from a hostname to a URL?
-
The issuer on a tenant is configured as just a hostname (e.g.
acme.com) instead of a full URL with a scheme (e.g.https://acme.com). An external identity provider rejected this configuration because it doesn't comply with the OIDC specification, which requires a URL.The FusionAuth UI appears to prepopulate new tenants with just
acme.com(a bare hostname), and the documentation indicates the issuer must include a scheme. This misconfiguration has been in place for years.Questions:
- What functionality in FusionAuth uses the tenant issuer configuration?
- Is it just OAuth/OIDC authorization responses, or does it appear elsewhere?
- What steps are needed to safely change the issuer from a hostname to a full URL?
-
The tenant issuer appears in three places, not just authorization responses:
-
JWT
issclaim — It's the issuer in every access token and ID token issued for the tenant. This is the biggest impact, because every API, gateway, or library that validates theissclaim is configured with the current value. -
OIDC discovery — It's the
issuervalue returned by/.well-known/openid-configuration. Spec-compliant clients and libraries expect anhttps://URL here, and the discovery URL must be based on it. -
OAuth authorization responses — As of FusionAuth 1.69.0, FusionAuth returns an
issparameter in Authorization Code and Implicit responses per RFC 9207. Clients that validate this parameter will reject a bare hostname.
Steps to correct the issuer
-
Change the issuer under Tenants → Edit → General to
https://<your-domain>. -
Regenerate signing keys — The issuer is tied to the generated signing keys. Per application, go to the JWT tab and select "Auto generate a new key on save" for both the access token and ID token keys. See this forum post for more details.
-
Review application OAuth URLs — Any application OAuth configuration that references the old issuer value must be updated manually. These are not updated automatically when the tenant issuer changes.
Note: The prepopulated
acme.comhostname in the new-tenant UI (without a scheme) is a known bug. Until it's fixed, manually set the issuer to a full URL when creating new tenants. -
-
D dan has marked this topic as solved