| | | 1 | | // Copyright (c) Microsoft Corporation. All rights reserved. |
| | | 2 | | // Licensed under the MIT License. |
| | | 3 | | |
| | | 4 | | using System; |
| | | 5 | | using System.Collections.Generic; |
| | | 6 | | using System.IO; |
| | | 7 | | |
| | | 8 | | namespace Azure.Identity |
| | | 9 | | { |
| | | 10 | | internal class Constants |
| | | 11 | | { |
| | | 12 | | public const string OrganizationsTenantId = "organizations"; |
| | | 13 | | |
| | | 14 | | // TODO: Currently this is piggybacking off the Azure CLI client ID, but needs to be switched once the Developer |
| | | 15 | | public const string DeveloperSignOnClientId = "04b07795-8ddb-461a-bbee-02f9e1bf7b46"; |
| | | 16 | | |
| | 0 | 17 | | public static string SharedTokenCacheFilePath { get { return Path.Combine(DefaultMsalTokenCacheDirectory, Defaul |
| | | 18 | | |
| | | 19 | | public const int SharedTokenCacheAccessRetryCount = 100; |
| | | 20 | | |
| | 0 | 21 | | public static readonly TimeSpan SharedTokenCacheAccessRetryDelay = TimeSpan.FromMilliseconds(600); |
| | | 22 | | |
| | 0 | 23 | | public static readonly string DefaultMsalTokenCacheDirectory = Path.Combine(Environment.GetFolderPath(Environmen |
| | | 24 | | |
| | | 25 | | public const string DefaultMsalTokenCacheKeychainService = "Microsoft.Developer.IdentityService"; |
| | | 26 | | |
| | | 27 | | public const string DefaultMsalTokenCacheKeychainAccount = "MSALCache"; |
| | | 28 | | |
| | | 29 | | public const string DefaultMsalTokenCacheKeyringLabel = "MSALCache"; |
| | | 30 | | |
| | | 31 | | public const string DefaultMsalTokenCacheKeyringSchema = "msal.cache"; |
| | | 32 | | |
| | | 33 | | public const string DefaultMsalTokenCacheKeyringCollection = "default"; |
| | | 34 | | |
| | 0 | 35 | | public static readonly KeyValuePair<string, string> DefaultMsaltokenCacheKeyringAttribute1 = new KeyValuePair<st |
| | | 36 | | |
| | 0 | 37 | | public static readonly KeyValuePair<string, string> DefaultMsaltokenCacheKeyringAttribute2 = new KeyValuePair<st |
| | | 38 | | |
| | | 39 | | public const string DefaultMsalTokenCacheName = "msal.cache"; |
| | | 40 | | } |
| | | 41 | | } |