mirror of
https://github.com/ckaczor/sqltoolsservice.git
synced 2026-01-16 17:23:38 -05:00
42 lines
1.4 KiB
C#
42 lines
1.4 KiB
C#
//
|
|
// 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;
|
|
}
|
|
}
|
|
}
|