Skip to content

Teams does not notify when the User cancels Consent #256

Open
@tracyboehrer

Description

@tracyboehrer

This is not an Agents SDK bug. This is for visibility.

When Consent is required during SSO, Teams displays Cancel and Consent buttons. If the User clicks Cancel, Teams ends the SSO, but does not send notification to the Agent.

This leaves the Agent OAuth Flow in an "active" state. However, if the user sends messages OAuth flow will try and OAuth Exchange (the magic code path), but of course that will fail. It will error out after the OAuthSettings.InvalidSignInRetryMax value (default of 2).

If the User clicks Consent, then cancels or close that popup, we get a signin/verifystate Activity, with a Value of UserCancelledSignIn and end the OAuth Flow properly.

Metadata

Metadata

Assignees

No one assigned

    Labels

    InvestigatingIssue is being investigatedteamsMicrosoft Teams Platform related

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions