microsoft/teams.net

Public

mirrored from https://github.com/microsoft/teams.netAvailable

CodeCommitsIssuesPull requestsActionsInsightsSecurity
v2.0.8

Branches

Tags

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

Clone

HTTPS

Download ZIP

core/src/Microsoft.Teams.Apps/Api/Clients/BotTokenClient.cs

25lines · modecode

1// Copyright (c) Microsoft Corporation.
2// Licensed under the MIT License.
3
4namespace Microsoft.Teams.Apps.Api.Clients;
5
6/// <summary>
7/// Client for bot token operations.
8/// </summary>
9/// <remarks>
10/// In the core SDK, bot authentication is handled transparently by <c>BotAuthenticationHandler</c>,
11/// which automatically acquires and attaches tokens to HTTP requests. This client exposes the
12/// well-known token scopes for scenarios that need explicit scope references.
13/// </remarks>
14public static class BotTokenClient
15{
16 /// <summary>
17 /// The default Bot Framework API scope.
18 /// </summary>
19 public static readonly string BotScope = "https://api.botframework.com/.default";
20
21 /// <summary>
22 /// The Microsoft Graph API scope.
23 /// </summary>
24 public static readonly string GraphScope = "https://graph.microsoft.com/.default";
25}
26