microsoft/teams.net

Public

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

CodeCommitsIssuesPull requestsActionsInsightsSecurity
next/core

Branches

Tags

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

Clone

HTTPS

Download ZIP

core/src/Microsoft.Teams.Bot.Apps/Auth/TokenExchangeInvokeResponse.cs

31lines · modecode

1// Copyright (c) Microsoft Corporation.
2// Licensed under the MIT License.
3
4using System.Text.Json.Serialization;
5
6namespace Microsoft.Teams.Bot.Apps.Auth;
7
8/// <summary>
9/// Response body returned in the invoke response for a failed signin/tokenExchange.
10/// Sent with HTTP 412 (PreconditionFailed) to tell Teams to fall back to the sign-in card.
11/// </summary>
12public class TokenExchangeInvokeResponse
13{
14 /// <summary>
15 /// The token exchange request ID (echoed from the invoke value).
16 /// </summary>
17 [JsonPropertyName("id")]
18 public string? Id { get; set; }
19
20 /// <summary>
21 /// The OAuth connection name (echoed from the invoke value).
22 /// </summary>
23 [JsonPropertyName("connectionName")]
24 public string? ConnectionName { get; set; }
25
26 /// <summary>
27 /// Details about why the token exchange failed.
28 /// </summary>
29 [JsonPropertyName("failureDetail")]
30 public string? FailureDetail { get; set; }
31}
32