Forum Discussion
Hi @Pretty,
There’s two ways of adding authorization to your REST call. One is to create a REST Basic Auth Account with your SnapLogic user and password as credentials, and the other is to add your authorization code as a header.
Authorization code will again be a Base64 encoded version of your SL credentials. Use the following expression in a mapper:
Base64.encode('username@snaplogic.com:password')
And add the result code in a header like below:
Regards,
Bojan
@bojanvelevski
I tried with REST Basic Auth Account
Showing Error like
and added authorization code as a header
- bojanvelevski4 years agoValued Contributor
Add your organization at the end:
https://elastic.snaplogic.com/api/1/rest/public/runtime/ORGANIZATION
- Pretty4 years agoNew Contributor III
@bojanvelevski
After passing org facing same error
- bojanvelevski4 years agoValued Contributor
Authorization should be an HTTP Header, not a Query Parameter and you also have a spelling error in the key:
Make sure that the value of the header is in this format
"Basic {encoded value}"