• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

microsoft / teams-ai / 7762003222 / 2 – dotnet
80%
main: 80%

Build:
DEFAULT BRANCH: main
Ran 02 Feb 2024 10:05PM UTC
Files 141
Run time 5s
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

02 Feb 2024 10:01PM UTC coverage: 80.698%. Remained the same
dotnet – 7762003222.2

push

github

web-flow
[JS] feat: Add `enableSso` property to toggle SSO in user auth scenarios (#1232)

## Linked issues

closes: #1194  (issue number)

## Details

Introduced `enableSso` property in the `OAuthSettings` to toggle SSO in
`OAuth` adaptive card, bot and message extension scenarios.

### Change details
The authentication feature is broken down into these 3 scenarios, so I
had to update these individual implementations for the `enableSso`
property to work.

**Bot auth**
* In bot auth, to disable sso you simply have to not include the
`tokenExchangeResource` in the oauth card. The original `OAuthPrompt`
didn't allow that so I had to create the `OAuthBotPrompt` to override
the `beginDialog` method and `sendOauthCard`.


**Message Extension auth**
* In ME auth, to disable sso you simply set the `type` to `auth` instead
of `silentAuth`. I introduced a `isSsoSignIn` method to determine
whether to use auth or not. This is because the card creation happens in
the ME auth base class, which is used for `TeamsSSO` auth as well.

**Adaptive Card auth**
* In adaptive card auth, to disable sso you simply don't include the
`tokenExchangeResource` in the card.

## Attestation Checklist

- [x] My code follows the style guidelines of this project

- I have checked for/fixed spelling, linting, and other errors
- I have commented my code for clarity
- I have made corresponding changes to the documentation (updating the
doc strings in the code is sufficient)
- My changes generate no new warnings
- I have added tests that validates my changes, and provides sufficient
test coverage. I have tested with:
  - Local testing
  - E2E testing in Teams
- New and existing unit tests pass locally with my changes

---------

Co-authored-by: Corina <14900841+corinagum@users.noreply.github.com>

1467 of 2084 branches covered (0.0%)

Branch coverage included in aggregate %.

4173 of 4905 relevant lines covered (85.08%)

28.95 hits per line

Source Files on job dotnet - 7762003222.2
  • Tree
  • List 141
  • Changed 1
  • Source Changed 0
  • Coverage Changed 0
Coverage ∆ File Lines Relevant Covered Missed Hits/Line Branch Hits Branch Misses
  • Back to Build 7762003222
  • b8a7ffa1 on github
  • Prev Job for on main (#7747693340.2)
  • Next Job for on main (#7762864634.1)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc