how to pass bearer token access from blueprism code not from the web service section in system manager
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
09-04-21 07:08 PM
I am trying to call GET API and where I need to pass Authorization headers value like "Bearer + "Token Access ID"
Each time I need to pass the new Token Access ID to call the API. How Would I pass each time dynamically?
------------------------------
Achyutam Mehta
------------------------------
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
11-04-21 08:03 AM
Hi,
You can set the authentication to Bearer Token and pass the credential which you'll have to set on each pass. Or you can set auth to none and then add a common parameter like token which you can use in common header.
------------------------------
Gopal Bhaire
Analyst
Accenture
------------------------------
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
12-04-21 10:56 AM
Thank you so much for replying.
Could you please share the screenshot or image for the same. It would be more helpful to me.
------------------------------
Achyutam Mehta
------------------------------
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
12-04-21 11:40 AM
Hi,
Method 1: For this you'll have to set credential with new token using Credential action,
Method 2: Add common parameter and expose it to take it as input. Then call the parameter in common header.
Hope this helps
------------------------------
Gopal Bhaire
Analyst
Accenture
------------------------------
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
12-04-21 05:52 PM
I have changed the authentication type as per your suggested and I am able to put the token ID as a variable but I am getting the below error for the same.
I am not sure how you put the creational name in the drop-down menu.
------------------------------
Achyutam Mehta
------------------------------
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
13-04-21 07:55 AM
Hi,
Create a credential of type Bearer Token and set it here.
------------------------------
Gopal Bhaire
Analyst
Accenture
------------------------------
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
16-04-21 07:19 PM
Hope it helps.
------------------------------
Thanks & Regards,
Tejaskumar Darji
------------------------------
