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#] Teams SSO auth unit tests #1053

Closed
Tracked by #1041 ...
blackchoey opened this issue Dec 12, 2023 · 0 comments · Fixed by #1112
Closed
Tracked by #1041 ...

[C#] Teams SSO auth unit tests #1053

blackchoey opened this issue Dec 12, 2023 · 0 comments · Fixed by #1112
Assignees
Labels
dotnet Change/fix applies to dotnet. If all three, use the 'JS & dotnet & Python' label

Comments

@blackchoey
Copy link
Contributor

Need to investigate how to bypass unsupported class issue during mock, and add unit tests

@blackchoey blackchoey added the dotnet Change/fix applies to dotnet. If all three, use the 'JS & dotnet & Python' label label Dec 12, 2023
@blackchoey blackchoey self-assigned this Dec 12, 2023
This was referenced Dec 21, 2023
corinagum pushed a commit that referenced this issue Jan 4, 2024
## Linked issues

closes: #1053 #1110

## Details

1. Create an adapter for MSAL library to make the classes testable with
mock
2. Update existing class implementation to use the MSAL library adapter
3. Do not check token cache in TeamsSsoPrompt because the Authentication
handler already checks token cache before invoking the prompt
4. Add unit tests

## 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

---------

Co-authored-by: Alex Acebo <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
dotnet Change/fix applies to dotnet. If all three, use the 'JS & dotnet & Python' label
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant