|
lintel 0.2.0
|
#include <AuthService.h>
Additional Inherited Members | |
Protected Member Functions inherited from lintel::PropertyRegistration< AuthService > | |
| std::shared_ptr< Property< type > > | registerProperty (std::string name, type defaultValue, std::string description, bool runtime, const std::string &fileName, int32_t position) |
Protected Attributes inherited from lintel::AbstractService< T > | |
| std::vector< std::shared_ptr< PropertyBase > > | m_properties |
Authentication service managing user login, access tokens, and session timeouts.
| lintel::AuthService::AuthService | ( | const std::shared_ptr< ProcessName > & | processName, |
| std::shared_ptr< UserRepository > | userRepository, | ||
| std::shared_ptr< SchedulerService > | schedulerService | ||
| ) |
Constructor.
| processName | current process name |
| userRepository | user repository |
| schedulerService | scheduler for periodic token checks |
|
virtualdefault |
|
overridevirtual |
Get all active sessions of a user.
| userName | the username |
Implements lintel::IAuthService.
|
virtual |
Validate an existing user token for access.
| userTokenLogin | token to validate |
Implements lintel::IAuthService.
|
overridevirtual |
Default initialization does nothing; override in subclasses.
Reimplemented from lintel::AbstractService< T >.
Authenticate a user with username and password.
| userLogin | login credentials |
Implements lintel::IAuthService.
|
overridevirtual |
Log out and invalidate a user token.
| userToken | token to invalidate |
Implements lintel::IAuthService.
|
overridevirtual |
Default shutdown does nothing; override in subclasses.
Reimplemented from lintel::AbstractService< T >.
Revoke a session by its token id.
| id | the token id to revoke |
Implements lintel::IAuthService.