JWT Token Creation

Hello,

So according to API documentation i have to use JWT Token in header:
"-H “Authorization: Bearer {JWT-TOKEN}”

I have secret key, but this is the only thing i got. Is this possible to create that token with that in Uipath?

Previously i had only API connect with secret coded in byte64, but that JWT Token is something new for me :frowning:

Welcome to the forums @Human_robot.

What API Documentation are you referring to?

Hello,

This is API from goverment site. And there is nothing about autorization just, as mentioned i have API key from them and i should use JWT Token in header:

"-H “Authorization: Bearer {JWT-TOKEN}”

That is all, is that documentation missing something to create JWT Token?

Okay, well without knowing the specific site, or being able to see their documentation, I suggest reaching out to the support team that manages the resource.

There are a lot of variables to generating a JSON Web Token and what is required is dependent on the resource you are attempting to authenticate to as well as the client making the request and the technology being used.

I would make the assumption that you would have a place to upload a public key for which the resource would use to validate the JWT that is sent to them is signed with the appropriate private key. There are a number of frameworks out there that help you manage/generate such tokens as well as resources on how to do so manually if needed.

But ultimately you need to understand the requirements of the resource you are attempting to use.

1 Like