Forum Discussion

Amytav's avatar
Amytav
Occasional Contributor
3 years ago
Solved

Bearer Auth Token - How to pass as header for each API resource

Hello People,

I am new to Ready API and API automation in general.

For our API testing (JSON), initially we have to authorize with a bearer token in SWAGGER UI. Two API resources are present /auth/login & /auth/base64 and both these return an access token and user details respectively in encrypted format. The final bearer token format is: </auth/login: accesstoken>.</auth/base64 : message>

The bearer token has session time of 15 minutes after which we need to generate a new one.

Could anyone please let me know resources or steps on how to set the bearer token details for every Test Case in Ready API?

2 Replies