-
Notifications
You must be signed in to change notification settings - Fork 4.8k
/
OnBehalfOfCredentialOptions.cs
31 lines (26 loc) · 1.32 KB
/
OnBehalfOfCredentialOptions.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.Collections.Generic;
namespace Azure.Identity
{
/// <summary>
///
/// </summary>
public class OnBehalfOfCredentialOptions : TokenCredentialOptions, ISupportsTokenCachePersistenceOptions, ISupportsDisableInstanceDiscovery, ISupportsAdditionallyAllowedTenants
{
/// <summary>
/// The <see cref="TokenCachePersistenceOptions"/>.
/// </summary>
public TokenCachePersistenceOptions TokenCachePersistenceOptions { get; set; }
/// <summary>
/// Will include x5c header in client claims when acquiring a token to enable subject name / issuer based authentication for the <see cref="ClientCertificateCredential"/>.
/// </summary>
public bool SendCertificateChain { get; set; }
/// <summary>
/// For multi-tenant applications, specifies additional tenants for which the credential may acquire tokens. Add the wildcard value "*" to allow the credential to acquire tokens for any tenant in which the application is installed.
/// </summary>
public IList<string> AdditionallyAllowedTenants { get; internal set; } = new List<string>();
/// <inheritdoc/>
public bool DisableInstanceDiscovery { get; set; }
}
}