botbuilder-community-dotnet
botbuilder-community-dotnet copied to clipboard
Operation returned an invalid status code 'Unauthorized' - AzureAd AuthController
After successfully authenticating the user with Bot.Builder.Community.Middleware.AzureAdAuthentication
middleware, the AuthController
tries to send a proactive message using this line:
connectorClient.Conversations.SendToConversation(proactiveMessage);
The above line is throwing an exception Microsoft.Bot.Schema.ErrorResponseException
with message
Operation returned an invalid status code 'Unauthorized'