Class MicrosoftAuthenticationServiceExtensions
- Namespace
- ProjectTemplate.Web.Authentication.Providers.Microsoft
- Assembly
- ProjectTemplate.Web.dll
Provides extension methods for registering Microsoft authentication provider services.
public static class MicrosoftAuthenticationServiceExtensions
- Inheritance
-
MicrosoftAuthenticationServiceExtensions
- Inherited Members
Methods
AddMicrosoftAuthentication(AuthenticationBuilder, ApplicationExternalAuthenticationProviderOptions)
Adds the Microsoft authentication provider registration.
public static AuthenticationBuilder AddMicrosoftAuthentication(this AuthenticationBuilder builder, ApplicationExternalAuthenticationProviderOptions options)
Parameters
builderAuthenticationBuilderThe authentication builder used to register authentication handlers.
optionsApplicationExternalAuthenticationProviderOptionsThe Microsoft provider options.
Returns
- AuthenticationBuilder
The same AuthenticationBuilder instance for chaining.