Google APIs Client Library for C++
OAuth2ClientSpec Class Reference

A data object containing specifying the client information to present to the OAuth 2.0 server. More...

#include "client/auth/oauth2_authorization.h"

List of all members.

Public Member Functions

 OAuth2ClientSpec ()
 Standard constructor.
 ~OAuth2ClientSpec ()
 Standard destructor.
const string & client_id () const
 Returns the client ID.
void set_client_id (const StringPiece &id)
 Sets the client ID.
const string & client_secret () const
 Returns the client secret.
void set_client_secret (const StringPiece &secret)
 Sets the client secret.
const string & redirect_uri () const
 Returns the redirect url.
void set_redirect_uri (const StringPiece &uri)
 Sets the redirect url.
const string & auth_uri () const
 Returns the url for requesting an OAuth2 Authorization Code for this service.
void set_auth_uri (const StringPiece &uri)
 Sets the url for requesting an OAuth2 Authorization Code for this service.
const string & token_uri () const
 Returns the url for requesting an OAuth2 Access Token for this service.
void set_token_uri (const StringPiece &uri)
 Sets the url for requesting an OAuth2 Access Token for this service.
const string & revoke_uri () const
 Returns url for revoking an OAuth2 Access Token for this service.
void set_revoke_uri (const StringPiece &uri)
 Sets the url for revoking an OAuth2 Access Token for this service.

Detailed Description

A data object containing specifying the client information to present to the OAuth 2.0 server.

Normally this class is created by OAuth2AuthorizationFlow::InitFromJsonData() and not created directly. The various attribute values come from the Google APIs console when registering the application.

See also:
OAuth2AuthorizationFlow::InitFromJsonData()

Constructor & Destructor Documentation

Standard constructor.

Standard destructor.


Member Function Documentation

const string& auth_uri ( ) const [inline]

Returns the url for requesting an OAuth2 Authorization Code for this service.

const string& client_id ( ) const [inline]

Returns the client ID.

const string& client_secret ( ) const [inline]

Returns the client secret.

const string& redirect_uri ( ) const [inline]

Returns the redirect url.

const string& revoke_uri ( ) const [inline]

Returns url for revoking an OAuth2 Access Token for this service.

void set_auth_uri ( const StringPiece &  uri) [inline]

Sets the url for requesting an OAuth2 Authorization Code for this service.

void set_client_id ( const StringPiece &  id) [inline]

Sets the client ID.

void set_client_secret ( const StringPiece &  secret) [inline]

Sets the client secret.

void set_redirect_uri ( const StringPiece &  uri) [inline]

Sets the redirect url.

See also:
OAuth2AuthorizationFlow::kOutOfBandUrl
void set_revoke_uri ( const StringPiece &  uri) [inline]

Sets the url for revoking an OAuth2 Access Token for this service.

void set_token_uri ( const StringPiece &  uri) [inline]

Sets the url for requesting an OAuth2 Access Token for this service.

const string& token_uri ( ) const [inline]

Returns the url for requesting an OAuth2 Access Token for this service.


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