You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
singhk97 opened this issue
Aug 14, 2024
· 0 comments
Assignees
Labels
bugSomething isn't workingdotnetChange/fix applies to dotnet. If all three, use the 'JS & dotnet & Python' label.NETPull requests that update .net code
Incorrect setting name is provided to FilteredTeamsSSOTokenExchangeMiddleware.
OnUserSignInSuccess is not triggered when token exchange is done successfully.
This is because FilteredTeamsSSOTokenExchangeMiddleware intercepts the incoming activity and so the auth logic in the OnTurnAsync method is not invoked.
The text was updated successfully, but these errors were encountered:
singhk97
added
bug
Something isn't working
.NET
Pull requests that update .net code
dotnet
Change/fix applies to dotnet. If all three, use the 'JS & dotnet & Python' label
labels
Aug 14, 2024
## Linked issues
closes: #1744#1933
## Details
Fixed bug in both #1744 and #1933.
The issue does not persist in either JS, or PY so the fix is only for
C#.
#### Change details
* Refactored `FilteredTeamsSSOTokenExchangeMiddleware` as the underlying
middleware was not being invoked correctly.
* The `app.adapter.Use` method was being called for every incomming
request (since the `Application` object is a transient in the Asp.NET
service collection).
* As for the issue in #1744 - The code is updated to use
`DateTime.UtcNow` by default.
## 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
### Additional information
> Feel free to add other relevant information below
bugSomething isn't workingdotnetChange/fix applies to dotnet. If all three, use the 'JS & dotnet & Python' label.NETPull requests that update .net code
Bugs (Verified for .NET SDK)
FilteredTeamsSSOTokenExchangeMiddleware
.OnUserSignInSuccess
is not triggered when token exchange is done successfully.FilteredTeamsSSOTokenExchangeMiddleware
intercepts the incoming activity and so the auth logic in theOnTurnAsync
method is not invoked.The text was updated successfully, but these errors were encountered: