Table of Contents

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

userID int
providerID int
providerKey string
providerUserName string

Properties

ProviderID

Gets or sets the login provider id
public int ProviderID { get; set; }

Property Value

int

ProviderKey

Gets or sets the login provider key for the logged-in user
public string ProviderKey { get; set; }

Property Value

string

ProviderUserName

Gets or sets the default login provider user name for the logged-in user
public string ProviderUserName { get; set; }

Property Value

string

UserID

Gets or sets the Dynamicweb user id
public int UserID { get; set; }

Property Value

int

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

ExternalLogin

GetExternalLogin(int, string)

[Obsolete("Use GetLogOn instead.")]
public static ExternalLogin GetExternalLogin(int proiderID, string providerKey)

Parameters

proiderID int
providerKey string

Returns

ExternalLogin

GetExternalLogOn(int)

Returns External Login by id
public static ExternalLogin GetExternalLogOn(int id)

Parameters

id int

Returns

ExternalLogin

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

providerID int
providerKey string

Returns

ExternalLogin

GetLogOn(int, string)

Returns External Login by provider id and provider key
public static ExternalLogin GetLogOn(int providerID, string providerKey)

Parameters

providerID int
providerKey string

Returns

ExternalLogin

GetUserByExternalLogin(int, string)

Returns Dynamicweb user by External Login
[Obsolete("Use GetUserByExternalLogOn instead")]
public static User GetUserByExternalLogin(int providerID, string providerKey)

Parameters

providerID int
External Login provider id
providerKey string
External Login provider key

Returns

User

GetUserByExternalLogOn(int, string)

Returns Dynamicweb user by External Login
public static User GetUserByExternalLogOn(int providerID, string providerKey)

Parameters

providerID int
External Login provider id
providerKey string
External Login provider key

Returns

User

GetUserExternalLogins(int)

Returns External Logins for specific user
public static IEnumerable<ExternalLogin> GetUserExternalLogins(int userId)

Parameters

userId int
Dynamicweb user id

Returns

IEnumerable<ExternalLogin>

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

bool

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

bool

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

bool

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

bool

Save()

Saves current data.
public override void Save()
To top