OAuthWebSecurity OAuthWebSecurity 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
OAuthWebSecurityOAuthWebSecurityOAuthWebSecurity

Properties

IsAuthenticatedWithOAuth IsAuthenticatedWithOAuth IsAuthenticatedWithOAuth

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

RegisteredClientData RegisteredClientData RegisteredClientData

Gets a collection of registered client data.

Methods

CreateOrUpdateAccount(String, String, String) CreateOrUpdateAccount(String, String, String) 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) DeleteAccount(String, String) DeleteAccount(String, String)

Deletes the specified membership account.

GetAccountsFromUserName(String) GetAccountsFromUserName(String) GetAccountsFromUserName(String)

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

GetOAuthClientData(String) GetOAuthClientData(String) GetOAuthClientData(String)

Returns an OAuth authentication client data with the specified provider.

GetUserName(String, String) GetUserName(String, String) GetUserName(String, String)

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

HasLocalAccount(Int32) HasLocalAccount(Int32) HasLocalAccount(Int32)

Indicates whether the user has local account.

Login(String, String, Boolean) Login(String, String, Boolean) Login(String, String, Boolean)

Logs the user in.

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

Registers an OAuth authentication client.

RegisterClient(IAuthenticationClient) RegisterClient(IAuthenticationClient) RegisterClient(IAuthenticationClient)

Registers an OAuth authentication client.

RegisterFacebookClient(String, String) RegisterFacebookClient(String, String) RegisterFacebookClient(String, String)

Registers a Facebook client with a specified identifier.

RegisterFacebookClient(String, String, String) RegisterFacebookClient(String, String, String) RegisterFacebookClient(String, String, String)

Registers a Facebook client with a specified identifier.

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

Registers a Facebook client with a specified identifier.

RegisterGoogleClient() RegisterGoogleClient() RegisterGoogleClient()

Registers a Google client.

RegisterGoogleClient(String) RegisterGoogleClient(String) RegisterGoogleClient(String)

Registers a Google client.

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

Registers a Google client.

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

Registers a LinkedIn client with a specified consumer key.

RegisterLinkedInClient(String, String) RegisterLinkedInClient(String, String) RegisterLinkedInClient(String, String)

Registers a LinkedIn client with a specified consumer key.

RegisterLinkedInClient(String, String, String) RegisterLinkedInClient(String, String, String) RegisterLinkedInClient(String, String, String)

Registers a LinkedIn client with a specified consumer key.

RegisterMicrosoftClient(String, String) RegisterMicrosoftClient(String, String) RegisterMicrosoftClient(String, String)

Registers a Microsoft client with the specified identifier.

RegisterMicrosoftClient(String, String, String) RegisterMicrosoftClient(String, String, String) RegisterMicrosoftClient(String, String, String)

Registers a Microsoft client with the specified identifier.

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

Registers a Microsoft client with the specified identifier.

RegisterTwitterClient(String, String) RegisterTwitterClient(String, String) RegisterTwitterClient(String, String)

Registers a Twitter client using the specified consumer key.

RegisterTwitterClient(String, String, String) RegisterTwitterClient(String, String, String) RegisterTwitterClient(String, String, String)

Registers a Twitter client using the specified consumer key.

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

Registers a Twitter client using the specified consumer key.

RegisterYahooClient(String) RegisterYahooClient(String) RegisterYahooClient(String)

Registers a Yahoo client.

RegisterYahooClient() RegisterYahooClient() RegisterYahooClient()

Registers a Yahoo client.

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

Registers a Yahoo client.

RequestAuthentication(String) RequestAuthentication(String) RequestAuthentication(String)

Requests the specified provider to start the authentication by directing users to an external website.

RequestAuthentication(String, String) RequestAuthentication(String, String) 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) SerializeProviderUserId(String, String) SerializeProviderUserId(String, String)

Serializes a user ID of the provider.

TryDeserializeProviderUserId(String, String, String) TryDeserializeProviderUserId(String, String, String) TryDeserializeProviderUserId(String, String, String)

Indicates whether the user ID of the provider deserialized.

TryGetOAuthClientData(String, AuthenticationClientData) TryGetOAuthClientData(String, AuthenticationClientData) TryGetOAuthClientData(String, AuthenticationClientData)

Indicates whether the provider gets an OAuth client data.

VerifyAuthentication() VerifyAuthentication() VerifyAuthentication()

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

VerifyAuthentication(String) VerifyAuthentication(String) VerifyAuthentication(String)

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

Applies to