| | 1 | | // Copyright (c) Microsoft Corporation. All rights reserved. |
| | 2 | | // Licensed under the MIT License. |
| | 3 | |
|
| | 4 | | using System.Threading; |
| | 5 | |
|
| | 6 | | namespace Azure.Identity |
| | 7 | | { |
| | 8 | | /// <summary> |
| | 9 | | /// Options to configure the <see cref="InteractiveBrowserCredential"/>. |
| | 10 | | /// </summary> |
| | 11 | | internal class InteractiveBrowserCredentialOptions : TokenCredentialOptions, ITokenCacheOptions |
| | 12 | | { |
| | 13 | | /// <summary> |
| | 14 | | /// Prevents the <see cref="InteractiveBrowserCredential"/> from automatically prompting the user. If automatic |
| | 15 | | /// user interaction is necessary. The application is responsible for handling this exception, and calling <see |
| | 16 | | /// </summary> |
| 8 | 17 | | public bool DisableAutomaticAuthentication { get; set; } |
| | 18 | |
|
| | 19 | | /// <summary> |
| | 20 | | /// The tenant ID the user will be authenticated to. If not specified the user will be authenticated to the home |
| | 21 | | /// </summary> |
| 0 | 22 | | public string TenantId { get; set; } |
| | 23 | |
|
| | 24 | | /// <summary> |
| | 25 | | /// The client ID of the application used to authenticate the user. If not specified the user will be authentica |
| | 26 | | /// </summary> |
| 0 | 27 | | public string ClientId { get; set; } = Constants.DeveloperSignOnClientId; |
| | 28 | |
|
| | 29 | | /// <summary> |
| | 30 | | /// If set to true the credential will store tokens in a cache persisted to the machine, protected to the curren |
| | 31 | | /// </summary> |
| 8 | 32 | | public bool EnablePersistentCache { get; set; } |
| | 33 | |
|
| | 34 | | /// <summary> |
| | 35 | | /// If set to true the credential will fall back to storing tokens in an unencrypted file if no OS level user en |
| | 36 | | /// </summary> |
| 0 | 37 | | public bool AllowUnencryptedCache { get; set; } |
| | 38 | |
|
| | 39 | | /// <summary> |
| | 40 | | /// The <see cref="Identity.AuthenticationRecord"/> captured from a previous authentication. |
| | 41 | | /// </summary> |
| 0 | 42 | | public AuthenticationRecord AuthenticationRecord { get; set; } |
| | 43 | | } |
| | 44 | | } |