How to take the bearer token which is specific to role using http protocol

53 Views Asked by At

I'm trying to automate the APIs which is implemented as part of portal UI solution. Here Authorization happens on role level. In UI, role is decided by selecting one of the role's radio button and click on login. And I can get the bearer token for the role from network tab manually. If I try to automate the API's, Bearer token is required. I'm using http protocol to automate. Problem is my JWT bearer token is valid only for 3hrs. This eventually force me to take new bearer token during every execution as I will be integrating it with CI. How to take Bearer token before hitting the API's using http protocol ?

0

There are 0 best solutions below