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

microsoft / teams-ai / 7762003222
80%

Build:
DEFAULT BRANCH: main
Ran 02 Feb 2024 10:02PM UTC
Jobs 2
Files 204
Run time 13s
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: 76.6% (+0.1%) from 76.493%
7762003222

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>

2609 of 3803 branches covered (0.0%)

Branch coverage included in aggregate %.

6174 of 7663 relevant lines covered (80.57%)

26.01 hits per line

Subprojects
ID Flag name Job ID Ran Files Coverage
1 javascript 7762003222.1 02 Feb 2024 10:02PM UTC 63
70.2
GitHub Action Run
2 dotnet 7762003222.2 02 Feb 2024 10:05PM UTC 141
80.7
GitHub Action Run
Source Files on build 7762003222
  • Tree
  • List 204
  • Changed 11
  • Source Changed 7
  • Coverage Changed 5
Coverage ∆ File Lines Relevant Covered Missed Hits/Line Branch Hits Branch Misses
  • Back to Repo
  • Github Actions Build #7762003222
  • b8a7ffa1 on github
  • Prev Build on main (#7747693340)
  • Next Build on main (#7762864634)
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