pub fn authenticate(
username: &str,
password: impl AsRef<[u8]>,
) -> Result<(), BoxError>Expand description
§Description
Tries to authenticate a user with specified password.
Authentication method is determined via accessing _pico_user
system table using admin session.
§FFI
Uses [pico_ffi_authenticate].
§Errors
- User was not found in the list of available users.
- Authentication method was not initialized for the user.
- Username length is greater than
u32. - Password is not correct for the specified user.
§Panics
- Global Raft node is not initialized.
- Authentication data is not set for the specified user.
- Session of
adminuser is closed. - User
adminis not found. - User
admindoes not have enough permissions. - Internal error on accessing underlying Tarantool space of
_pico_usersystem table.