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

Skip to main content

Initiate Native SAML Sign-In (Direct POST)

POST 

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

Identical to GET /self-service/methods/saml/init/{provider}, except the caller POSTs directly to this endpoint -- validated by the anti-CSRF middleware -- instead of being redirected here as a GET.

SDK ReferenceTypeScript
initSamlLoginRequest()
ParametersTypeRequiredDescription
providerstringrequiredThe SAML connection ID to start a native SP-initiated sign-in for.
flowstringrequiredThe Login, Registration, or Settings Flow ID this SAML sign-in continues.
purpose'login' | 'registration' | 'settings-link'requiredThe kind of flow `flow` names: `login`, `registration`, or `settings-link` (a settings flow linking a new SAML credential). The flow must exist in the named kind, or the request is not found.
VariableType
datastring