Bearer Auth Token - How to pass as header for each API resource
- 3 years ago
Hi,
We have a few different options here.
You could use OAuth 1 or OAuth 2 profiles to retrieve those tokens in an automated fashion. You could also automatically refresh the token after a certain duration.
OAuth 1: https://support.smartbear.com/readyapi/docs/requests/auth/types/oauth1/index.html
OAuth 2: https://support.smartbear.com/readyapi/docs/requests/auth/types/oauth2/index.htm
OAuth 2 Advanced options: https://support.smartbear.com/readyapi/docs/requests/auth/types/oauth2/advanced-options.html
Or you could add a header parameter, and pass the token to an authentication header via get data. I think we should try the authentication profiles to start as we get more automation friendly advanced options.
General auth page: https://support.smartbear.com/readyapi/docs/requests/auth/index.html