Forum Discussion

Vamsik's avatar
Vamsik
New Contributor II
2 years ago

Policy to configure Basic Auth

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

1 Reply

  • 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

    curl --location <triggered-task-url> \
    --header 'Authorization: Basic <base64 encoded username:password> ' \

    Hope this helps! Please reach out if you have any questions.