Closed yungfu closed 2 months ago
following this general example https://github.com/microsoft/teams-ai/blob/main/dotnet/samples/06.auth.teamsSSO.messageExtension/Program.cs#L162, you should be able to call app.Authentication.SignIn
from your handler which would send the card for you.
Please be sure to check the Discussions Q&A section before filing a new question.
How to add SSO to action based message extension,
TeamsSsoAuthentication
failed to sing user in with error (composeExtension/fetchTask
)Following is my code:
When click action to fetch task, cannot start sign in flow, and an
AuthException
can be found when debug inMicrosoft.Teams.AI.Application
. If I tried to send anOauthCard
orSignInLink
infetchTaskHandler
, it seems that is incorrect because they cannot be include in task module. How to trigger SSO sign in and consent flow when task fetch?