Delete user
DELETE http://localhost:3001/users
The body must have username
, password
and extra
. It returns id_token
and access_token
which are signed with the secret located at the config.json
file. The id_token
will contain the username
and the extra
information sent, while the access_token
will contain the audience
, jti
, issuer
and scope
.
Request Body
{"username"=>"user", "password"=>"password", "extra"=>"blerg"}
HEADERS
Key | Datatype | Required | Description |
---|---|---|---|
Content-Type | string |
RESPONSES
status: Created
{"id_token":"eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VybmFtZSI6InVzZXIiLCJleHRyYSI6ImJsZXJnIiwiaWQiOjIsImlhdCI6MTUzNjg3MTM0MiwiZXhwIjoxNTM2ODg5MzQyfQ.OWx1l_oDyuC7Oi0uO-iglA9quxxZ2ksX-BT2lqYjojY","access_token":"eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJodHRwczovL2dvbnRvLmNvbSIsImF1ZCI6Im5vZGVqcy1qd3QtYXV0aCIsImV4cCI6MTUzNjg3NDk0Miwic2NvcGUiOiJmdWxsX2FjY2VzcyIsInN1YiI6ImxhbGFsYW5kfGdvbnRvIiwianRpIjoiazJ4QXBOVVExWm1tQWdtcSIsImFsZyI6IkhTMjU2IiwiaWF0IjoxNTM2ODcxMzQyfQ.RTNmeyb-6mZpFEqQz0V194nKax91qJk5GN01u3hpA-Q"}