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()| Parameters | Type | Required | Description |
|---|---|---|---|
| provider | string | required | The SAML connection ID to start a native SP-initiated sign-in for. |
| flow | string | required | The Login, Registration, or Settings Flow ID this SAML sign-in continues. |
| purpose | 'login' | 'registration' | 'settings-link' | required | The 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. |
| Variable | Type |
|---|---|
| data | string |