Microsoft.Identity.Client.PublicClientApplication.AcquireTokenWithIntegratedAuthInternalAsync C# (CSharp) Method

AcquireTokenWithIntegratedAuthInternalAsync() private method

.NET specific method for intergrated auth. To support Xamarin, we would need to move these to platform specific libraries.
private AcquireTokenWithIntegratedAuthInternalAsync ( string scope ) : Task
scope string
return Task
        internal async Task<AuthenticationResult> AcquireTokenWithIntegratedAuthInternalAsync(string[] scope)
        {
            Authenticator authenticator = new Authenticator(this.Authority, this.ValidateAuthority, this.CorrelationId);
            return
                await
                    this.AcquireTokenUsingIntegratedAuthCommonAsync(authenticator, scope,
                        new UserCredential(), null).ConfigureAwait(false);
        }

Same methods

PublicClientApplication::AcquireTokenWithIntegratedAuthInternalAsync ( string scope, string authority, string policy ) : Task

Usage Example

 /// <summary>
 /// .NET specific method for intergrated auth. To support Xamarin, we would need to move these to platform specific
 /// libraries.
 /// </summary>
 /// <param name="scope"></param>
 /// <param name="authority"></param>
 /// <param name="policy"></param>
 /// <param name="app"></param>
 /// <returns></returns>
 public static async Task <AuthenticationResult> AcquireTokenWithIntegratedAuthAsync(
     this PublicClientApplication app, string[] scope, string authority, string policy)
 {
     return
         (await
          app.AcquireTokenWithIntegratedAuthInternalAsync(scope, authority, policy).ConfigureAwait(false));
 }