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

Libraries/Microsoft.Teams.Api/Cards/OAuthCard.cs

33lines · modecode

1// Copyright (c) Microsoft Corporation. All rights reserved.
2// Licensed under the MIT License.
3
4using System.Text.Json.Serialization;
5
6namespace Microsoft.Teams.Api.Cards;
7
8/// <summary>
9/// A card representing a request to perform a sign in via OAuth
10/// </summary>
11public class OAuthCard : Card
12{
13 /// <summary>
14 /// The name of the registered connection
15 /// </summary>
16 [JsonPropertyName("connectionName")]
17 [JsonPropertyOrder(4)]
18 public string? ConnectionName { get; set; }
19
20 /// <summary>
21 /// The token exchange resource for single sign on
22 /// </summary>
23 [JsonPropertyName("tokenExchangeResource")]
24 [JsonPropertyOrder(5)]
25 public TokenExchange.Resource? TokenExchangeResource { get; set; }
26
27 /// <summary>
28 /// The token for directly post a token to token service
29 /// </summary>
30 [JsonPropertyName("tokenPostResource")]
31 [JsonPropertyOrder(6)]
32 public Token.PostResource? TokenPostResource { get; set; }
33}