-
Notifications
You must be signed in to change notification settings - Fork 114
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
21 changed files
with
1,412 additions
and
145 deletions.
There are no files selected for viewing
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 |
---|---|---|
|
@@ -163,6 +163,28 @@ paths: | |
- signup | ||
- email-and-password | ||
|
||
/user/deanonymize: | ||
post: | ||
summary: >- | ||
Deanonymize an anonymous user in adding missing email or email+password, depending on the chosen authentication method. Will send a confirmation email if the server is configured to do so | ||
tags: | ||
- anonymous | ||
security: | ||
- BearerAuth: [] | ||
requestBody: | ||
content: | ||
application/json: | ||
schema: | ||
$ref: '#/components/schemas/UserDeanonymizeRequest' | ||
responses: | ||
'200': | ||
description: >- | ||
User deanonymized successfully | ||
content: | ||
application/json: | ||
schema: | ||
$ref: '#/components/schemas/OKResponse' | ||
|
||
/user/email/change: | ||
post: | ||
summary: Change user email | ||
|
@@ -328,6 +350,7 @@ components: | |
- role-not-allowed | ||
- signup-disabled | ||
- unverified-user | ||
- user-not-anonymous | ||
- invalid-pat | ||
required: | ||
- status | ||
|
@@ -460,6 +483,36 @@ components: | |
- phoneNumberVerified | ||
- roles | ||
|
||
UserDeanonymizeRequest: | ||
type: object | ||
additionalProperties: false | ||
properties: | ||
signInMethod: | ||
description: Which sign-in method to use | ||
type: string | ||
enum: | ||
- email-password | ||
- passwordless | ||
email: | ||
description: A valid email | ||
example: [email protected] | ||
format: email | ||
type: string | ||
password: | ||
description: A password of minimum 3 characters | ||
example: Str0ngPassw#ord-94|% | ||
minLength: 3 | ||
type: string | ||
connection: | ||
deprecated: true | ||
description: Deprecated, will be ignored | ||
type: string | ||
options: | ||
$ref: "#/components/schemas/SignUpOptions" | ||
required: | ||
- signInMethod | ||
|
||
UserEmailChangeRequest: | ||
type: object | ||
additionalProperties: false | ||
|
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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
Oops, something went wrong.