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

Skip to main content

Get Per-Connection SAML SP Metadata

GET 

/self-service/methods/saml/metadata/:provider

This endpoint serves per-connection SAML Service Provider metadata: the identity and certificate a single native connection presents to its identity provider, including the connection's own Assertion Consumer Service (ACS) URL. It serves a document for any native connection; when the connection sets sp_entity_id the SP entity ID is that value, otherwise it is the project default.

It 404s -- with the identical generic response -- for an unknown connection ID, a connection disabled by invalid configuration, and a non-native connection, which manages its SP identity out of band.

SDK ReferenceTypeScript
getSamlProviderMetadata()
ParametersTypeRequiredDescription
providerstringrequiredThe SAML connection ID to get metadata for.
VariableType
datastring