Token authentication and authorization - flinux84/CloudMine GitHub Wiki
To log in send(POST) this to http://serverurl/token
Content-Type: application/x-www-form-urlencoded
username = TEST & password = TEST123
You will get this response:
200 OK
Content-Type: application/json
{
"access_token": "eyJhb...",
"expires_in": 300
}
Use a header with:
key: Authorization
value: Bearer eyJhbGciO.... (Bearer[space]access_token)
When using a api method with [Authorize]