OAuthWebSecurity.RequestAuthentication Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Overloads
| Name | Description |
|---|---|
| RequestAuthentication(String) |
Requests the specified provider to start the authentication by directing users to an external website. |
| RequestAuthentication(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. |
RequestAuthentication(String)
Requests the specified provider to start the authentication by directing users to an external website.
public static void RequestAuthentication(string provider);
static member RequestAuthentication : string -> unit
Public Shared Sub RequestAuthentication (provider As String)
Parameters
- provider
- String
The OAuth provider.
Applies to
RequestAuthentication(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.
public static void RequestAuthentication(string provider, string returnUrl);
static member RequestAuthentication : string * string -> unit
Public Shared Sub RequestAuthentication (provider As String, returnUrl As String)
Parameters
- provider
- String
The OAuth provider.
- returnUrl
- String
The URL to return to when authentication is successful.