Forum Discussion

testlabauto's avatar
testlabauto
New Contributor
4 years ago
Solved

Why can't I use property expansions in Auth Repository? Is there a workaround?

I was hoping to use hardcoded OAuth tokens in my project, but protect them somehow so they aren't clear text in source control.  I was hoping I could use Custom Project Properties that were rea...
  • RJ's avatar
    4 years ago

    Hi testlabauto ,

    Instead of using Auth manager, you can pass the token in the header of the request, if you are using JWT token you can follow the steps given in the image. Initially, I also tried to find the solution to this and resorted to this

    For token generation I have created a suite and every time i run my suites it executes first and with the help of  property transfer token is transferred to all the requests.

     

    Give Kudos or Accept it as a Solution, If my reply answers your question.