Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
docs: complete registration documentation
- Loading branch information
Showing
13 changed files
with
573 additions
and
25 deletions.
There are no files selected for viewing
2 changes: 1 addition & 1 deletion
2
docs/docs/self-service/flows/code/login/samples/oidc.missing.txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
45 changes: 28 additions & 17 deletions
45
docs/docs/self-service/flows/code/login/samples/password.wrong.txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,35 +1,46 @@ | ||
$ curl -H "Accept: application/json" -s \ | ||
'http://127.0.0.1:4433/self-service/login/flows?id=e7fd5f9d-4ac4-40ba-bf39-8743f85360c5' \ | ||
'http://127.0.0.1:4433/self-service/registration/flows?id=cb264cfa-31d4-40cf-bb74-1c61abd7d298' \ | ||
| jq -r '.methods.password.config' | ||
|
||
{ | ||
"action": "http://127.0.0.1:4433/self-service/login/methods/password?flow=e7fd5f9d-4ac4-40ba-bf39-8743f85360c5", | ||
"action": "http://127.0.0.1:4433/self-service/registration/methods/password?flow=cb264cfa-31d4-40cf-bb74-1c61abd7d298", | ||
"method": "POST", | ||
"fields": [ | ||
{ | ||
"name": "identifier", | ||
"type": "text", | ||
"name": "csrf_token", | ||
"type": "hidden", | ||
"required": true, | ||
"value": "foo@ory.sh" | ||
"value": "SRJdmk6+47L79ydSXNQyMIvfFChL51uZ16nTYw2WntUPNu5IWKzyJt9VmOTFPe6S3e/HqcVD/98dZorkreFGRg==" | ||
}, | ||
{ | ||
"name": "password", | ||
"type": "password", | ||
"required": true | ||
"required": true, | ||
"messages": [ | ||
{ | ||
"id": 4000005, | ||
"text": "The password can not be used because the password has been found in at least 23597311 data breaches and must no longer be used..", | ||
"type": "error", | ||
"context": { | ||
"reason": "the password has been found in at least 23597311 data breaches and must no longer be used." | ||
} | ||
} | ||
] | ||
}, | ||
{ | ||
"name": "csrf_token", | ||
"type": "hidden", | ||
"required": true, | ||
"value": "G8J8PTctGsu7jx4zwed6CGefexw14Xyqi+IBeXNLPlap+0ywodiN1WsKZMTBrB670X4rK/mZPOiokmmOQYUUBw==" | ||
} | ||
], | ||
"messages": [ | ||
"name": "traits.email", | ||
"type": "text", | ||
"value": "foo@ory.sh" | ||
}, | ||
{ | ||
"id": 4000006, | ||
"text": "The provided credentials are invalid, check for spelling mistakes in your password or username, email address, or phone number.", | ||
"type": "error", | ||
"context": {} | ||
"name": "traits.name.first", | ||
"type": "text", | ||
"value": "" | ||
}, | ||
{ | ||
"name": "traits.name.last", | ||
"type": "text", | ||
"value": "" | ||
} | ||
] | ||
} |
Binary file not shown.
Binary file added
BIN
+45.8 KB
docs/docs/self-service/flows/code/registration/images/browser-error.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+73.4 KB
docs/docs/self-service/flows/code/registration/images/browser-oidc-invalid.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
40 changes: 40 additions & 0 deletions
40
docs/docs/self-service/flows/code/registration/samples/oidc.invalid.txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
curl -H "Accept: application/json" -s \ | ||
'http://127.0.0.1:4433/self-service/registration/flows?id=f71b24aa-92d4-49a7-957b-72eea1c4c39d' \ | ||
| jq -r '.methods.oidc.config' | ||
|
||
{ | ||
"action": "http://127.0.0.1:4433/self-service/methods/oidc/auth/f71b24aa-92d4-49a7-957b-72eea1c4c39d", | ||
"method": "POST", | ||
"fields": [ | ||
{ | ||
"name": "csrf_token", | ||
"type": "hidden", | ||
"required": true, | ||
"value": "oc9VAZ5c/nvHYkb7G/z+FSn2o5kKzylFSnje6bsSANrn6+bTiE7v7+PA+U2CFSK3f8ZwGIRrjQOAt4duG2XYSQ==" | ||
}, | ||
{ | ||
"name": "traits.email", | ||
"type": "text", | ||
"value": "aeneas@ory.sh" | ||
}, | ||
{ | ||
"name": "traits.website", | ||
"type": "", | ||
"messages": [ | ||
{ | ||
"id": 4000002, | ||
"text": "Property website is missing.", | ||
"type": "error", | ||
"context": { | ||
"property": "website" | ||
} | ||
} | ||
] | ||
}, | ||
{ | ||
"name": "provider", | ||
"type": "submit", | ||
"value": "github" | ||
} | ||
] | ||
} |
28 changes: 28 additions & 0 deletions
28
docs/docs/self-service/flows/code/registration/samples/oidc.missing.txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
$ curl -s -H "Accept: application/json" \ | ||
'http://127.0.0.1:4433/self-service/login/flows?id=2e87577f-1209-407c-b523-4727d7bbdbd4' \ | ||
| jq -r 'methods.oidc.config' | ||
|
||
{ | ||
"action": "http://127.0.0.1:4433/self-service/methods/oidc/auth/2e87577f-1209-407c-b523-4727d7bbdbd4", | ||
"method": "POST", | ||
"messages": [ | ||
{ | ||
"id": 4000000, | ||
"type": "error", | ||
"text": "Authentication failed because no id_token was returned. Please accept the \"openid\" permission and try again." | ||
} | ||
], | ||
"fields": [ | ||
{ | ||
"name": "csrf_token", | ||
"type": "hidden", | ||
"required": true, | ||
"value": "O0e8KWxx1zZeNEgUOxNFvV8dVMrK63MXoxU102lj9n0nXcsaDWXhPn0TiZG3Nk+nLi/pT1wjTUsHniLRKOpp3w==" | ||
}, | ||
{ | ||
"name": "provider", | ||
"type": "submit", | ||
"value": "github" | ||
} | ||
] | ||
} |
35 changes: 35 additions & 0 deletions
35
docs/docs/self-service/flows/code/registration/samples/password.missing.txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
$ curl -H "Accept: application/json" -s \ | ||
'http://127.0.0.1:4433/self-service/login/flows?id=e7fd5f9d-4ac4-40ba-bf39-8743f85360c5' \ | ||
| jq -r '.methods.password.config' | ||
|
||
{ | ||
"action": "http://127.0.0.1:4433/self-service/login/methods/password?flow=e7fd5f9d-4ac4-40ba-bf39-8743f85360c5", | ||
"method": "POST", | ||
"fields": [ | ||
{ | ||
"name": "identifier", | ||
"type": "text", | ||
"required": true, | ||
"value": "foo@ory.sh" | ||
}, | ||
{ | ||
"name": "password", | ||
"type": "password", | ||
"required": true | ||
}, | ||
{ | ||
"name": "csrf_token", | ||
"type": "hidden", | ||
"required": true, | ||
"value": "G8J8PTctGsu7jx4zwed6CGefexw14Xyqi+IBeXNLPlap+0ywodiN1WsKZMTBrB670X4rK/mZPOiokmmOQYUUBw==" | ||
} | ||
], | ||
"messages": [ | ||
{ | ||
"id": 4000006, | ||
"text": "The provided credentials are invalid, check for spelling mistakes in your password or username, email address, or phone number.", | ||
"type": "error", | ||
"context": {} | ||
} | ||
] | ||
} |
58 changes: 58 additions & 0 deletions
58
docs/docs/self-service/flows/code/registration/samples/password.policy.txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,58 @@ | ||
$ curl -H "Accept: application/json" -s \ | ||
'http://127.0.0.1:4433/self-service/registration/flows?id=4187c805-3635-4a52-90ac-2e6a5ea3eaf5' \ | ||
| jq -r '.methods.password.config' | ||
|
||
{ | ||
"action": "http://127.0.0.1:4433/self-service/registration/methods/password?flow=4187c805-3635-4a52-90ac-2e6a5ea3eaf5", | ||
"method": "POST", | ||
"fields": [ | ||
{ | ||
"name": "csrf_token", | ||
"type": "hidden", | ||
"required": true, | ||
"value": "6PFc2kc+7Z7kAdpMrTe8TDrO9k1GyCb0sxsW3B29a5Ou1e8IUSz8CsCjZfo03mDubP4lzMhsgrJ51E9bvcqzAA==" | ||
}, | ||
{ | ||
"name": "password", | ||
"type": "password", | ||
"required": true | ||
}, | ||
{ | ||
"name": "traits.email", | ||
"type": "text", | ||
"value": "", | ||
"messages": [ | ||
{ | ||
"id": 4000001, | ||
"text": "validation failed", | ||
"type": "error" | ||
}, | ||
{ | ||
"id": 4000001, | ||
"text": "\"\" is not valid \"email\"", | ||
"type": "error" | ||
}, | ||
{ | ||
"id": 4000001, | ||
"text": "length must be >= 3, but got 0", | ||
"type": "error" | ||
}, | ||
{ | ||
"id": 4000001, | ||
"text": "\"\" is not valid \"email\"", | ||
"type": "error" | ||
} | ||
] | ||
}, | ||
{ | ||
"name": "traits.name.first", | ||
"type": "text", | ||
"value": "ORY" | ||
}, | ||
{ | ||
"name": "traits.name.last", | ||
"type": "text", | ||
"value": "GitHub" | ||
} | ||
] | ||
} |
Oops, something went wrong.