mirror of
https://github.com/kevin-DL/services.git
synced 2026-01-12 03:05:14 +00:00
Passwordless (#292)
* add two rpcs to User service: - Passwordless: endpoint that receives an email, topic and an optional message - PasswordlessML: endpoint that receives token and topic via MagicLink. * Proposal to add Passwordless login feature to the endpoint user. * remove currency run check * Commit from GitHub Actions (Publish APIs & Clients) * Create downstream.yml * Commit from GitHub Actions (Publish APIs & Clients) * update todo * Commit from GitHub Actions (Publish APIs & Clients) * Update publish.yml * Commit from GitHub Actions (Publish APIs & Clients) * Update publish.yml * Commit from GitHub Actions (Publish APIs & Clients) * Update and rename publish.yml to generate.yml * Update generate.yml * Commit from GitHub Actions (Generate Clients & Examples) * Commit from GitHub Actions (Generate Clients & Examples) * add comments * Commit from GitHub Actions (Generate Clients & Examples) * move otp to auth category * charge for user verification * Commit from GitHub Actions (Generate Clients & Examples) * Update user.proto * Commit from GitHub Actions (Generate Clients & Examples) * Commit from GitHub Actions (Generate Clients & Examples) * Change js client git repo url (#249) * Commit from GitHub Actions (Generate Clients & Examples) * use tableName func for Count * Commit from GitHub Actions (Generate Clients & Examples) * update notes example * Commit from GitHub Actions (Generate Clients & Examples) * Update .gitignore * Update .gitignore * Commit from GitHub Actions (Generate Clients & Examples) * add new endpoints SendMagicLink and VerifyToken to M3O user serivce Signed-off-by: Daniel Joudat <danieljoudat@gmail.com> * Update user.proto * add examples to examples.json | convert isvalid to is_valid | add some extra comments in user.proto Signed-off-by: Daniel Joudat <danieljoudat@gmail.com> Co-authored-by: Asim Aslam <asim@aslam.me> Co-authored-by: asim <asim@users.noreply.github.com> Co-authored-by: Janos Dobronszki <dobronszki@gmail.com> Co-authored-by: crufter <crufter@users.noreply.github.com>
This commit is contained in:
@@ -226,5 +226,40 @@
|
||||
]
|
||||
}
|
||||
}
|
||||
],
|
||||
"sendMagicLink": [
|
||||
{
|
||||
"title": "Send a MagicLink",
|
||||
"run_check": false,
|
||||
"request": {
|
||||
"email": "joe@example.com",
|
||||
"subject": "MagicLink to access your account",
|
||||
"textContent": "Hi there,\n\nClick here to access your account $micro_verification_link",
|
||||
"fromName": "Awesome Dot Com",
|
||||
"address": "www.example.com",
|
||||
"endpoint": "verifytoken"
|
||||
},
|
||||
"response": {
|
||||
"session": {
|
||||
"id": "df91a612-5b24-4634-99ff-240220ab8f55",
|
||||
"created": "1623677579",
|
||||
"expires": "1623699579",
|
||||
"userId": "8b98acbe-0b6a-4d66-a414-5ffbf666786f"
|
||||
}
|
||||
}
|
||||
}
|
||||
],
|
||||
"verifyToken": [
|
||||
{
|
||||
"title": "Verify a Token",
|
||||
"run_check": false,
|
||||
"request": {
|
||||
"token": "EdsUiidouJJJLldjlloofUiorkojflsWWdld"
|
||||
},
|
||||
"response": {
|
||||
"is_valid": false,
|
||||
"message": ""
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user