diff --git a/docs/help/Get-AzToken.md b/docs/help/Get-AzToken.md index e6f99a5..6e24d78 100644 --- a/docs/help/Get-AzToken.md +++ b/docs/help/Get-AzToken.md @@ -92,7 +92,6 @@ The token can be retrieved from an existing named cache, interactively from a br - Saved interactive credential if the command was used interactively in the same session (https://learn.microsoft.com/en-us/dotnet/api/azure.identity.interactivebrowsercredential) - Environment variables (https://learn.microsoft.com/en-us/dotnet/api/azure.identity.environmentcredential) -- Workload identity (https://learn.microsoft.com/en-us/dotnet/api/azure.identity.workloadidentitycredential) - Azure PowerShell (https://learn.microsoft.com/en-us/dotnet/api/azure.identity.azurepowershellcredential) - Azure CLI (https://learn.microsoft.com/en-us/dotnet/api/azure.identity.azureclicredential) - Azure Developer CLI (https://learn.microsoft.com/en-us/dotnet/api/azure.identity.azuredeveloperclicredential) @@ -299,7 +298,7 @@ The order of precedence for the credentials to be used for getting a token non-i Type: String[] Parameter Sets: NonInteractive Aliases: -Accepted values: ManagedIdentity, WorkloadIdentity, Environment, AzurePowerShell, AzureCLI, AzureDeveloperCli, VisualStudio +Accepted values: ManagedIdentity, Environment, AzurePowerShell, AzureCLI, AzureDeveloperCli, VisualStudio Required: False Position: Named diff --git a/source/AzAuth.Core/TokenManager.cs b/source/AzAuth.Core/TokenManager.cs index afdb40f..8f1793d 100644 --- a/source/AzAuth.Core/TokenManager.cs +++ b/source/AzAuth.Core/TokenManager.cs @@ -18,7 +18,6 @@ internal static string GetCredentialDocumentationUrl(string credentialType) return credentialType switch { "ManagedIdentity" => "https://learn.microsoft.com/en-us/dotnet/api/azure.identity.managedidentitycredential", - "WorkloadIdentity" => "https://learn.microsoft.com/en-us/dotnet/api/azure.identity.workloadidentitycredential", "Environment" => "https://learn.microsoft.com/en-us/dotnet/api/azure.identity.environmentcredential", "AzurePowerShell" => "https://learn.microsoft.com/en-us/dotnet/api/azure.identity.azurepowershellcredential", "AzureCLI" => "https://learn.microsoft.com/en-us/dotnet/api/azure.identity.azureclicredential", diff --git a/source/AzAuth.Core/TokenManagerAuthMethods/TokenManager.NonInteractive.cs b/source/AzAuth.Core/TokenManagerAuthMethods/TokenManager.NonInteractive.cs index 85c8880..7a91439 100644 --- a/source/AzAuth.Core/TokenManagerAuthMethods/TokenManager.NonInteractive.cs +++ b/source/AzAuth.Core/TokenManagerAuthMethods/TokenManager.NonInteractive.cs @@ -55,7 +55,6 @@ internal static async Task GetTokenNonInteractiveAsync( MaxDelay = TimeSpan.Zero } }), - "WorkloadIdentity" => new WorkloadIdentityCredential(genericTimeoutOptions as WorkloadIdentityCredentialOptions), "Environment" => new EnvironmentCredential(genericTimeoutOptions), "AzurePowerShell" => new AzurePowerShellCredential(genericTimeoutOptions as AzurePowerShellCredentialOptions), "AzureCLI" => new AzureCliCredential(genericTimeoutOptions as AzureCliCredentialOptions), diff --git a/source/AzAuth.PS/Cmdlets/GetAzToken.cs b/source/AzAuth.PS/Cmdlets/GetAzToken.cs index c6feb6f..92d39ae 100644 --- a/source/AzAuth.PS/Cmdlets/GetAzToken.cs +++ b/source/AzAuth.PS/Cmdlets/GetAzToken.cs @@ -106,10 +106,10 @@ public class GetAzToken : PSLoggerCmdletBase public int TimeoutSeconds { get; set; } = 120; [Parameter(ParameterSetName = "NonInteractive")] - [ValidateSet("ManagedIdentity", "WorkloadIdentity", "Environment", "AzurePowerShell", "AzureCLI", "AzureDeveloperCli", "VisualStudio")] + [ValidateSet("ManagedIdentity", "Environment", "AzurePowerShell", "AzureCLI", "AzureDeveloperCli", "VisualStudio")] [ValidateNotNullOrEmpty()] // TODO: Change back ManagedIdentity to first position in the chain once issue #112 is solved, likely in Azure.Identity 1.14.2 or later - public string[] CredentialPrecedence { get; set; } = ["Environment", "WorkloadIdentity", "AzurePowerShell", "AzureCLI", "AzureDeveloperCli", "VisualStudio", "ManagedIdentity"]; + public string[] CredentialPrecedence { get; set; } = ["Environment", "AzurePowerShell", "AzureCLI", "AzureDeveloperCli", "VisualStudio", "ManagedIdentity"]; [Parameter(ParameterSetName = "Interactive", Mandatory = true)] public SwitchParameter Interactive { get; set; }