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

Skip to main content

Create a test OIDC login flow

POST 

/admin/test-login-flows

Creates a dry-run OIDC test login flow pre-scoped to one provider. The returned flow carries a single-submit UI and a CSRF bearer token. No identity is persisted and no session is issued when the flow completes; the captured debug data is returned in the flow's test_context.

SDK ReferenceTypeScript
createTestLoginFlow(createTestLoginFlowBody)
ParametersTypeRequiredDescription
createTestLoginFlowBodyCreateTestLoginFlowBodyrequired
VariableType
dataLoginFlow