MicrosoftAccountAuthenticationExtensions.UseMicrosoftAccountAuthentication Method (IAppBuilder, String, String)

Authenticate users using Microsoft Account

Namespace:  Owin
Assembly:  Microsoft.Owin.Security.MicrosoftAccount (in Microsoft.Owin.Security.MicrosoftAccount.dll)

Syntax

'Declaration
<ExtensionAttribute> _
Public Shared Function UseMicrosoftAccountAuthentication ( _
    app As IAppBuilder, _
    clientId As String, _
    clientSecret As String _
) As IAppBuilder
'Usage
Dim app As IAppBuilder 
Dim clientId As String 
Dim clientSecret As String 
Dim returnValue As IAppBuilder 

returnValue = app.UseMicrosoftAccountAuthentication(clientId, _
    clientSecret)
public static IAppBuilder UseMicrosoftAccountAuthentication(
    this IAppBuilder app,
    string clientId,
    string clientSecret
)
[ExtensionAttribute]
public:
static IAppBuilder^ UseMicrosoftAccountAuthentication(
    IAppBuilder^ app, 
    String^ clientId, 
    String^ clientSecret
)
static member UseMicrosoftAccountAuthentication : 
        app:IAppBuilder * 
        clientId:string * 
        clientSecret:string -> IAppBuilder
public static function UseMicrosoftAccountAuthentication(
    app : IAppBuilder, 
    clientId : String, 
    clientSecret : String
) : IAppBuilder

Parameters

  • app
    Type: IAppBuilder
    The IAppBuilder passed to the configuration method
  • clientId
    Type: System.String
    The application client ID assigned by the Microsoft authentication service
  • clientSecret
    Type: System.String
    The application client secret assigned by the Microsoft authentication service

Return Value

Type: IAppBuilder

Usage Note

In Visual Basic and C#, you can call this method as an instance method on any object of type IAppBuilder. When you use instance method syntax to call this method, omit the first parameter. For more information, see https://msdn.microsoft.com/en-us/library/bb384936(v=vs.111) or https://msdn.microsoft.com/en-us/library/bb383977(v=vs.111).

See Also

Reference

MicrosoftAccountAuthenticationExtensions Class

UseMicrosoftAccountAuthentication Overload

Owin Namespace