microsoft/teams.net

Public

mirrored fromhttps://github.com/microsoft/teams.netAvailable

CodeCommitsIssuesPull requestsActionsInsightsSecurity
docs/update-release-process

Branches

Tags

  • No tags available.
0Branches0Tags
Go to file
Add file
Code

Clone

HTTPS

Download ZIP

core/src/Microsoft.Teams.Apps/OAuth/SignInFailureValue.cs

39lines · modecode

1// Copyright (c) Microsoft Corporation.
2// Licensed under the MIT License.
3
4using System.Text.Json.Serialization;
5
6namespace Microsoft.Teams.Apps.OAuth;
7
8/// <summary>
9/// Value payload of the signin/failure invoke activity.
10/// Sent by the Teams client when SSO token exchange fails client-side.
11/// </summary>
12/// <remarks>
13/// Known failure codes:
14/// <list type="bullet">
15/// <item><term>installappfailed</term><description>Failed to install the app in the user's personal scope.</description></item>
16/// <item><term>authrequestfailed</term><description>The SSO auth request failed after app installation.</description></item>
17/// <item><term>installedappnotfound</term><description>The bot app is not installed for the user or group chat.</description></item>
18/// <item><term>invokeerror</term><description>A generic error occurred during the SSO invoke flow.</description></item>
19/// <item><term>resourcematchfailed</term><description>The token exchange resource URI does not match the Application ID URI in the Entra app's "Expose an API" section.</description></item>
20/// <item><term>oauthcardnotvalid</term><description>The bot's OAuthCard could not be parsed.</description></item>
21/// <item><term>tokenmissing</term><description>AAD token acquisition failed.</description></item>
22/// <item><term>userconsentrequired</term><description>The user needs to consent (usually handled via OAuth card fallback).</description></item>
23/// <item><term>interactionrequired</term><description>User interaction is required (usually handled via OAuth card fallback).</description></item>
24/// </list>
25/// </remarks>
26public class SignInFailureValue
27{
28 /// <summary>
29 /// The failure code identifying the type of SSO failure.
30 /// </summary>
31 [JsonPropertyName("code")]
32 public string? Code { get; set; }
33
34 /// <summary>
35 /// A human-readable description of the failure.
36 /// </summary>
37 [JsonPropertyName("message")]
38 public string? Message { get; set; }
39}
40