Thank you for supporting the Cloud Customer Connect Community in 2024. It's a gift to work with you!

Look back
You're almost there! Please answer a few more questions for access to the Applications content. Complete registration
Interested in joining? Complete your registration by providing Areas of Interest here. Register

REST API giving 401 even if we pass Authorization header

Summary:


Content (required):

We are calling a 3rd party API. And below are the setup for the service connection,

Authentication : None (Why ? Because this API has a custom Authorization scheme where we need to get token using a different URL and encrypt using crypto-js library. We are able to generate that token. No issues)

Connection Type : Always Use Proxy (Why ? Because it does not support CORS and hence want to use VB Proxy)

We have set a Custom Header called Authorization and send the token at run time. We can see that the token is sent in the request as

Howdy, Stranger!

Log In

To view full details, sign in.

Register

Don't have an account? Click here to get started!