|
lintel 0.2.0
|
#include <AuthCliService.h>
Public Member Functions | |
| AuthCliService (std::shared_ptr< UserApi > userApi, std::shared_ptr< CommandLineUtils > commandLineUtils, std::shared_ptr< IInputService > inputService, std::shared_ptr< ITerminalService > terminalService, std::shared_ptr< AuthArgumentProvider > argumentProvider) | |
| std::optional< UserDto > | onLogin () |
| void | onLogout (UserDto &&userDto) |
Handles CLI-based user authentication (login/logout)
| lintel::AuthCliService::AuthCliService | ( | std::shared_ptr< UserApi > | userApi, |
| std::shared_ptr< CommandLineUtils > | commandLineUtils, | ||
| std::shared_ptr< IInputService > | inputService, | ||
| std::shared_ptr< ITerminalService > | terminalService, | ||
| std::shared_ptr< AuthArgumentProvider > | argumentProvider | ||
| ) |
| std::optional< UserDto > lintel::AuthCliService::onLogin | ( | ) |
Prompt the user for credentials and attempt login