public ConfigureAzureOptions(AzureAdOptions azureOptions) { _azureOptions = azureOptions; }
public static AuthenticationBuilder AddAzureAdBearer(this AuthenticationBuilder builder, AzureAdOptions configureOptions) { //builder.Services.Configure(configureOptions); builder.Services.AddSingleton <AzureAdOptions>(configureOptions); builder.Services.AddSingleton <IConfigureOptions <JwtBearerOptions>, ConfigureAzureOptions>(); builder.AddJwtBearer(); return(builder); }