Click or drag to resize

AuthenticationManagerLogin Method

Login with a Password Safe user account. Opens a session on the server. Use Logout to close the session.

Namespace:  PsrApi.Managers
Assembly:  PsrApi (in PsrApi.dll) Version: 8.13.13.27522 (14.03.2022)
Syntax
C#
public Task<PsrMultiFactorAuthenticationRequest> Login(
	string database,
	string username,
	string password,
	IReadOnlyCollection<PsrMultiFactorAuthenticationField> multiFactorFields = null
)

Parameters

database
Type: SystemString
The desired database
username
Type: SystemString
Username of the user
password
Type: SystemString
Plaintext password
multiFactorFields (Optional)
Type: System.Collections.GenericIReadOnlyCollectionPsrMultiFactorAuthenticationField
Multi factors

Return Value

Type: TaskPsrMultiFactorAuthenticationRequest
NULL if multi-factor authentication is not configured for the user or PsrMultiFactorAuthenticationRequest with information about the configured authenticator.
See Also