Using the Paw app with JWT

I have an API that I created that uses JWT for authorization. How can I create a suitable JWT using Paw? I could just write a simple application to take all my information and spit out the JWT, but I would rather somehow put the information in Paw and create it with the JWT and send it to the API.

+3


source to share


3 answers


The answer was looking me in the face, since the Paw is so strong. I just used the dynamic value of my login that the JWT creates. Now my JWT is automatically included in my headers. More information can be found here: https://luckymarmot.com/paw/doc/Response_Parsed_Body_Dynamic_Value



+5


source


Here is the solution that worked for me:

Create an Authorization header and add a carrier string (with a space) in front of the token as follows:



Authorization: Media [YOUR_TOKEN]

PS: Space between the bearer and your token.

+3


source


You can add header name Authorization

and add header value OAuth 2 Autorization

.

Then you need to put your token in the field Token

- Bearer

. (The selected field is in the image below.)

Paw

0


source







All Articles