Beispiel #1
0
 /// <summary>
 ///     Extension method enabling MSAL.NET extenders for public client applications to set a custom web ui
 ///     that will let the user sign-in with Azure AD, present consent if needed, and get back the authorization
 ///     code.
 /// </summary>
 /// <param name="builder">Builder for an AcquireTokenInteractive.</param>
 /// <param name="customWebUi">Customer implementation for the Web UI.</param>
 /// <returns>the builder to be able to chain .With methods.</returns>
 public static AcquireTokenInteractiveParameterBuilder WithCustomWebUi(
     this AcquireTokenInteractiveParameterBuilder builder,
     ICustomWebUi customWebUi)
 {
     builder.SetCustomWebUi(customWebUi);
     return(builder);
 }
 /// <summary>
 ///     Extension method enabling MSAL.NET extenders for public client applications to set a custom web UI
 ///     that will let the user sign-in with Azure AD, present consent if needed, and get back the authorization
 ///     code
 /// </summary>
 /// <param name="builder">Builder for an AcquireTokenInteractive</param>
 /// <param name="customWebUi">Customer implementation for the Web UI</param>
 /// <returns>the builder to be able to chain .With methods</returns>
 public static AcquireTokenInteractiveParameterBuilder WithCustomWebUi(
     this AcquireTokenInteractiveParameterBuilder builder,
     ICustomWebUi customWebUi)
 {
     builder.CommonParameters.AddApiTelemetryFeature(ApiTelemetryFeature.WithCustomWebUi);
     builder.SetCustomWebUi(customWebUi);
     return(builder);
 }