mirror of
https://github.com/ckaczor/sqltoolsservice.git
synced 2026-02-03 17:24:53 -05:00
MSAL encrypted file system cache (#1945)
This commit is contained in:
@@ -0,0 +1,41 @@
|
||||
//
|
||||
// Copyright (c) Microsoft. All rights reserved.
|
||||
// Licensed under the MIT license. See LICENSE file in the project root for full license information.
|
||||
//
|
||||
|
||||
namespace Microsoft.SqlTools.Authentication.Utility
|
||||
{
|
||||
/// <summary>
|
||||
/// Configuration used by <see cref="Authenticator"/> to perform AAD authentication using MSAL.NET
|
||||
/// </summary>
|
||||
public class AuthenticatorConfiguration
|
||||
{
|
||||
/// <summary>
|
||||
/// Application Client ID to be used.
|
||||
/// </summary>
|
||||
public string AppClientId { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Application name used for public client application instantiation.
|
||||
/// </summary>
|
||||
public string AppName { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Cache folder path, to be used by MSAL.NET to store encrypted token cache.
|
||||
/// </summary>
|
||||
public string CacheFolderPath { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// File name to be used for token storage.
|
||||
/// Full path of file: <see cref="CacheFolderPath"/> \ <see cref="CacheFileName"/>
|
||||
/// </summary>
|
||||
public string CacheFileName { get; set; }
|
||||
|
||||
public AuthenticatorConfiguration(string appClientId, string appName, string cacheFolderPath, string cacheFileName) {
|
||||
AppClientId = appClientId;
|
||||
AppName = appName;
|
||||
CacheFolderPath = cacheFolderPath;
|
||||
CacheFileName = cacheFileName;
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user