Skip to content

Operation returned an invalid status code 'Unauthorized' - AzureAd AuthController #540

@ppanchal-mobiz

Description

@ppanchal-mobiz

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'

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions