|
Robot Raconteur Core C++ Library
|
Base class for user authenticators. More...
#include <Security.h>
Public Member Functions | |
| virtual boost::shared_ptr< AuthenticatedUser > | AuthenticateUser (boost::string_ref username, const std::map< std::string, boost::intrusive_ptr< RRValue > > &credentials, const boost::shared_ptr< ServerContext > &context, const boost::shared_ptr< ITransportConnection > &transport)=0 |
| Authenticate a user using username and credentials. | |
Base class for user authenticators.
Used with ServiceSecurityPolicy to secure services
Override AuthenticateUser to implement different types of user authenticators.
|
pure virtual |
Authenticate a user using username and credentials.
The service will call AuthenticateUser when clients attempt to authenticate. The username and credentials are passed to RobotRaconteurNode::ConnectService() or RobotRaconteurNode::AsyncConnectService(). The authenticator must analyze these values to decide how to authenticate the user.
On successful authentication, return a populated AuthenticatedUser object. On failure, throw an exception.
See Security for more information.
| username | The username provided by the client |
| credentials | The credentials provided by the client |
| context | The context of the service requesting authentication |
Implemented in RobotRaconteur::PasswordFileUserAuthenticator.