ngx-admin-bundle-support icon indicating copy to clipboard operation
ngx-admin-bundle-support copied to clipboard

what is the "Bearer <token>"

Open hohnworld opened this issue 5 years ago • 2 comments

INSTRUCTION.pdf API Documentation there is input 'api_key' at top right corner. Paste there token in format: 'Bearer ' and click 'Explore' i login get like this and i don't know what to do next,specialy 'Bearer ' { "token": { "expires_in": 3600000, "access_token": "aaa.bbb.ccc", "refresh_token": "ddd.eee.fff" } }

hohnworld avatar Feb 26 '20 17:02 hohnworld

i use email adress and pass word logo ,got json like below and i don't know what is the api_key: { "token": { "expires_in": 3600000, "access_token": "aaa.bbb.ccc", "refresh_token": "ddd.eee.fff" } }

hohnworld avatar Feb 26 '20 17:02 hohnworld

Just copy aaa.bbb.ccc, then click Swagger UI's 'Authorize' button (at top right corner). 'Available authorizations' window should popup Input 'Bearer aaa.bbb.ccc' (please note there is a space) Click 'Authorize' button in popup windows and 'Close' Then you should try other APIs.

Postman: Auth > Type > choose 'Bearer Token' input aaa.bbb.ccc at 'Token' column,don't add 'Bearer ' string then you should try 'Get' API

lijenyan avatar Mar 06 '20 08:03 lijenyan