Interface ILoginManager
- Namespace
- SunamoInterfaces.Interfaces
- Assembly
- SunamoInterfaces.dll
Interface for managing user login operations.
public interface ILoginManager
- Extension Methods
Properties
DeserializeJson
Gets or sets the function for deserializing JSON to ExternalLoginResult.
Func<string, ExternalLoginResult> DeserializeJson { get; set; }
Property Value
DoWebRequest
Gets or sets the function for performing web requests.
Func<string, string> DoWebRequest { get; set; }
Property Value
Methods
PairLoginAndPassword(string, Func<string, string>, string, string, string, bool)
Pairs a login and password for authentication.
bool PairLoginAndPassword(string messageSuccessfullyLoggedIn, Func<string, string> encryptPasswordToBase64, string login, string password, string hostWithSlash, bool isShowingOnUserRequest = false)
Parameters
messageSuccessfullyLoggedInstringThe message to display on successful login.
encryptPasswordToBase64Func<string, string>Function to encrypt password to Base64.
loginstringThe login username.
passwordstringThe password.
hostWithSlashstringThe host URL with trailing slash.
isShowingOnUserRequestboolWhether to show the result on user request.
Returns
- bool
True if login was successful; otherwise, false.