Skip to content
This repository was archived by the owner on Dec 4, 2023. It is now read-only.
This repository was archived by the owner on Dec 4, 2023. It is now read-only.

[PORT] Fixes Unauthorized error when calling ContinueConversation #730

Closed

Description

Port this change from botbuilder-dotnet/master branch:
microsoft/botbuilder-dotnet#4348

Fixes #4347

Fixes Unauthorized error when ContinueConversation is called on a bot app service instance that didn't originate the skill request.

  • Updated code in BotFrameworkAdapter.ContinueConversation() so it always adds the activity.ServiceUrl to TrustedHostNames if the request has been authorized and it has an app ID (this will work for skills and other proactive messages)
  • Made TrustedHostNames in AppCredentials internal and added InternalsVisibleTo directive to Microsoft.BotConnector so we can access it and assert the state of the state in tests.
  • Cleaned up some async warnings in BotFrameworkAdapterTests
  • Added additional logging to AppCredentials to help troubleshoot this issue in the future.

Changed projects

  • Microsoft.Bot.Builder
  • Microsoft.Bot.Connector
  • Microsoft.Bot.Builder.Tests

Activity

  1. gabog commented on Jul 30, 2020

    @gabog
    Contributor

    NA

  2. added
    Area: Authentication
    and removed on Aug 14, 2020
  3. added
    Area: Skills
    on Sep 28, 2020
  4. removed this from the R11 milestone on Sep 28, 2020
  5. added
    needs-triage
    on Oct 2, 2020
  6. removed
    needs-triage
    on Oct 22, 2020
  7. added
    needs-triage
    on Jan 13, 2021
  8. added
    P0
    and removed
    Area: Skills
    needs-triage
    on Jan 15, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

Area: AuthenticationP0

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions