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

fix: [#4408] Cloud adapter is not working with teams SSO #4427

Merged

Conversation

erquirogasw
Copy link
Contributor

Fixes #4408

Description

This PR allows the SSO Teams bots to work with CloudAdapter. It also adds the unit tests for the different adapter cases.

Specific Changes

  • Updated teamsSSOTokenExchangeMiddleware to allow UserTokenClient tokens.
  • Added unit tests for botFrameworkAdapter and cloudAdapter cases.

Testing

Added unit tests for the exchangedToken method.
image (200)

@erquirogasw erquirogasw requested a review from a team as a code owner February 6, 2023 14:34
@coveralls
Copy link

coveralls commented Feb 6, 2023

Pull Request Test Coverage Report for Build 4104699408

  • 5 of 6 (83.33%) changed or added relevant lines in 1 file are covered.
  • No unchanged relevant lines lost coverage.
  • Overall coverage decreased (-0.005%) to 84.651%

Changes Missing Coverage Covered Lines Changed/Added Lines %
libraries/botbuilder/src/teams/teamsSSOTokenExchangeMiddleware.ts 5 6 83.33%
Totals Coverage Status
Change from base Build 4055439132: -0.005%
Covered Lines: 20005
Relevant Lines: 22395

💛 - Coveralls

@johnataylor johnataylor merged commit fbd66a2 into main Feb 8, 2023
@johnataylor johnataylor deleted the southworks/fix/cloudAdapter-is-not-working-with-teamsSSO branch February 8, 2023 21:05
tracyboehrer pushed a commit that referenced this pull request Feb 28, 2023
* Updated teamsSSOTokenExchangeMiddleware.ts

* Updated wrong provided token message

* Code improvements

* Suggested changes applied

* Added unit tests.

---------

Co-authored-by: Emiliano Quiroga <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

CloudAdapter don't work with Teams SSO
3 participants