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

[C#] feat: add teams sso implementation #929

Merged
merged 2 commits into from
Nov 29, 2023

Conversation

blackchoey
Copy link
Contributor

Linked issues

closes: #861

Details

  1. Implement token exchange and sign in logic for Teams SSO auth implementation
  2. Updated the IAuthentication interface to initialize after Application instance is created - the authentication classes has dependency to Application when initialize
  3. Change visibility of some classes to internal
  4. Update the namespace of authentication classes to Microsoft.Teams.AI to align with other classes under the Application folder

Attestation Checklist

  • 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 (we use TypeDoc to document our code)

  • 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

Additional information

Because some classes from botbuilder cannot be mocked, the UT for the new code is some kind of blocked. I have finished manual testing against the code. Will follow up with the UT problem.

@singhk97 singhk97 merged commit c21be62 into breaking-changes-2 Nov 29, 2023
5 checks passed
@singhk97 singhk97 deleted the chyuan/teams-sso-implementation branch November 29, 2023 18:46
singhk97 pushed a commit that referenced this pull request Dec 6, 2023
## Linked issues

closes: #861

## Details

1. Implement token exchange and sign in logic for Teams SSO auth
implementation
2. Updated the `IAuthentication` interface to initialize after
`Application` instance is created - the authentication classes has
dependency to `Application` when initialize
3. Change visibility of some classes to `internal`
4. Update the namespace of authentication classes to
`Microsoft.Teams.AI` to align with other classes under the `Application`
folder


## 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 (we use
[TypeDoc](https://typedoc.org/) to document our code)
- 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

### Additional information

Because some classes from botbuilder cannot be mocked, the UT for the
new code is some kind of blocked. I have finished manual testing against
the code. Will follow up with the UT problem.
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.

2 participants