microsoft/teams.net
Publicmirrored fromhttps://github.com/microsoft/teams.netAvailable
core/src/Microsoft.Teams.Apps/OAuth/SignInTokenExchangeValue.cs
30lines · modecode
| 1 | // Copyright (c) Microsoft Corporation. |
| 2 | // Licensed under the MIT License. |
| 3 | |
| 4 | using System.Text.Json.Serialization; |
| 5 | |
| 6 | namespace Microsoft.Teams.Apps.OAuth; |
| 7 | |
| 8 | /// <summary> |
| 9 | /// Value payload of the signin/tokenExchange invoke activity. |
| 10 | /// </summary> |
| 11 | public class SignInTokenExchangeValue |
| 12 | { |
| 13 | /// <summary> |
| 14 | /// Unique identifier for this token exchange request, used for deduplication. |
| 15 | /// </summary> |
| 16 | [JsonPropertyName("id")] |
| 17 | public string? Id { get; set; } |
| 18 | |
| 19 | /// <summary> |
| 20 | /// The OAuth connection name this exchange targets. |
| 21 | /// </summary> |
| 22 | [JsonPropertyName("connectionName")] |
| 23 | public string? ConnectionName { get; set; } |
| 24 | |
| 25 | /// <summary> |
| 26 | /// The token provided by the Teams client for exchange. |
| 27 | /// </summary> |
| 28 | [JsonPropertyName("token")] |
| 29 | public string? Token { get; set; } |
| 30 | } |
| 31 | |