Skip to content

Commit 5fcdee4

Browse files
committed
Remove dependence on Common.auth
1 parent 73b2a14 commit 5fcdee4

File tree

4 files changed

+3
-7
lines changed

4 files changed

+3
-7
lines changed

src/Common/Commands.Common.Authentication.Abstractions/Settings/AuthenticationFactorySettings.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,8 @@ namespace Microsoft.Azure.Commands.Common.Authentication.Abstractions
2222
/// </summary>
2323
public class AuthenticationFactorySettings : IExtensibleSettings
2424
{
25+
public const string CommonAdTenant = "Common";
26+
2527
/// <summary>
2628
/// The default token cache used for the authentication factory
2729
/// </summary>

src/ResourceManager/Common/Commands.ResourceManager.Common/Commands.ResourceManager.Common.csproj

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -222,10 +222,6 @@
222222
<Project>{70527617-7598-4aef-b5bd-db9186b8184b}</Project>
223223
<Name>Commands.Common.Authentication.Abstractions</Name>
224224
</ProjectReference>
225-
<ProjectReference Include="..\..\..\Common\Commands.Common.Authentication\Commands.Common.Authentication.csproj">
226-
<Project>{D3804B64-C0D3-48F8-82EC-1F632F833C9E}</Project>
227-
<Name>Commands.Common.Authentication</Name>
228-
</ProjectReference>
229225
<ProjectReference Include="..\..\..\Common\Commands.Common\Commands.Common.csproj">
230226
<Project>{5ee72c53-1720-4309-b54b-5fb79703195f}</Project>
231227
<Name>Commands.Common</Name>

src/ResourceManager/Common/Commands.ResourceManager.Common/Common.ResourceManager.Netcore.csproj

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,6 @@
2828
<ItemGroup>
2929
<ProjectReference Include="..\..\..\Common\Commands.Common.Authentication.Abstractions\Common.Authentication.Abstractions.Netcore.csproj" />
3030
<ProjectReference Include="..\..\..\Common\Commands.Common\Common.Netcore.csproj" />
31-
<ProjectReference Include="..\..\..\Common\Commands.Common.Authentication\Common.Authentication.Netcore.csproj" />
3231
</ItemGroup>
3332

3433
<ItemGroup>

src/ResourceManager/Common/Commands.ResourceManager.Common/Utilities/SubscriptionAndTenantHelper.cs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,6 @@
1414

1515
using Microsoft.Azure.Commands.Common.Authentication;
1616
using Microsoft.Azure.Commands.Common.Authentication.Abstractions;
17-
using Microsoft.Azure.Commands.Common.Authentication.Factories;
1817
using Microsoft.Azure.Internal.Subscriptions;
1918
using Microsoft.Azure.Internal.Subscriptions.Models;
2019
using Microsoft.Rest;
@@ -147,7 +146,7 @@ private static IEnumerable<AzureSubscription> ListAllSubscriptionsForTenant(
147146

148147
private static string GetCommonTenant(IAzureAccount account)
149148
{
150-
string result = AuthenticationFactory.CommonAdTenant;
149+
string result = AuthenticationFactorySettings.CommonAdTenant;
151150
if (account.IsPropertySet(AzureAccount.Property.Tenants))
152151
{
153152
var candidate = account.GetTenants().FirstOrDefault();

0 commit comments

Comments
 (0)