Configuring a Custom Domain for SAML Audience URLs in FusionAuth
-
I’m working on enabling SAML login for our app using FusionAuth. While I’ve successfully set up SAML login with our company, I have a concern about the SAML audience URL.
Currently, the audience URL provided is in the format: https://company.fusionauth.io/samlv2/sp/<id>.
This isn’t ideal because, while we’re using FusionAuth Cloud now, we may transition to a self-hosted FusionAuth instance or a different authentication system in the future. To avoid dependencies on the FusionAuth Cloud domain, I’d like the SAML audience URL to use a domain we control, e.g., https://auth.company.com/samlv2/sp/<id>.
Specific Questions:
- Is it possible to configure FusionAuth to use a custom domain for the SAML audience URL?
- Does the "Issuer" setting on the tenant configuration affect SAML URLs, or is it only for JWTs?
- I noticed the "Custom URL" option at login.fusionauth.io, but it appears to only provide aliases for company.fusionauth.io and doesn’t affect SAML audience URLs. Am I correct in this understanding?
Additional Information:
- We are using FusionAuth version 1.45.1 but are open to upgrading if needed.
- Users interact only with our backend, which communicates with FusionAuth; they do not interact directly with FusionAuth.
Thanks in advance!
-
Yes, it is possible to configure a custom domain for your SAML audience URL using FusionAuth's Custom Domain feature. This setup allows you to map your desired domain, e.g., https://auth.company.com, to your FusionAuth instance, enabling the SAML audience URL to use your custom domain.
Steps to Achieve This:
- Set Up a Custom Domain:
- Configure a custom domain in FusionAuth (available for production deployments).
- Once the custom domain is set up, the SAML audience URL will change to reflect your domain, e.g., https://auth.company.com/samlv2/sp/<id>.
- Update DNS Records:
- Point the custom domain (auth.company.com) to FusionAuth Cloud using the provided instructions during setup.
- Verify SAML Configuration:
- Ensure the custom domain is reflected in the audience URL and SAML metadata. Update your SAML federation partners with the new audience URL.
Additional Notes:
- Issuer Setting: The "Issuer" setting on the tenant configuration only affects JWTs and is unrelated to SAML audience URLs.
- Custom URL Limitation: You’re correct that the login.fusionauth.io option allows for aliases to the default company.fusionauth.io domain but does not impact SAML audience URLs. Setting up a full custom domain resolves this limitation.
- Set Up a Custom Domain:
-