Table of Contents

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

Func<string, ExternalLoginResult>

DoWebRequest

Gets or sets the function for performing web requests.

Func<string, string> DoWebRequest { get; set; }

Property Value

Func<string, string>

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

messageSuccessfullyLoggedIn string

The message to display on successful login.

encryptPasswordToBase64 Func<string, string>

Function to encrypt password to Base64.

login string

The login username.

password string

The password.

hostWithSlash string

The host URL with trailing slash.

isShowingOnUserRequest bool

Whether to show the result on user request.

Returns

bool

True if login was successful; otherwise, false.