Share via


OAuthWebSecurity.RequestAuthentication Method (String, String)

Requests the specified provider to start the authentication by directing users to an external website, and directs the provider to redirect the user to the specified URL when authentication is successful.

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

Syntax

'Declaration
Public Shared Sub RequestAuthentication ( _
    provider As String, _
    returnUrl As String _
)
'Usage
Dim provider As String 
Dim returnUrl As String 

OAuthWebSecurity.RequestAuthentication(provider, _
    returnUrl)
public static void RequestAuthentication(
    string provider,
    string returnUrl
)
public:
static void RequestAuthentication(
    String^ provider, 
    String^ returnUrl
)
static member RequestAuthentication : 
        provider:string * 
        returnUrl:string -> unit
public static function RequestAuthentication(
    provider : String, 
    returnUrl : String
)

Parameters

  • returnUrl
    Type: System.String
    The URL to return to when authentication is successful.

See Also

Reference

OAuthWebSecurity Class

RequestAuthentication Overload

Microsoft.Web.WebPages.OAuth Namespace