xentara-plugin v2.0.3
The Xentara Plugin Framework
Loading...
Searching...
No Matches
xentara::security::PasswordAuthenticator Class Reference

An authenticator that uses user name and password. More...

#include <xentara/security/PasswordAuthenticator.hpp>

Public Member Functions

internal auto authenticate (std::string_view userName, std::string_view password) const -> utils::eh::expected< Authorization, std::error_code >
 Authenticate using a user name and a password.
 

Detailed Description

An authenticator that uses user name and password.

Member Function Documentation

◆ authenticate()

internal auto xentara::security::PasswordAuthenticator::authenticate ( std::string_view  userName,
std::string_view  password 
) const -> utils::eh::expected< Authorization, std::error_code >

Authenticate using a user name and a password.

Parameters
userNameThe user name
passwordThe password
Returns
Returns an authorization object, or an error code on error.