I need to send an MSMQ message in c# through https to a web server using an Azure AD Bearer token.
The web server is hosted in Azure with Azure AD. The server is already hosting an existing web API in which we use Azure AD issued bearer tokens to authenticate. In the below link I'm not seeing a way to define custom authentication tokens with MSMQ.
https://blogs.msdn.microsoft.com/mismail/2008/12/31/msmq-over-http/
using (MessageQueue mq = new MessageQueue("...")
{
Message msg = new Message
{
Body = request,
Label = request.GetType().Name,
};
mq.Send(msg, MessageQueueTransactionType.Single);
}