cancel
Showing results for 
Search instead for 
Did you mean: 

How to configure JWT Authorization

RRSantos
Level 3

Hi guys!

So I have to add a new API in our process, but this one has a JWT authentication, which I have no idea how to configure, first I look for additional information and I find a post saying that I have to change the type of the credential to JWT and add "-----BEGIN PRIVATE KEY-----\n password in base64 \n-----END PRIVATE KEY-----\n" in the password, after that I started to get the message "Offset and length were out of bounds for the array or count is greater than the number of elements from index to the end of the source collection" and I don't know exactly what to do, can anyone help me with this? I thing that I have to do some simple POST code, but I don't know how and where. Thanks in advance for the help!

Here some prints

1 REPLY 1

GeoffHirst
Staff
Staff

Hi Santos RS,

Thank you for being a SS&C Blue Prism customer and for using Blue Prism.

With regards JWTs (or Jots,as they are sometimes called) I recommend having a read here https://jwt.io/introduction first of all to give you some understanding of what they are and how they work.

Usually, an API has an endpoint where you pass it some information, including the JWT,  in the request body, and it returns you an Access Token that is normally valid for 60 minutes. Some api's have facilities for creating refresh tokens, some don't. 

However, have a read of this information and if you still need some help, come back to me and we can progress. One of the things that might help, could be to use the HTTP VBO to at least acquire your Access Tokem. Now, to assist in the creation of your JWT, there is an asset on the Dx here https://digitalexchange.blueprism.com/dx/entry/3439/solution/jwt that may also assist.

I hope this helps.

Thanks again for using Blue Prism.

regards

Geoff Hirst Senior DX Engineer - Digital Exchange - EMEA SS&C Blue Prism