function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
Ryan Raymundo 1Ryan Raymundo 1 

Create API endpoint that accepts basic auth

Hi Everyone,

I have created an endpoint that handles POST requests. It works well if I'm using a bearer token. but since the design is to handle webhooks, I can only supply basic Auth. How can I accomplish this? I have tried this but I'm getting 
[
    {
        "message": "INVALID_HEADER_TYPE",
        "errorCode": "INVALID_AUTH_HEADER"
    }
]

Thanks in advance,
Ry
HarshHarsh (Salesforce Developers) 
Hi Riyan, 
you have asked a question related to the same topic. Please follow the question link below.

https://developer.salesforce.com/forums/ForumsMain?id=9065d0000007Bja
Ryan Raymundo 1Ryan Raymundo 1
Hi Harsh, Thanks for the response but it seems like I can't access the link. It says This site can’t be reached
Check if there is a typo in https.
If spelling is correct, try running Windows Network Diagnostics.
DNS_PROBE_FINISHED_NXDOMAIN
HarshHarsh (Salesforce Developers) 
Hi Ryan,
Please check with the below link
https://developer.salesforce.com/forums/ForumsMain?id=9065d0000007Bja 

Please close the thread by selected as Best Answer so that we can keep our community clean

Thanks,