|
lintel 0.2.0
|
#include <IAuthService.h>
Public Member Functions | |
| virtual | ~IAuthService ()=default |
| virtual std::optional< UserToken > | onLoginOf (const UserLogin &userLogin)=0 |
| virtual std::optional< UserToken > | onAccessOf (const UserTokenLogin &userTokenLogin)=0 |
| virtual void | onLogoutOf (const UserTokenLogin &userToken)=0 |
| virtual std::vector< UserToken > | allTokensOf (const std::string &userName)=0 |
| virtual void | revokeTokenOf (const std::string &id)=0 |
Interface for authentication operations: login, token validation, and logout.
|
virtualdefault |
|
pure virtual |
Get all active sessions of a user.
| userName | the username |
Implemented in lintel::AuthService.
|
pure virtual |
Validate an access token.
| userTokenLogin | token to validate |
Implemented in lintel::AuthService.
|
pure virtual |
Authenticate a user with credentials.
| userLogin | login credentials |
Implemented in lintel::AuthService.
|
pure virtual |
Invalidate a token (logout).
| userToken | token to invalidate |
Implemented in lintel::AuthService.
Revoke a session by its token id.
| id | the token id to revoke |
Implemented in lintel::AuthService.