You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
vyacheslav anzhiganov 95c0e7cd61 update 1 year ago
MicroerviceIdentity update 1 year ago
migrations update 1 year ago
.gitignore update 1 year ago
LICENSE Initial commit 2 years ago
Makefile update 1 year ago
README.md update 1 year ago
alembic.ini update 1 year ago
config.origin.ini update 1 year ago
identity-manage.py update 1 year ago
requirements.txt update 1 year ago

README.md

Identityserver

Endpoints

[POST] /api/identity/0.1/users

Create a new user account

Request

curl -X POST 'https://rest-api.ru/api/identity/0.1/users' \
-H 'Content-Type: application/json' \
-d '{
    "email": "vanzhiganov@ya.ru",
    "password": "...",
    "domain": "rest-api.ru"
}'

Response

{
    "status": {
        "code": 0,
        "message": "Success"
    }
}

[POST] /api/identity/0.1/tokens

Create new JWT-token

Request

curl -X POST 'https://rest-api.ru/api/identity/0.1/tokens' \
-H 'Content-Type: application/json' \
-d '{
    "email": "vanzhiganov@ya.ru",
    "password": "...",
    "domain": "rest-api.ru"
}'

Response

{
    "response": {
        "token": "<JWT>"
    },
    "status": {
        "code": 0,
        "message": "Success"
    }
}

[DELETE] /api/identity/0.1/tokens

Revoke current JWT-token

Request

curl -X DELETE 'https://rest-api.ru/api/identity/0.1/tokens' \
-H 'X-Token: {JWT}'