예제 #1
0
 /// <summary>
 /// Creates a new <see cref="InteractiveBrowserCredential"/> with the specified options, which will authenticate users with the specified application.
 /// </summary>
 /// <param name="options">The client options for the newly created <see cref="InteractiveBrowserCredential"/>.</param>
 internal InteractiveBrowserCredential(InteractiveBrowserCredentialOptions options)
     : this(options?.TenantId, options?.ClientId ?? Constants.DeveloperSignOnClientId, null, null)
 {
     _disableAutomaticAuthentication = options?.DisableAutomaticAuthentication ?? false;
     _record = options?.AuthenticationRecord;
 }
 /// <summary>
 /// Creates a new <see cref="InteractiveBrowserCredential"/> with the specified options, which will authenticate users with the specified application.
 /// </summary>
 /// <param name="options">The client options for the newly created <see cref="InteractiveBrowserCredential"/>.</param>
 public InteractiveBrowserCredential(InteractiveBrowserCredentialOptions options)
     : this(options?.TenantId, options?.ClientId ?? Constants.DeveloperSignOnClientId, CredentialPipeline.GetInstance(options), options?.EnablePersistentCache ?? false)
 {
     _disableAutomaticAuthentication = options?.DisableAutomaticAuthentication ?? false;
     _record = options?.AuthenticationRecord;
 }