initialize_self_service_registration

Function initialize_self_service_registration 

Source
pub async fn initialize_self_service_registration(
    configuration: &Configuration,
) -> Result<RegistrationFlow, Error<InitializeSelfServiceRegistrationError>>
Expand description

This endpoint initiates a registration flow for API clients such as mobile devices, smart TVs, and so on. If a valid provided session cookie or session token is provided, a 400 Bad Request error will be returned unless the URL query parameter ?refresh=true is set. To fetch an existing registration flow call /self-service/registration/flows?flow=<flow_id>. :::warning You MUST NOT use this endpoint in client-side (Single Page Apps, ReactJS, AngularJS) nor server-side (Java Server Pages, NodeJS, PHP, Golang, …) browser applications. Using this endpoint in these applications will make you vulnerable to a variety of CSRF attacks. This endpoint MUST ONLY be used in scenarios such as native mobile apps (React Native, Objective C, Swift, Java, …). ::: More information can be found at Ory Kratos User Login and User Registration Documentation.