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 | |
---|---|---|
AuthenticationClients | External authentication service providers to use. | |
ConnectionString | Gets or sets the connection string name for the database OpenAuth account details are stored in. | |
UsersAccountsTableName | Gets or sets the name of the database table the OpenAuth external account details are stored in. | |
UsersDataTableName | Gets or sets the name of the database table the OpenAuth user details are stored in. |
Top
Methods
Name | Description | |
---|---|---|
AddAccountToExistingUser | Adds an external login account to an existing membership user. | |
AddLocalPassword | Adds a local password for the specified local user. | |
CreateUser(String, String, String, String) | ||
CreateUser(String, String, String, String, String, String, String, String) | ||
DeleteAccount | Deletes the association of the specified external account for the specified membership user. | |
GetAccountsForUser | Returns the details for the external accounts registered for the specified membership user. | |
GetProviderDisplayName | Gets the provider display name. | |
GetProviderNameFromCurrentRequest | Gets the name of the external authentication provider that redirected to the current request. | |
HasLocalPassword | Determines if the specified user has a local password on this site. | |
IsLocalUrl | Determines if the specified URL is local to this web site. | |
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. | |
RequestAuthentication | Request authentication from the provider specified by redirecting the user to the service's login page. | |
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.