OAuthWebSecurity Class

Definition

Manages security that uses OAuth authentication providers like Facebook, Twitter, LinkedIn, Windows Live and OpenID authentication providers like Google and Yahoo.

public static class OAuthWebSecurity
type OAuthWebSecurity = class
Public Class OAuthWebSecurity
Inheritance
OAuthWebSecurity

Properties

IsAuthenticatedWithOAuth

Gets a value that indicates whether the user has been authenticated using OAuth.

RegisteredClientData

Gets a collection of registered client data.

Methods

CreateOrUpdateAccount(String, String, String)

Creates or updates the account using the specified provider and user ID for the provider ID and associate the new account with the specified user name.

DeleteAccount(String, String)

Deletes the specified membership account.

GetAccountsFromUserName(String)

Gets the account or accounts that are associated using the specified user name.

GetOAuthClientData(String)

Returns an OAuth authentication client data with the specified provider.

GetUserName(String, String)

Returns the user ID for the specified OAuth or OpenID provider and provider user ID.

HasLocalAccount(Int32)

Indicates whether the user has local account.

Login(String, String, Boolean)

Logs the user in.

RegisterClient(IAuthenticationClient)

Registers an OAuth authentication client.

RegisterClient(IAuthenticationClient, String, IDictionary<String,Object>)

Registers an OAuth authentication client.

RegisterFacebookClient(String, String)

Registers a Facebook client with a specified identifier.

RegisterFacebookClient(String, String, String)

Registers a Facebook client with a specified identifier.

RegisterFacebookClient(String, String, String, IDictionary<String,Object>)

Registers a Facebook client with a specified identifier.

RegisterGoogleClient()

Registers a Google client.

RegisterGoogleClient(String)

Registers a Google client.

RegisterGoogleClient(String, IDictionary<String,Object>)

Registers a Google client.

RegisterLinkedInClient(String, String)

Registers a LinkedIn client with a specified consumer key.

RegisterLinkedInClient(String, String, String)

Registers a LinkedIn client with a specified consumer key.

RegisterLinkedInClient(String, String, String, IDictionary<String,Object>)

Registers a LinkedIn client with a specified consumer key.

RegisterMicrosoftClient(String, String)

Registers a Microsoft client with the specified identifier.

RegisterMicrosoftClient(String, String, String)

Registers a Microsoft client with the specified identifier.

RegisterMicrosoftClient(String, String, String, IDictionary<String,Object>)

Registers a Microsoft client with the specified identifier.

RegisterTwitterClient(String, String)

Registers a Twitter client using the specified consumer key.

RegisterTwitterClient(String, String, String)

Registers a Twitter client using the specified consumer key.

RegisterTwitterClient(String, String, String, IDictionary<String,Object>)

Registers a Twitter client using the specified consumer key.

RegisterYahooClient()

Registers a Yahoo client.

RegisterYahooClient(String)

Registers a Yahoo client.

RegisterYahooClient(String, IDictionary<String,Object>)

Registers a Yahoo client.

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.

SerializeProviderUserId(String, String)

Serializes a user ID of the provider.

TryDeserializeProviderUserId(String, String, String)

Indicates whether the user ID of the provider deserialized.

TryGetOAuthClientData(String, AuthenticationClientData)

Indicates whether the provider gets an OAuth client data.

VerifyAuthentication()

Returns a value that indicates whether the user account has been confirmed by the provider.

VerifyAuthentication(String)

Returns a value that indicates whether the user account has been confirmed by the provider.

Applies to