[sso-with-skills] Authorizartion issues #3808
Labels
Bot Services
Required for internal Azure reporting. Do not delete. Do not change color.
customer-replied-to
Indicates that the team has replied to the issue reported by the customer. Do not delete.
customer-reported
Issue is created by anyone that is not a collaborator in the repository.
Github issues for C# /JS / Java/ Python should be used for bugs and feature requests. Use Stack Overflow for general "how-to" questions.
Sample information
Describe the bug
Have a customer who is receiving
"StatusCode": 401, "RawResponseBody": "{\"error\":{\"code\":\"InvalidAuthenticationToken\",\"message\":\"Access token validation failure. Invalid audience
I am walking through the repo and getting
"Microsoft.Bot.Schema.ErrorResponseException: Operation returned an invalid status code Unauthorized at Microsoft.Bot.Connector.UserToken.GetTokenWithHttpMessagesAsync(String userId, String connectionName, String channelId, String code, Dictionary 2 customHeaders, CancellationToken cancellationToken) at Microsoft.Bot.Connector.UserTokenExtensions.GetTokenAsync(IUserToken operations, String userId, String connectionName, String channelId, String code, CancellationToken cancellationToken) at Microsoft.Bot.Builder.BotFrameworkAdapter.GetUserTokenAsync(ITurnContext turnContext, AppCredentials oAuthAppCredentials, String connectionName, String magicCode, CancellationToken cancellationToken) at Microsoft.Bot.Builder.Dialogs.UserTokenAccess.GetUserTokenAsync(ITurnContext turnContext, OAuthPromptSettings settings, String magicCode, CancellationToken cancellationToken) at Microsoft.Bot.Builder.Dialogs.OAuthPrompt.BeginDialogAsync(DialogContext dc, Object options, CancellationToken cancellationToken) at Microsoft.Bot.Builder.Dialogs.DialogContext.BeginDialogAsync(String dialogId, Object options, CancellationToken cancellationToken)
I have confirmed via curl locally that am able to retrieve the correct and valid token.
To Reproduce
Steps to reproduce the behavior:
RootBot
Expected behavior
Expected to prompted with AAD login screen
Additional context
Add any other context about the problem here.
The text was updated successfully, but these errors were encountered: