Google APIs Client Library for C++
OAuth2InstalledApplicationFlow Class Reference

Manages credentials using OAuth 2.0 installed application flow. More...

#include "client/auth/oauth2_authorization.h"

+ Inheritance diagram for OAuth2InstalledApplicationFlow:

List of all members.

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.

Detailed Description

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.


Constructor & Destructor Documentation

OAuth2InstalledApplicationFlow ( HttpTransport transport) [explicit]
virtual ~OAuth2InstalledApplicationFlow ( ) [virtual]

Member Function Documentation

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.

Parameters:
[in]scopesThe 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.
Returns:
The appropriate URL to HTTP GET.
See also:
RefreshCredentialWithOptions.
GeenrateAuthorizationCodeRequestUrlWithOptions

Reimplemented from OAuth2AuthorizationFlow.

virtual util::Status InitFromJsonData ( const SimpleJsonData *  data) [protected, virtual]

Called by initFromJson.

Reimplemented from OAuth2AuthorizationFlow.


The documentation for this class was generated from the following file:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines