stocky-furniture-33330
08/06/2023, 7:13 AMcuddly-plastic-72839
08/07/2023, 6:36 AMreturn_to
with a custom uri scheme like myapp://registration described in the Update Registration Flow API:
https://www.ory.sh/docs/kratos/reference/api#tag/frontend/operation/updateRegistrationFlowstocky-furniture-33330
08/07/2023, 6:36 AMstocky-furniture-33330
08/07/2023, 11:48 PMupdateRegistrationFlow
call to it (I'm not clear on this step).
3. ???
4. Profit
I've gone through the docs for the update flow and I'm not entirely sure how the pieces fit together.cuddly-plastic-72839
08/08/2023, 6:30 AMcurl --request GET \
--url '<https://silly-easley-16pa1lzvl4.projects.oryapis.com/self-service/registration/api?return_session_token_exchange_code=true&return_to=http%3A%2F%2Fexample.com%2Fregistration>'
2. Update registration API flow:
curl --request POST \
--url '<https://silly-easley-16pa1lzvl4.projects.oryapis.com/self-service/registration?flow=08d22e2b-900b-476d-9931-a7f6877999dc>' \
--header 'content-type: application/json' \
--data '{
"method": "oidc",
"provider": "google",
"traits": {
"lang": "de",
"tac": "1234",
"dp": "4321"
}
}'
3. With the last step, Kratos will return you 422 and a link to open in the browser. Follow the "redirect_browser_to"
and authenticate.
4. Kratos will send you back to the return_to
you provided.
Unfortunately OIDC self-service is incomplete and buggy in version 1.
• https://github.com/ory/kratos/issues/3417
• https://github.com/ory/kratos/issues/3420
• https://github.com/ory/kratos/issues/3311
• ...