Class OAuth2HttpAuthorizer Implements OAuth2 authentication method.
More...
#include <OAuth2HttpAuthorizer.hpp>
Class OAuth2HttpAuthorizer Implements OAuth2 authentication method.
- Todo:
- Current implementation is Google specific.
OpenAB::OAuth2HttpAuthorizer::OAuth2HttpAuthorizer |
( |
| ) |
|
OpenAB::OAuth2HttpAuthorizer::~OAuth2HttpAuthorizer |
( |
| ) |
|
|
virtual |
Destructor, virtual by default.
Obtains new access token, based on provided data.
- Parameters
-
[in] | clientId | id of client application |
[in] | clientSecret | secret of client application |
[in] | refreshToken | user refresh token |
- Returns
- true if new access token was obtained successfully, false otherwise.
bool OpenAB::OAuth2HttpAuthorizer::authorizeMessage |
( |
HttpMessage * |
msg | ) |
|
|
virtual |
Authorizes message.
- Parameters
-
msg | message to be authorized. |
- Returns
- true if message was authorized successfully, false otherwise.
Implements OpenAB::HttpAuthorizer.
The documentation for this class was generated from the following files: