Basic authentication module.
More...
#include <WsBasicAuth.h>
|
bool | ipValid (std::string ip) |
| return true or false whether the ip is valid (ie match the mask in the configuration file More...
|
|
Basic authentication module.
Definition at line 27 of file WsBasicAuth.h.
WsBasicAuth::WsBasicAuth |
( |
| ) |
|
int WsBasicAuth::authentify |
( |
const std::string & |
uid, |
|
|
const std::string & |
pass = "" , |
|
|
const std::string & |
ip = "" |
|
) |
| |
|
virtual |
authenticate the user this function is a basic function and will authenticate any user and add the group "Guest to his groups"
- Parameters
-
uid | the uid of the user |
pass | the password of the user |
ip | the ip of the user |
- Returns
- SUCCESS or FAILURE
Implements WsAbstractAuth.
Definition at line 37 of file WsBasicAuth.cpp.
set< string > WsBasicAuth::getAllGroups |
( |
| ) |
|
|
virtual |
string WsBasicAuth::getEmail |
( |
| ) |
|
|
virtual |
string WsBasicAuth::getFirstName |
( |
| ) |
|
|
virtual |
string WsBasicAuth::getSurname |
( |
| ) |
|
|
virtual |
string WsBasicAuth::getUid |
( |
| ) |
|
|
virtual |
set< string > WsBasicAuth::getUserGroups |
( |
| ) |
|
|
virtual |
bool WsBasicAuth::ipValid |
( |
std::string |
ip | ) |
|
|
protected |
return true or false whether the ip is valid (ie match the mask in the configuration file
- Parameters
-
Definition at line 79 of file WsBasicAuth.cpp.
std::set<std::string> WsBasicAuth::m_allGroups |
|
private |
std::string WsBasicAuth::m_dn |
|
private |
std::string WsBasicAuth::m_email |
|
private |
std::set<std::string> WsBasicAuth::m_groups |
|
private |
std::string WsBasicAuth::m_ip |
|
private |
std::string WsBasicAuth::m_name |
|
private |
std::string WsBasicAuth::m_surname |
|
private |
std::string WsBasicAuth::m_uid |
|
private |
The documentation for this class was generated from the following files:
- /Users/benoitdaccache/Documents/Dropbox/Programming/Ws/wscore/src/WsAuthModules/BasicAuth/src/WsBasicAuth.h
- /Users/benoitdaccache/Documents/Dropbox/Programming/Ws/wscore/src/WsAuthModules/BasicAuth/src/WsBasicAuth.cpp