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
09-25-2024 01:25 AM
You first need to select the Connection Alias in the REST Step (in your Screenshot it's empty). Only then the Credential Variable will become available in the REST Step.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-15-2023 05:27 AM
There is another solution
like Niklas but I still use the credential alias
you add a get connection info step, the credential is a API KEY type.
then you use the cred value in the rest step
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-31-2023 04:38 AM
Hi,
POST Method.
While testing through REST Messages, I am getting the below error.
Request not sent to uri= https://xxx-itso-api/api/qs/oa2/v1/ : java.net.UnknownHostException: xxx-itso-api
Please help. Thank you.