Auth
Operations related to the authentication
Login by organization user
Authorizations
Body
passwordstringRequiredExample:
The password
123456
Responses
200
OK
application/json
400
Bad Request
application/json
post
/auth/loginPOST /api/auth/login HTTP/1.1
Host: abp-api.akinon.net
Authorization: Bearer YOUR_SECRET_TOKEN
Content-Type: application/json
Accept: */*
Content-Length: 47
{
"username": "[email protected]",
"password": 123456
}
{
"accessToken": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9",
"refreshToken": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9"
}
Register by organization user
Authorizations
Path parameters
tokenstringRequired
The invitation token
Body
passwordstringRequiredExample:
The password
123456
firstNamestringRequiredExample:
The first name
John
lastNamestringRequiredExample:
The last name
Doe
tokenstringRequiredExample:
The recaptcha token
0a6ccf4046b552a92c6b026b414fe28f
Responses
201
Created
application/json
400
Bad Request
application/json
post
/auth/register/{token}POST /api/auth/register/{token} HTTP/1.1
Host: abp-api.akinon.net
Authorization: Bearer YOUR_SECRET_TOKEN
Content-Type: application/json
Accept: */*
Content-Length: 126
{
"username": "[email protected]",
"password": 123456,
"firstName": "John",
"lastName": "Doe",
"token": "0a6ccf4046b552a92c6b026b414fe28f"
}
{
"_id": "63ea10b94a472e003305232b",
"username": "[email protected]",
"language": "en",
"region": "us",
"firstName": "John",
"lastName": "Doe",
"status": 1,
"attributes": {
"iamUserId": "1234567890"
},
"avatarUrl": "text",
"settings": {
"mailOnBuildCompleted": true,
"mailOnCodePushCompleted": true
},
"lastLoginAt": "2020-07-23T12:00:00.000Z",
"createdAt": "2020-07-23T12:00:00.000Z",
"updatedAt": "2020-07-23T12:00:00.000Z"
}
Change password by organization user
Authorizations
Body
passwordstringRequiredExample:
The password
123456
tokenstringRequiredExample:
The token
0a6ccf4046b552a92c6b026b414fe28f
Responses
200
OK
application/json
400
Bad Request
application/json
401
Unauthorized
application/json
post
/auth/change-passwordPOST /api/auth/change-password HTTP/1.1
Host: abp-api.akinon.net
Authorization: Bearer YOUR_SECRET_TOKEN
Content-Type: application/json
Accept: */*
Content-Length: 62
{
"password": 123456,
"token": "0a6ccf4046b552a92c6b026b414fe28f"
}
{
"_id": "63ea10b94a472e003305232b",
"username": "[email protected]",
"language": "en",
"region": "us",
"firstName": "John",
"lastName": "Doe",
"status": 1,
"attributes": {
"iamUserId": "1234567890"
},
"avatarUrl": "text",
"settings": {
"mailOnBuildCompleted": true,
"mailOnCodePushCompleted": true
},
"lastLoginAt": "2020-07-23T12:00:00.000Z",
"createdAt": "2020-07-23T12:00:00.000Z",
"updatedAt": "2020-07-23T12:00:00.000Z"
}
Generate reset token by organization user
Authorizations
Body
Responses
201
Created
No content
400
Bad Request
application/json
post
/auth/generate-reset-tokenPOST /api/auth/generate-reset-token HTTP/1.1
Host: abp-api.akinon.net
Authorization: Bearer YOUR_SECRET_TOKEN
Content-Type: application/json
Accept: */*
Content-Length: 29
{
"username": "[email protected]"
}
No content
Refresh token by organization user
Authorizations
Body
refreshTokenstringRequiredExample:
The refresh token
eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9
Responses
201
Created
application/json
400
Bad Request
application/json
401
Unauthorized
application/json
post
/auth/refresh-tokenPOST /api/auth/refresh-token HTTP/1.1
Host: abp-api.akinon.net
Authorization: Bearer YOUR_SECRET_TOKEN
Content-Type: application/json
Accept: */*
Content-Length: 55
{
"refreshToken": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9"
}
{
"accessToken": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9",
"refreshToken": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9"
}
Last updated
Was this helpful?