MicrosoftIdentityAuthenticationMessageHandlerHttpClientBuilderExtensions.AddMicrosoftIdentityAppAuthenticationHandler Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Overloads
AddMicrosoftIdentityAppAuthenticationHandler(IHttpClientBuilder, String, IConfiguration) |
Adds a named Microsoft Identity application authentication message handler related to a specific configuration section. |
AddMicrosoftIdentityAppAuthenticationHandler(IHttpClientBuilder, String, Action<MicrosoftIdentityAuthenticationMessageHandlerOptions>) |
Adds a named Microsoft Identity application authentication message handler initialized with delegates. |
AddMicrosoftIdentityAppAuthenticationHandler(IHttpClientBuilder, String, IConfiguration)
Adds a named Microsoft Identity application authentication message handler related to a specific configuration section.
public static Microsoft.Extensions.DependencyInjection.IHttpClientBuilder AddMicrosoftIdentityAppAuthenticationHandler (this Microsoft.Extensions.DependencyInjection.IHttpClientBuilder builder, string serviceName, Microsoft.Extensions.Configuration.IConfiguration configuration);
static member AddMicrosoftIdentityAppAuthenticationHandler : Microsoft.Extensions.DependencyInjection.IHttpClientBuilder * string * Microsoft.Extensions.Configuration.IConfiguration -> Microsoft.Extensions.DependencyInjection.IHttpClientBuilder
<Extension()>
Public Function AddMicrosoftIdentityAppAuthenticationHandler (builder As IHttpClientBuilder, serviceName As String, configuration As IConfiguration) As IHttpClientBuilder
Parameters
- builder
- IHttpClientBuilder
Builder.
- serviceName
- String
Name of the configuration for the service.
- configuration
- IConfiguration
Configuration.
Returns
The builder for chaining.
Applies to
AddMicrosoftIdentityAppAuthenticationHandler(IHttpClientBuilder, String, Action<MicrosoftIdentityAuthenticationMessageHandlerOptions>)
Adds a named Microsoft Identity application authentication message handler initialized with delegates.
public static Microsoft.Extensions.DependencyInjection.IHttpClientBuilder AddMicrosoftIdentityAppAuthenticationHandler (this Microsoft.Extensions.DependencyInjection.IHttpClientBuilder builder, string serviceName, Action<Microsoft.Identity.Web.MicrosoftIdentityAuthenticationMessageHandlerOptions> configureOptions);
static member AddMicrosoftIdentityAppAuthenticationHandler : Microsoft.Extensions.DependencyInjection.IHttpClientBuilder * string * Action<Microsoft.Identity.Web.MicrosoftIdentityAuthenticationMessageHandlerOptions> -> Microsoft.Extensions.DependencyInjection.IHttpClientBuilder
<Extension()>
Public Function AddMicrosoftIdentityAppAuthenticationHandler (builder As IHttpClientBuilder, serviceName As String, configureOptions As Action(Of MicrosoftIdentityAuthenticationMessageHandlerOptions)) As IHttpClientBuilder
Parameters
- builder
- IHttpClientBuilder
Builder.
- serviceName
- String
Name of the configuration for the service.
- configureOptions
- Action<MicrosoftIdentityAuthenticationMessageHandlerOptions>
Action to configure the options.
Returns
The builder for chaining.