Realtime Curl authentication

I am using a django api as the realtime backend for asterisk, It works perfectly. I wish to secure the endpoints but I can’t find any information on how to configure asterisk for http authorization. Everyone seems unconcerned and now I am thinking am missing some obvious documentation here or there. Someone help please

If you are using the CURL function you can use the CURLOPT function to set the authentication.

Thanks. That works. However my problem is in extconfig. Using curl for the peers store. I cant find documentation on how to add authorization headers

Hmm, I’m not sure then.

You could use something like nginx as a proxy between asterisk and your endpoint, have it add the auth.