MicrosoftAccountAppBuilderExtensions Class¶
Extension methods to add Microsoft Account authentication capabilities to an HTTP application pipeline.
- Namespace
Microsoft.AspNetCore.Builder
- Assemblies
- Microsoft.AspNetCore.Authentication.MicrosoftAccount
Syntax¶
public class MicrosoftAccountAppBuilderExtensions
-
class
Microsoft.AspNetCore.Builder.
MicrosoftAccountAppBuilderExtensions
Methods¶
-
UseMicrosoftAccountAuthentication
(Microsoft.AspNetCore.Builder.IApplicationBuilder)¶ Adds the
Microsoft.AspNetCore.Authentication.MicrosoftAccount.MicrosoftAccountMiddleware
middleware to the specifiedMicrosoft.AspNetCore.Builder.IApplicationBuilder
, which enables Microsoft Account authentication capabilities.Arguments: app (Microsoft.AspNetCore.Builder.IApplicationBuilder) – The Microsoft.AspNetCore.Builder.IApplicationBuilder
to add the middleware to.Return type: Microsoft.AspNetCore.Builder.IApplicationBuilder Returns: A reference to this instance after the operation has completed. public static IApplicationBuilder UseMicrosoftAccountAuthentication(this IApplicationBuilder app)
-
UseMicrosoftAccountAuthentication
(Microsoft.AspNetCore.Builder.IApplicationBuilder, Microsoft.AspNetCore.Builder.MicrosoftAccountOptions) Adds the
Microsoft.AspNetCore.Authentication.MicrosoftAccount.MicrosoftAccountMiddleware
middleware to the specifiedMicrosoft.AspNetCore.Builder.IApplicationBuilder
, which enables Microsoft Account authentication capabilities.Arguments: - app (Microsoft.AspNetCore.Builder.IApplicationBuilder) – The
Microsoft.AspNetCore.Builder.IApplicationBuilder
to add the middleware to. - options (Microsoft.AspNetCore.Builder.MicrosoftAccountOptions) – A
Microsoft.AspNetCore.Builder.MicrosoftAccountOptions
that specifies options for the middleware.
Return type: Returns: A reference to this instance after the operation has completed.
public static IApplicationBuilder UseMicrosoftAccountAuthentication(this IApplicationBuilder app, MicrosoftAccountOptions options)
- app (Microsoft.AspNetCore.Builder.IApplicationBuilder) – The
-