/
AzureDeveloperCliCredentialOptions.cs
31 lines (27 loc) · 1.41 KB
/
AzureDeveloperCliCredentialOptions.cs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
using System;
using System.Collections.Generic;
namespace Azure.Identity
{
/// <summary>
/// Options for configuring the <see cref="AzureDeveloperCliCredential"/>.
/// </summary>
public class AzureDeveloperCliCredentialOptions : TokenCredentialOptions, ISupportsAdditionallyAllowedTenants
{
/// <summary>
/// The ID of the tenant to which the credential will authenticate by default. If not specified, the credential will authenticate to any requested tenant, and will default to the tenant provided to the 'azd auth login' command.
/// </summary>
public string TenantId { get; set; }
/// <summary>
/// Specifies tenants in addition to the specified <see cref="TenantId"/> for which the credential may acquire tokens.
/// Add the wildcard value "*" to allow the credential to acquire tokens for any tenant the logged in account can access.
/// If no value is specified for <see cref="TenantId"/>, this option will have no effect, and the credential will acquire tokens for any requested tenant.
/// </summary>
public IList<string> AdditionallyAllowedTenants { get; internal set; } = new List<string>();
/// <summary>
/// The CLI process timeout.
/// </summary>
public TimeSpan? ProcessTimeout { get; set; }
}
}