Class ExternalLogin
- Namespace
- Dynamicweb.Security.UserManagement
- Assembly
- Dynamicweb.Security.dll
Represents External Login
public class ExternalLogin : DbObject
- Inheritance
-
ExternalLogin
- Inherited Members
Constructors
ExternalLogin(IDataReader)
Initializes a new instance of the ExternalLogin class.
[Obsolete("Use any other constructor instead")]
public ExternalLogin(IDataReader dataReader)
Parameters
dataReader
IDataReader- DataReader.
ExternalLogin(int, int, string, string)
Initializes a new instance of an object.
public ExternalLogin(int userID, int providerID, string providerKey, string providerUserName)
Parameters
Properties
ProviderID
Gets or sets the login provider id
public int ProviderID { get; set; }
Property Value
ProviderKey
Gets or sets the login provider key for the logged-in user
public string ProviderKey { get; set; }
Property Value
ProviderUserName
Gets or sets the default login provider user name for the logged-in user
public string ProviderUserName { get; set; }
Property Value
UserID
Gets or sets the Dynamicweb user id
public int UserID { get; set; }
Property Value
Methods
Delete(int)
Deletes the external login
public override void Delete(int id)
Parameters
id
int- External login identifier
Fill(IDataReader)
Fills this instance with data from the specified datareader.
public override void Fill(IDataReader reader)
Parameters
reader
IDataReader- The data reader.
FillRow(DataRow)
Fills this instance with data from the data row.
protected override void FillRow(DataRow row)
Parameters
row
DataRow- The row.
GetExternalLogin(int)
Returns External Login by id
[Obsolete("Use GetExternalLogOn instead.")]
public static ExternalLogin GetExternalLogin(int id)
Parameters
id
int
Returns
GetExternalLogin(int, string)
[Obsolete("Use GetLogOn instead.")]
public static ExternalLogin GetExternalLogin(int proiderID, string providerKey)
Parameters
Returns
GetExternalLogOn(int)
Returns External Login by id
public static ExternalLogin GetExternalLogOn(int id)
Parameters
id
int
Returns
GetLogin(int, string)
Returns External Login by provider id and provider key
[Obsolete("Use GetLogOn instead.")]
public static ExternalLogin GetLogin(int providerID, string providerKey)
Parameters
Returns
GetLogOn(int, string)
Returns External Login by provider id and provider key
public static ExternalLogin GetLogOn(int providerID, string providerKey)
Parameters
Returns
GetUserByExternalLogin(int, string)
Returns Dynamicweb user by External Login
[Obsolete("Use GetUserByExternalLogOn instead")]
public static User GetUserByExternalLogin(int providerID, string providerKey)
Parameters
Returns
GetUserByExternalLogOn(int, string)
Returns Dynamicweb user by External Login
public static User GetUserByExternalLogOn(int providerID, string providerKey)
Parameters
Returns
GetUserExternalLogins(int)
Returns External Logins for specific user
public static IEnumerable<ExternalLogin> GetUserExternalLogins(int userId)
Parameters
userId
int- Dynamicweb user id
Returns
IsConflictExternalLogin(int, string, int)
Returns True if External Login is already assigned to another user otherwise False
[Obsolete("Use IsConflictExternalLogOn instead")]
public static bool IsConflictExternalLogin(int providerID, string providerKey, int userID)
Parameters
providerID
int- External Login provider id
providerKey
string- External Login provider key
userID
int- Dynamicweb user id to check External Login assignment
Returns
IsConflictExternalLogOn(int, string, int)
Returns True if External Login is already assigned to another user otherwise False
public static bool IsConflictExternalLogOn(int providerID, string providerKey, int userID)
Parameters
providerID
int- External Login provider id
providerKey
string- External Login provider key
userID
int- Dynamicweb user id to check External Login assignment
Returns
IsExistingExternalLogin(int, string, int)
Returns True if External Login is already associated with the Dynamicweb user otherwise False
[Obsolete("Use IsExistingExternalLogOn instead")]
public static bool IsExistingExternalLogin(int providerID, string providerKey, int userID)
Parameters
providerID
int- External Login provider id
providerKey
string- External Login provider key
userID
int- Dynamicweb user id
Returns
IsExistingExternalLogOn(int, string, int)
Returns True if External Login is already associated with the Dynamicweb user otherwise False
public static bool IsExistingExternalLogOn(int providerID, string providerKey, int userID)
Parameters
providerID
int- External Login provider id
providerKey
string- External Login provider key
userID
int- Dynamicweb user id
Returns
Save()
Saves current data.
public override void Save()