Table of Contents

Interface IAuthorization

Namespace
Ecng.Security
Assembly
Ecng.Security.dll

Defines the interface to an authorization module.

public interface IAuthorization
Extension Methods

Methods

ValidateCredentials(string, SecureString, IPAddress, CancellationToken)

Check login and password.

ValueTask<string> ValidateCredentials(string login, SecureString password, IPAddress clientAddress, CancellationToken cancellationToken)

Parameters

login string

Login.

password SecureString

Password.

clientAddress IPAddress

Remote network address.

cancellationToken CancellationToken

CancellationToken

Returns

ValueTask<string>

Session identifier.