Google APIs Client Library for C++
|
Manages credentials using OAuth 2.0 installed application flow. More...
#include "client/auth/oauth2_authorization.h"
Public Member Functions | |
OAuth2InstalledApplicationFlow (HttpTransport *transport) | |
virtual | ~OAuth2InstalledApplicationFlow () |
virtual string | GenerateAuthorizationCodeRequestUrl (const StringPiece &scope) const |
Returns a URL to the OAuth 2.0 server requesting a new Authorization Code. | |
Protected Member Functions | |
virtual util::Status | InitFromJsonData (const SimpleJsonData *data) |
Called by initFromJson. |
Manages credentials using OAuth 2.0 installed application flow.
This is a specialization of OAuth2Authorization flow.
It does not add anything beyond that which is already in the base class, however this will be the class created for "installed" application flows for future maintainability.
OAuth2InstalledApplicationFlow | ( | HttpTransport * | transport | ) | [explicit] |
virtual ~OAuth2InstalledApplicationFlow | ( | ) | [virtual] |
virtual string GenerateAuthorizationCodeRequestUrl | ( | const StringPiece & | scopes | ) | const [virtual] |
Returns a URL to the OAuth 2.0 server requesting a new Authorization Code.
This method is only intended when manually implementing flows.
[in] | scopes | The desired scopes. If more than one scope is desired then this should be a ' '-delimited string. The scope values are specified by the specific service you wish to get authorization to access. |
Reimplemented from OAuth2AuthorizationFlow.
virtual util::Status InitFromJsonData | ( | const SimpleJsonData * | data | ) | [protected, virtual] |
Called by initFromJson.
Reimplemented from OAuth2AuthorizationFlow.