Files
sqltoolsservice/src/Microsoft.SqlTools.ResourceProvider.DefaultImpl/AzureTenant.cs
2022-03-04 16:38:01 -08:00

54 lines
1.3 KiB
C#

//
// Copyright (c) Microsoft. All rights reserved.
// Licensed under the MIT license. See LICENSE file in the project root for full license information.
//
using Microsoft.SqlTools.ResourceProvider.Core.Authentication;
namespace Microsoft.SqlTools.ResourceProvider.DefaultImpl
{
/// <summary>
/// Implementation for <see cref="IAzureTenant" /> using VS services
/// Contains information about an Azure account
/// </summary>
public class AzureTenant : IAzureTenant
{
public string TenantId
{
get;
set;
}
public string AccountDisplayableId
{
get;
set;
}
/// <summary>
/// URI defining the root for resource lookup
/// </summary>
public string Resource { get; set; }
/// <summary>
/// Access token for use in login scenarios. Note that we could consider implementing this better in the
/// </summary>
public string AccessToken
{
get;
set;
}
/// <summary>
/// Optional token type defining whether this is a Bearer token or other type of token
/// </summary>
public string TokenType
{
get;
set;
}
}
}