コード例 #1
0
 public ConfigureAzureOptions(AzureAdOptions azureOptions)
 {
     _azureOptions = azureOptions;
 }
コード例 #2
0
 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);
 }