
Public Function AddMicrosoftIdentityWebApi (builder As AuthenticationBuilder, configurationSection As IConfigurationSection, Optional jwtBearerScheme As String = "Bearer", Optional subscribeToJwtBearerMiddlewareDiagnosticsEvents As Boolean = false) As MicrosoftIdentityWebApiAuthenticationBuilderWithConfiguration Parameters public static AddMicrosoftIdentityWebApi (this builder, configurationSection, string jwtBearerScheme = "Bearer", bool subscribeToJwtBearerMiddlewareDiagnosticsEvents = false) static member AddMicrosoftIdentityWebApi : * * string * bool -> This method expects the configuration file will have a section, named "AzureAd" as default, with the necessary settings to initialize authentication options. This method expects the configuration file will have a section, named "AzureAd" as default, with the necessary settings to initialize authentication options.ĪddMicrosoftIdentityWebApi(AuthenticationBuilder, IConfiguration, String, String, Boolean)ĪddMicrosoftIdentityWebApi(AuthenticationBuilder, Action, Action, String, Boolean)

Protects the web API with Microsoft identity platform (formerly Azure AD v2.0). In this article Overloads AddMicrosoftIdentityWebApi(AuthenticationBuilder, IConfigurationSection, String, Boolean)

Microsoft makes no warranties, express or implied, with respect to the information provided here. Some information relates to prerelease product that may be substantially modified before it’s released.
