Пример #1
0
 /// <summary>
 /// Adds JWT Bearer authentication to your app for Azure AD B2C Applications.
 /// </summary>
 /// <param name="builder">The <see cref="AuthenticationBuilder"/>.</param>
 /// <param name="configureOptions">The <see cref="Action{AzureADB2COptions}"/> to configure the
 /// <see cref="AzureADB2COptions"/>.
 /// </param>
 /// <returns>The <see cref="AuthenticationBuilder"/>.</returns>
 public static AuthenticationBuilder AddAzureADB2CBearer(this AuthenticationBuilder builder, Action <AzureADB2COptions> configureOptions) =>
 builder.AddAzureADB2CBearer(
     AzureADB2CDefaults.BearerAuthenticationScheme,
     AzureADB2CDefaults.JwtBearerAuthenticationScheme,
     configureOptions);