|
Google APIs Client Library for C++
|
A concrete OAuth2TokenRequest for revoking access and refresh tokens. More...
#include "client/auth/oauth2_authorization.h"
Inheritance diagram for OAuth2RevokeTokenRequest:Public Member Functions | |
| OAuth2RevokeTokenRequest (HttpTransport *transport, const OAuth2ClientSpec *client, ThreadsafeString *token) | |
| Constructs the request. | |
| virtual util::Status | Execute () |
| Asks the OAuth 2.0 server to revoke the token. | |
A concrete OAuth2TokenRequest for revoking access and refresh tokens.
| OAuth2RevokeTokenRequest | ( | HttpTransport * | transport, |
| const OAuth2ClientSpec * | client, | ||
| ThreadsafeString * | token | ||
| ) |
Constructs the request.
The caller retains ownership to all parameters. The instance will be using these pointers so the caller must keep them valid over the lifetime of the request.
| [in] | transport | Transport instance to use. |
| [in] | client | Client specification. |
| [in] | token | The token to revoke. |
| virtual util::Status Execute | ( | ) | [virtual] |
Asks the OAuth 2.0 server to revoke the token.
This will clear the token given the the constructor on success.
Implements OAuth2TokenRequest.