05-12-2024 11:26 PM
Dear APIM Community,
We have a requirement of source sending the request to Snaplogic APIM via Basic Auth, They are not able to send it via Bearer. What is the Policy that can be used for such scenario.
If we pass the values via URL as parameters what should be the policy in APIM.
Thanks in advance.
Regards,
Vamsi
05-13-2024 09:00 AM - edited 05-13-2024 09:06 AM
Hi Vamsi,
Thank you for posting your question. To quickly clarify the ask is to use Basic Auth to validate an incoming request to a API ( triggered task) ? If you are using Ultra we disable the use of Basic Auth in the SnapLogic Plaform, You can authenticate to an API (triggered task) using Basic Auth by providing the username and password as a base64 encoded string in the Authentication header. Format is <username>:<password>
And to add there is no policy required to be created/enabled to authenticate using Basic Auth for triggered tasks.
Here's an eg curl command