Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: Support Single Tenant authentication through BotFramework-Emulator #6769

Merged
merged 2 commits into from
Apr 10, 2024

Conversation

JhontSouth
Copy link
Collaborator

#minor

Description

This PR includes a dynamic way to validate the access token issuer value depending on the tenant ID used in Emulator.

Specific Changes

  • Added logic to validate the tid and issuer values to allow the Single Tenant authentication in EmulatorValidation.

Testing

The following image shows the Emulator working with a bot using Single Tenant authentication.
image

@JhontSouth JhontSouth requested a review from a team as a code owner April 4, 2024 15:25
@JhontSouth JhontSouth added the Automation: No parity PR does not need to be applied to other languages. label Apr 4, 2024
@BruceHaley
Copy link
Contributor

✔️ No Binary Compatibility issues for Microsoft.Bot.Connector.dll

@coveralls
Copy link
Collaborator

Pull Request Test Coverage Report for Build 387278

Details

  • 0 of 0 changed or added relevant lines in 0 files are covered.
  • 38 unchanged lines in 2 files lost coverage.
  • Overall coverage decreased (-0.02%) to 78.186%

Files with Coverage Reduction New Missed Lines %
/libraries/AdaptiveExpressions/LRUCache.cs 4 87.18%
/libraries/Microsoft.Bot.Connector/Authentication/EmulatorValidation.cs 34 30.14%
Totals Coverage Status
Change from base Build 386500: -0.02%
Covered Lines: 26182
Relevant Lines: 33487

💛 - Coveralls

@tracyboehrer tracyboehrer merged commit ef69173 into main Apr 10, 2024
11 of 13 checks passed
@tracyboehrer tracyboehrer deleted the southworks/add/support-to-singletenant-emulator branch April 10, 2024 18:09
jevansaks pushed a commit to jevansaks/botbuilder-dotnet that referenced this pull request May 10, 2024
…tor (microsoft#6769)

* use dynamic Emulator issuer with tenant id to validate identity

* use auth constants
@tracyboehrer
Copy link
Member

@JhontSouth This will need to be done in JS too.

@JhontSouth
Copy link
Collaborator Author

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Automation: No parity PR does not need to be applied to other languages.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants