Share via


OAuthWebSecurity.RegisterClient Method (IAuthenticationClient)

Registers an OAuth authentication client.

This API is not CLS-compliant. 

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

Syntax

'Declaration
<CLSCompliantAttribute(False)> _
Public Shared Sub RegisterClient ( _
    client As IAuthenticationClient _
)
'Usage
Dim client As IAuthenticationClient 

OAuthWebSecurity.RegisterClient(client)
[CLSCompliantAttribute(false)]
public static void RegisterClient(
    IAuthenticationClient client
)
[CLSCompliantAttribute(false)]
public:
static void RegisterClient(
    IAuthenticationClient^ client
)
[<CLSCompliantAttribute(false)>]
static member RegisterClient : 
        client:IAuthenticationClient -> unit
public static function RegisterClient(
    client : IAuthenticationClient
)

Parameters

  • client
    Type: IAuthenticationClient
    One of the supported OAuth clients.

Remarks

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

See Also

Reference

OAuthWebSecurity Class

RegisterClient Overload

Microsoft.Web.WebPages.OAuth Namespace