Forum Discussion

Behdad's avatar
Behdad
Contributor
4 years ago

How to use access token in authorization from another API

Hi I am using JWT token in my Rest APIs and as it has expiration time , i need to refresh/get new token during my test case  So here is an example : 1. first test step --> I create new Token using...
  • richie's avatar
    richie
    4 years ago
    Hey Behdad,

    So youre saying youre using the OAuth functionality for your token generation, right....so the token isnt returned in a response payload nor a response header...is that correct?

    If that is the case, someone else recently had the same issue and i think i remember HimanshuTayal trying to determine which internal object/property the token value was associated with.
    I can't remember if Himanshu sorted it out, but have a search in the soapui AND readyapi! forums for the answer.


    Have a look at the following link, and report back your progress

    https://community.smartbear.com/t5/SoapUI-Open-Source/Using-context-parameter-in-Request-Authorization/m-p/165001

    Ta

    Rich