Skip to main content
GET
SP metadata XML for a tenant
Returns the Service Provider (SP) metadata document for a tenant, as application/samlmetadata+xml. Hand this document to the tenant’s identity provider when configuring the connection: it carries the SP entity id, the Assertion Consumer Service URLs (POST /auth/saml/{tenantID}/acs), the SP certificate (published for encryption use), and the SP’s requirements: WantAssertionsSigned="true" and AuthnRequestsSigned="false" — Recurso does not sign its AuthnRequests, so the document carries no signing key. The endpoint is public and unauthenticated so an IdP can fetch it directly, but it only answers for tenants that have an SSO connection row. The row does not need to be enabled or fully configured yet — you can hand the metadata to the IdP before the IdP details are stored — but users cannot start an SP-initiated login with GET /auth/saml/{tenantID}/login until the connection is both configured and enabled.

Path Parameters

Example Request

Example Response

The body is XML, not JSON:
The validUntil attributes are set 48 hours from the time of the request, so an IdP that caches metadata should re-fetch it periodically. The NameIDFormat element is present but empty — the SP does not require a particular NameID format; it reads the user’s email from the assertion. Only the HTTP-POST ACS (index 1) is used by Recurso’s login flow; the HTTP-Artifact entry is emitted by the SAML library and is not backed by an artifact resolution step.

Errors

Errors use the standard envelope — see Errors.

Authorizations

Authorization
string
header
required

Path Parameters

tenantID
string<uuid>
required

Response

SP metadata XML.

The response is of type string.