New Ory Agent Security is now live! Claim your complimentary test drive. Get Started!

Skip to main content

Get SAML SP Metadata

GET 

/self-service/methods/saml/metadata

This endpoint serves the per-project SAML Service Provider metadata document: the SP entity ID and certificates this Ory Network project presents to every SAML identity provider by default. It is a public, unauthenticated, cacheable endpoint and never contains a private key.

By SAML SP convention, the returned entity ID is this endpoint's own URL. The native engine derives and uses it automatically as the default SP entity ID for every connection, so there is nothing to copy; share it with an identity provider administrator setting up SSO. A connection can present a different SP entity ID via sp_entity_id.

This endpoint 404s if no native SAML connection has been configured for this project yet (no SP signing key exists to publish).

SDK ReferenceTypeScript
getSamlMetadata()
VariableType
datastring