Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 1 addition & 2 deletions docs/help/Get-AzToken.md
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down Expand Up @@ -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
Expand Down
1 change: 0 additions & 1 deletion source/AzAuth.Core/TokenManager.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,6 @@ internal static async Task<AzToken> 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),
Expand Down
4 changes: 2 additions & 2 deletions source/AzAuth.PS/Cmdlets/GetAzToken.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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; }
Expand Down
Loading