lintel 0.2.0
Loading...
Searching...
No Matches
Public Member Functions | List of all members
lintel::AuthCliService Class Reference

#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)
 

Detailed Description

Handles CLI-based user authentication (login/logout)

Constructor & Destructor Documentation

◆ AuthCliService()

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 
)

Member Function Documentation

◆ onLogin()

std::optional< UserDto > lintel::AuthCliService::onLogin ( )

Prompt the user for credentials and attempt login

◆ onLogout()

void lintel::AuthCliService::onLogout ( UserDto &&  userDto)

Log out the given user


The documentation for this class was generated from the following file: