OpenAuth Class

.NET Framework 4

Provides static methods to manage OpenAuth login and account information in an ASP.NET application.

Inheritance Hierarchy

System.Object
  Microsoft.AspNet.Membership.OpenAuth.OpenAuth

Namespace:  Microsoft.AspNet.Membership.OpenAuth
Assembly:  Microsoft.AspNet.Membership.OpenAuth (in Microsoft.AspNet.Membership.OpenAuth.dll)

Syntax

'Declaration
Public NotInheritable Class OpenAuth
'Usage
public static class OpenAuth
public ref class OpenAuth abstract sealed
[<AbstractClassAttribute>]
[<SealedAttribute>]
type OpenAuth =  class end
public final class OpenAuth

The OpenAuth type exposes the following members.

Properties

  Name Description
Public propertyStatic member AuthenticationClients External authentication service providers to use.
Public propertyStatic member ConnectionString Gets or sets the connection string name for the database OpenAuth account details are stored in.
Public propertyStatic member UsersAccountsTableName Gets or sets the name of the database table the OpenAuth external account details are stored in.
Public propertyStatic member UsersDataTableName Gets or sets the name of the database table the OpenAuth user details are stored in.

Top

Methods

  Name Description
Public methodStatic member AddAccountToExistingUser Adds an external login account to an existing membership user.
Public methodStatic member AddLocalPassword Adds a local password for the specified local user.
Public methodStatic member CreateUser(String, String, String, String)
Public methodStatic member CreateUser(String, String, String, String, String, String, String, String)
Public methodStatic member DeleteAccount Deletes the association of the specified external account for the specified membership user.
Public methodStatic member GetAccountsForUser Returns the details for the external accounts registered for the specified membership user.
Public methodStatic member GetProviderDisplayName Gets the provider display name.
Public methodStatic member GetProviderNameFromCurrentRequest Gets the name of the external authentication provider that redirected to the current request.
Public methodStatic member HasLocalPassword Determines if the specified user has a local password on this site.
Public methodStatic member IsLocalUrl Determines if the specified URL is local to this web site.
Public methodStatic member Login Logs in a user via OpenAuth using the specified authentication provider and provider user ID. The user must already be registered with the site with this OpenAuth provider.
Public methodStatic member RequestAuthentication Request authentication from the provider specified by redirecting the user to the service's login page.
Public methodStatic member VerifyAuthentication Verify the provider result on the current request.

Top

Thread Safety

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

See Also

Reference

Microsoft.AspNet.Membership.OpenAuth Namespace