You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
More information can be found at [Ory Kratos User Login and User Registration Documentation](https://www.ory.sh/docs/next/kratos/self-service/flows/user-login-user-registration).
655
670
operationId: getSelfServiceLoginFlow
656
671
parameters:
@@ -666,6 +681,18 @@ paths:
666
681
schema:
667
682
type: string
668
683
style: form
684
+
- description: |-
685
+
HTTP Cookie
686
+
687
+
When using the SDK on the server side you must include the HTTP Cookie Header
688
+
originally sent to your HTTP handler here.
689
+
explode: false
690
+
in: header
691
+
name: cookies
692
+
required: false
693
+
schema:
694
+
type: string
695
+
style: simple
669
696
responses:
670
697
"200":
671
698
content:
@@ -700,7 +727,6 @@ paths:
700
727
summary: Get Login Flow
701
728
tags:
702
729
- public
703
-
- admin
704
730
/self-service/logout:
705
731
post:
706
732
description: |-
@@ -1012,6 +1038,21 @@ paths:
1012
1038
1013
1039
This endpoint returns a recovery flow's context with, for example, error details and other information.
1014
1040
1041
+
Browser flows expect the anti-CSRF cookie to be included in the request's HTTP Cookie Header.
1042
+
For AJAX requests you must ensure that cookies are included in the request or requests will fail.
1043
+
1044
+
If you use the browser-flow for server-side apps, the services need to run on a common top-level-domain
1045
+
and you need to forward the incoming HTTP Cookie header to this endpoint:
1046
+
1047
+
```js
1048
+
pseudo-code example
1049
+
router.get('/recovery', async function (req, res) {
More information can be found at [Ory Kratos User Login and User Registration Documentation](https://www.ory.sh/docs/next/kratos/self-service/flows/user-login-user-registration).
1310
1365
operationId: getSelfServiceRegistrationFlow
1311
1366
parameters:
@@ -1355,7 +1410,6 @@ paths:
1355
1410
summary: Get Registration Flow
1356
1411
tags:
1357
1412
- public
1358
-
- admin
1359
1413
/self-service/settings:
1360
1414
post:
1361
1415
description: |-
@@ -1644,7 +1698,6 @@ paths:
1644
1698
summary: Get Settings Flow
1645
1699
tags:
1646
1700
- public
1647
-
- admin
1648
1701
/self-service/verification:
1649
1702
post:
1650
1703
description: |-
@@ -1807,6 +1860,20 @@ paths:
1807
1860
1808
1861
This endpoint returns a verification flow's context with, for example, error details and other information.
1809
1862
1863
+
Browser flows expect the anti-CSRF cookie to be included in the request's HTTP Cookie Header.
1864
+
For AJAX requests you must ensure that cookies are included in the request or requests will fail.
1865
+
1866
+
If you use the browser-flow for server-side apps, the services need to run on a common top-level-domain
1867
+
and you need to forward the incoming HTTP Cookie header to this endpoint:
1868
+
1869
+
```js
1870
+
pseudo-code example
1871
+
router.get('/recovery', async function (req, res) {
More information can be found at [Ory Kratos Email and Phone Verification Documentation](https://www.ory.sh/docs/kratos/selfservice/flows/verify-email-account-activation).
0 commit comments