diff --git a/10.2/index.html b/10.2/index.html index d15c2377..e1990843 100644 --- a/10.2/index.html +++ b/10.2/index.html @@ -1373,7 +1373,7 @@
Password validation failed.
{
"detail": {
- "code": "REGISTER_INVALID_PASSWORD",
+ "code": "RESET_PASSWORD_INVALID_PASSWORD",
"reason": "Password should be at least 3 characters"
}
}
@@ -1765,20 +1765,28 @@
400 Bad Request
Another user with the same e-mail address already exists.
+The OAuth provider didn't return an e-mail address. Make sure this provider return e-mail address through their API and you have asked for the required scope.
400 Bad Request
User is inactive.
+Another user with the same e-mail address already exists.
Each OAuth association router you define will expose the two following routes.
GET /authorize
¶200 OK
{
- "authorization_url": "https://www.tintagel.bt/oauth/authorize?client_id=CLIENT_ID&scopes=a+b&redirect_uri=https://www.camelot.bt/oauth/callback"
-}
+
GET /callback
¶400 Bad Request
Invalid token.
400 Bad Request
The OAuth provider didn't return an e-mail address. Make sure this provider return e-mail address through their API and you have asked for the required scope.
+ +200 OK
{
- "id": "57cbb51a-ab71-4009-8802-3f54b4f2e23",
- "email": "king.arthur@tintagel.bt",
- "is_active": true,
- "is_superuser": false,
- "oauth_accounts": [
- {
- "id": "6c98caf5-9bc5-4c4f-8a45-a0ae0c40cd77",
- "oauth_name": "TINTAGEL",
- "access_token": "ACCESS_TOKEN",
- "expires_at": "1641040620",
- "account_id": "king_arthur_tintagel",
- "account_email": "king.arthur@tintagel.bt"
- }
- ]
-}
+{
+ "id": "57cbb51a-ab71-4009-8802-3f54b4f2e23",
+ "email": "king.arthur@tintagel.bt",
+ "is_active": true,
+ "is_superuser": false,
+ "oauth_accounts": [
+ {
+ "id": "6c98caf5-9bc5-4c4f-8a45-a0ae0c40cd77",
+ "oauth_name": "TINTAGEL",
+ "access_token": "ACCESS_TOKEN",
+ "expires_at": "1641040620",
+ "account_id": "king_arthur_tintagel",
+ "account_email": "king.arthur@tintagel.bt"
+ }
+ ]
+}
Return the current authenticated active user.
200 OK
{
- "id": "57cbb51a-ab71-4009-8802-3f54b4f2e23",
- "email": "king.arthur@camelot.bt",
- "is_active": true,
- "is_superuser": false
-}
+
Update the current authenticated active user.
Payload
-200 OK
{
- "id": "57cbb51a-ab71-4009-8802-3f54b4f2e23",
- "email": "king.arthur@tintagel.bt",
- "is_active": true,
- "is_superuser": false
-}
+
400 Bad Request
Password validation failed.
-{
- "detail": {
- "code": "UPDATE_USER_INVALID_PASSWORD",
- "reason": "Password should be at least 3 characters"
- }
-}
+
400 Bad Request
A user with this email already exists. -
Return the user with id user_id
.
200 OK
{
- "id": "57cbb51a-ab71-4009-8802-3f54b4f2e23",
- "email": "king.arthur@camelot.bt",
- "is_active": true,
- "is_superuser": false
-}
+
Update the user with id user_id
.
Payload
-{
- "email": "king.arthur@tintagel.bt",
- "password": "merlin",
- "is_active": false,
- "is_superuser": true
-}
+
200 OK
{
- "id": "57cbb51a-ab71-4009-8802-3f54b4f2e23",
- "email": "king.arthur@camelot.bt",
- "is_active": false,
- "is_superuser": true
-}
+
400 Bad Request
Password validation failed.
-{
- "detail": {
- "code": "UPDATE_USER_INVALID_PASSWORD",
- "reason": "Password should be at least 3 characters"
- }
-}
+
400 Bad Request
A user with this email already exists. -
DELETE /{user_id}
¶