Configure SAML Single Sign-On (SSO) for secure enterprise authentication with your Formbricks instance.
Continue with SAML SSO
on Formbricks.
Database Setup
SAML_DATABASE_URL
environment variable in your docker-compose.yml
file (e.g., postgres://postgres:postgres@postgres:5432/formbricks-saml
). If you’re using a self-signed certificate for Postgres, include the sslmode=disable
parameter.IdP Application
User Provisioning
Metadata
Metadata Setup
connection.xml
in your self-hosted Formbricks instance’s formbricks/saml-connection
(use formbricks/apps/web/saml-connection
for development) directory and paste the XML metadata from your IdP into it. Please create the directory if it doesn’t exist. Your metadata file should start with a tag like this: <?xml version="1.0" encoding="UTF-8"?><...>
or <md:EntityDescriptor entityID="...">
. Please remove any extra text from the metadata.Restart Formbricks
docker compose down
and then docker compose up -d
.connection.xml
file, your existing SAML connection will be overwritten.