microsoft/teams.net
Publicmirrored from https://github.com/microsoft/teams.netAvailable
core/src/Microsoft.Teams.Apps/Api/Clients/BotTokenClient.cs
25lines · modecode
| 1 | // Copyright (c) Microsoft Corporation. |
| 2 | // Licensed under the MIT License. |
| 3 | |
| 4 | namespace 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> |
| 14 | public 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 | |