Use Bearer token in Credential for REST Integration
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-08-2021 11:05 AM
Hi ,
I am doing a REST Integration using flow designer. For Authentication, I am using bearer token, which needs to be send in Authorization header. But Instead of directly putting the token in Authorization header, I want to use Credential Alias. But I am not able to find suitable credential type to put Bearer token. I cant use Oauth type credential as I don't have client Id and Client Secret. I have direct generated token.
I tried API key credential but in runtime its not picking the Authorization header automatically . And failing with error "Error: U,Detail: Unexpected token: U" .
Thanks.
- Labels:
-
flow designer
-
IntegrationHub
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-08-2021 01:02 PM
There is a blog which explains how to use this using the scripted api way not the credential alias.
https://community.servicenow.com/community?id=community_blog&sys_id=894deee5dbd0dbc01dcaf3231f96197b
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-20-2021 04:13 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-20-2021 10:12 AM
Thanks for your Bearer token . Today it heleped me in BMC Discovery REST API call via flow designer
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-30-2023 12:33 AM
Hi Niclas,
can you show the step clearly where to create a input variable called credential step. As I not found an option to create a input In rest step