Flarum uses the flarum_saml extension in order to handle SAML2 authentication.
You must first install this extension on your instance, then enable the SAML2 SSO extension in the Administration panel and fill in the following parameters.
{{ url_for("sso.saml_metadata", service_uuid=service.uuid, _external=True) }}
Persistent
urn:oid:0.9.2342.19200300.100.1.1
Yes
Yes
Yes
Yes
Not supported
Not supported
Yes
Yes
Remember to have an SAML user as Flarum admin if enabled
{{ "".join(service.config["sp_key"].strip().split("\n")[1:-1]) }}
{{ "".join(service.config["sp_cert"].strip().split("\n")[1:-1]) }}