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
OneTimeCodeSessionKey
public static readonly string OneTimeCodeSessionKey
Field Value
Methods
Authenticate(string, string)
Authenticates user
public static User? Authenticate(string username, string password)
Parameters
Returns
Authenticate(string, string, string?)
Authenticates user
public static User? Authenticate(string username, string password, string? shopId)
Parameters
Returns
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
GetLoginType(User?)
Gets the user's login type.
public static LoginType GetLoginType(User? user)
Parameters
userUserThe user
Returns
GetLoginType(string)
Gets the user's login type.
public static LoginType GetLoginType(string username)
Parameters
usernamestringThe user name
Returns
GetUserByEmailAddress(string)
Finds a user by email.
public static User? GetUserByEmailAddress(string email)
Parameters
emailstringEmail to search for.
Returns
GetUserByUsername(string)
Finds a user by username.
public static User? GetUserByUsername(string username)
Parameters
usernamestringUsername to search for.