| | 1 | | // Copyright (c) Microsoft Corporation. All rights reserved. |
| | 2 | | // Licensed under the MIT License. |
| | 3 | |
|
| | 4 | | namespace Azure.Identity |
| | 5 | | { |
| | 6 | | /// <summary> |
| | 7 | | /// Options to configure the <see cref="SharedTokenCacheCredential"/> authentication. |
| | 8 | | /// </summary> |
| | 9 | | public class SharedTokenCacheCredentialOptions : TokenCredentialOptions, ITokenCacheOptions |
| | 10 | | { |
| | 11 | | /// <summary> |
| | 12 | | /// Specifies the preferred authentication account username, or UPN, to be retrieved from the shared token cache |
| | 13 | | /// development tools, in the case multiple accounts are found in the shared token. |
| | 14 | | /// </summary> |
| 0 | 15 | | public string Username { get; set; } |
| | 16 | |
|
| | 17 | | /// <summary> |
| | 18 | | /// Specifies the tenant id of the preferred authentication account, to be retrieved from the shared token cache |
| | 19 | | /// development tools, in the case multiple accounts are found in the shared token. |
| | 20 | | /// </summary> |
| 0 | 21 | | public string TenantId { get; set; } |
| | 22 | |
|
| | 23 | | /// <summary> |
| | 24 | | /// The <see cref="Identity.AuthenticationRecord"/> captured from a previous authentication with an interactive |
| | 25 | | /// </summary> |
| 8 | 26 | | internal AuthenticationRecord AuthenticationRecord { get; set; } |
| | 27 | |
|
| | 28 | | /// <summary> |
| | 29 | | /// If set to true the credential will fall back to storing tokens in an unencrypted file if no OS level user en |
| | 30 | | /// </summary> |
| 86 | 31 | | bool ITokenCacheOptions.AllowUnencryptedCache => true; |
| | 32 | |
|
| 86 | 33 | | bool ITokenCacheOptions.EnablePersistentCache => true; |
| | 34 | | } |
| | 35 | | } |