|
Google APIs Client Library for C++
|
A data object containing specifying the client information to present to the OAuth 2.0 server. More...
#include "client/auth/oauth2_authorization.h"
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. | |
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.
| OAuth2ClientSpec | ( | ) |
Standard constructor.
| ~OAuth2ClientSpec | ( | ) |
Standard destructor.
| 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.
| 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.