NextCloud SAML authentication is deprecated. OIDC authentication used in NextCloud template is prefered
NextCloud uses the user_saml extension in order to handle SAML2 authentication.
You must first install this extension on your instance, then go to your Settings menu and fill in the following parameters.
urn:oid:0.9.2342.19200300.100.1.1
Persistent
{{ "".join(service.config["sp_cert"].strip().split("\n")[1:-1]) }}
{{ "".join(service.config["sp_key"].strip().split("\n")[1:-1]) }}
{{ url_for("sso.saml_metadata", service_uuid=service.uuid, _external=True) }}
{{ url_for("sso.saml_redirect", service_uuid=service.uuid, _external=True) }}
{{ service.config["application_uri"] }}
{{ "".join(service.config["idp_cert"].strip().split("\n")[1:-1]) }}