Table of Contents

Class AuthenticationManager

Namespace
Dynamicweb.Security.UserManagement.Authentication
Assembly
Dynamicweb.Core.dll
public static class AuthenticationManager
Inheritance
AuthenticationManager
Inherited Members

Fields

MaxFailedCodeInputAttempts

public static readonly int MaxFailedCodeInputAttempts

Field Value

int

OneTimeCodeSessionKey

public static readonly string OneTimeCodeSessionKey

Field Value

string

Methods

Authenticate(string, string)

Authenticates user

public static User? Authenticate(string username, string password)

Parameters

username string

User name

password string

Password

Returns

User

Authenticate(string, string, string?)

Authenticates user

public static User? Authenticate(string username, string password, string? shopId)

Parameters

username string

User name

password string

Password

shopId string

Shop identifier

Returns

User

User

GetCodeExpiration()

Gets the date and time when the code expires.

public static DateTimeOffset GetCodeExpiration()

Returns

DateTimeOffset

The code expiration date and time.

GetCodeLifetime()

Gets the code lifetime in seconds.

public static int GetCodeLifetime()

Returns

int

The code lifetime in seconds.

GetLoginType()

Gets the system login type.

public static LoginType GetLoginType()

Returns

LoginType

GetLoginType(User?)

Gets the user's login type.

public static LoginType GetLoginType(User? user)

Parameters

user User

The user

Returns

LoginType

GetLoginType(string)

Gets the user's login type.

public static LoginType GetLoginType(string username)

Parameters

username string

The user name

Returns

LoginType

GetUserByEmailAddress(string)

Finds a user by email.

public static User? GetUserByEmailAddress(string email)

Parameters

email string

Email to search for.

Returns

User

GetUserByUsername(string)

Finds a user by username.

public static User? GetUserByUsername(string username)

Parameters

username string

Username to search for.

Returns

User
To top