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