Community
Showing results for 
Search instead for 
Do you mean 
Reply

How to get new Bearer token programmatically with authorize route from custom app

Highlighted
New Member
Posts: 1
Country: India

How to get new Bearer token programmatically with authorize route from custom app

Hi team,

We are facing an issue regarding Bearer Token generation. 

We have go through the link which you had provided earlier 
https://eup1-ie2.eu.hosted.act.com/Y5619221430-API/Act.Web.API/

I have followed the steps to get the bearer token using base 64 and entered user name, password and database name in https://www.base64encode.org/.
The steps are mentioned in the page as below :

"Generate a request for a JWT token using basic authentication schema (Bearer Token)
You need to encode the Act! Username and Password using base 64, as well as the database name."

Authorization token (bGlwaWthLmJhc3VAd2lwcm8uY29tOkFjdHNvZnR3YXJlOlk1NjE5MjIxNDMw) got generated successfully in BASE 64 and entered it in postman and got 401 Unauthorized error. Attached here the screenshot of the postman error.

We have also tried to decode the bearer token (eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJzdnIiOiIobG9jYWwpIiwiZGIiOiJZNTYxOTIyMTQz
MCIsInVuIjoibGlwaWthLmJhc3VAd2lwcm8uY29tIiwiaWQiOiJmNDNmNWExNi0xZTVmLTRjODEtYjdjOS1mYTYzNTA5NTRkMjQiLCJpYXQiOiIyMDE5LTA1LTMxVDEyOjQzOjQ5LjIwNDc4MTVaIn0.fKo50NAQJVtI-pAZQ1LY7ADPm2LuUwZOboDm4J43ZIw) in BASE 64 (https://www.base64decode.org/) and got below results :

{"typ":"JWT","alg":"HS256"}{"svr":"(local)","db":"Y5619221430","un":"lipika.basu@wipro.com","id":"f43f5a16-1e5f-4c81-b7c9-fa6350954d24","iat":"2019-05-31T12:43:49.2047815Z"} *t4 V) 5- .0d n vH

 

Please do let us know how to generate bearer token and above attribute values using base 64 so that we can progress.

 

 

Regards,

Ankur Das