Share via


OAuthWebSecurity.RegisterMicrosoftClient Method (String, String)

Registers a Microsoft client with the specified identifier.

Namespace:  Microsoft.Web.WebPages.OAuth
Assembly:  Microsoft.Web.WebPages.OAuth (in Microsoft.Web.WebPages.OAuth.dll)

Syntax

'Declaration
Public Shared Sub RegisterMicrosoftClient ( _
    clientId As String, _
    clientSecret As String _
)
'Usage
Dim clientId As String 
Dim clientSecret As String 

OAuthWebSecurity.RegisterMicrosoftClient(clientId, _
    clientSecret)
public static void RegisterMicrosoftClient(
    string clientId,
    string clientSecret
)
public:
static void RegisterMicrosoftClient(
    String^ clientId, 
    String^ clientSecret
)
static member RegisterMicrosoftClient : 
        clientId:string * 
        clientSecret:string -> unit
public static function RegisterMicrosoftClient(
    clientId : String, 
    clientSecret : String
)

Parameters

Remarks

For an example of using the OAuthWebSecurity class, see Using OAuth Providers with MVC 4.

See Also

Reference

OAuthWebSecurity Class

RegisterMicrosoftClient Overload

Microsoft.Web.WebPages.OAuth Namespace