magnificent-noon-17550
09/02/2022, 9:07 AMproud-plumber-24205
09/02/2022, 9:18 AMmagnificent-noon-17550
09/02/2022, 9:20 AMproud-plumber-24205
09/02/2022, 9:20 AMproud-plumber-24205
09/02/2022, 9:20 AMproud-plumber-24205
09/02/2022, 9:21 AMmagnificent-noon-17550
09/02/2022, 9:21 AMmagnificent-noon-17550
09/02/2022, 9:22 AMmagnificent-noon-17550
09/02/2022, 9:22 AMmagnificent-noon-17550
09/02/2022, 9:22 AMGuzzleHttp\ClientInterface
.
// This is optional, GuzzleHttp\Client
will be used as default.
new GuzzleHttp\Client(),
$config
);
$returnTo = 'http://auth.lambdadigital.co.in:10444/oryserver/user-registration.php'; // string | The URL to return the browser to after the flow was completed.
try {
$result = $apiInstance->initializeSelfServiceRegistrationFlowForBrowsers();
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling V0alpha2Api->initializeSelfServiceRegistrationFlowForBrowsers: ', $e->getMessage(), PHP_EOL;
}magnificent-noon-17550
09/02/2022, 9:23 AMGuzzleHttp\ClientInterface
.
// This is optional, GuzzleHttp\Client
will be used as default.
new GuzzleHttp\Client(),
$config
);
//$flow = 'c6af0070-50d6-495f-930e-be79f44d8341 '; // string | The Registration Flow ID The value for this parameter comes from flow
URL Query parameter sent to your application (e.g. /registration?flow=abcde
).
$arr = array (
"traits"=>array(
"email"=>"alaghusun290@gmail.com",
"name"=>array(
"last"=>"alaghu",
"first"=>"sundar",
))
);
print_r( $arr);
$arrayVariable = array(
"method" => "password",
"csrf_token" => "Gftxl++5eqIlAxqeufAI2i7eUWXlWmKg4NWadFrDpbAHWOH3+lP+5sRLIK0se7V2Tb+KM40drh9TEhvlu8dNAw==",
"password"=> "Alaghu987",
"traits"=> $arr,
);
print_r($arrayVariable);
$flow = '4b51dd4b-2bd4-4f86-83d1-4bae54d204e1';
$submitSelfServiceLoginFlowBody = new \Ory\Kratos\Client\Model\SubmitSelfServiceRegistrationFlowBody($arrayVariable); // \Ory\Kratos\Client\Model\SubmitSelfServiceLoginFlowBody
$xSessionToken = 'xSessionToken_example'; // string | The Session Token of the Identity performing the settings flow.
$cookie = ''; // string | HTTP Cookies When using the SDK in a browser app, on the server side you must include the HTTP Cookie Header sent by the client to your server here. This ensures that CSRF and session cookies are respected.
try {
$result = $apiInstance->submitSelfServiceRegistrationFlow($flow, $submitSelfServiceLoginFlowBody );
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling V0alpha2Api->submitSelfServiceLoginFlow: ', $e->getMessage(), PHP_EOL;
}proud-plumber-24205
09/02/2022, 9:23 AMproud-plumber-24205
09/02/2022, 9:23 AMmagnificent-noon-17550
09/02/2022, 9:25 AMmagnificent-noon-17550
09/02/2022, 9:25 AMproud-plumber-24205
09/02/2022, 9:25 AM/selfservice/registration/browser
2. this redirects back to your php server with a flowID, PHP extracts the flowID, gets the nodes and renders the UI
3. the UI posts back all the UI nodes in an HTML form to kratos directlyproud-plumber-24205
09/02/2022, 9:26 AMmagnificent-noon-17550
09/02/2022, 9:26 AMmagnificent-noon-17550
09/02/2022, 9:26 AMproud-plumber-24205
09/02/2022, 9:26 AMExpress
app
https://github.com/ory/kratos-selfservice-ui-node/blob/master/src/routes/registration.tsmagnificent-noon-17550
09/02/2022, 9:29 AMmagnificent-noon-17550
09/02/2022, 9:30 AMproud-plumber-24205
09/02/2022, 9:30 AMproud-plumber-24205
09/02/2022, 9:31 AMmagnificent-noon-17550
09/02/2022, 9:31 AMmagnificent-noon-17550
09/06/2022, 12:58 PMproud-plumber-24205
09/06/2022, 2:25 PMproud-plumber-24205
09/06/2022, 2:25 PMmagnificent-noon-17550
09/07/2022, 6:33 AMproud-plumber-24205
09/07/2022, 11:12 AM/login
, /register
etc. But I think the base URL might not be relative (i would need to confirm with that)
3. use Ory Cloudproud-plumber-24205
09/07/2022, 11:14 AM<https://example.com>
and another is on <https://example.org>
so the hostname here will be used as the return URL + the path /login
/ /register