diff options
author | 2015-07-09 12:32:48 -0700 | |
---|---|---|
committer | 2015-07-09 12:32:48 -0700 | |
commit | 3315a845efaf2116cce6184b459f8bb4e642bdde (patch) | |
tree | 47ca40731d6f9ba689a060f1734738769ed4d35e /include/grpc++/credentials.h | |
parent | f9e8e59b1c113b614736b89cb2cb4e543ba82d9f (diff) | |
parent | 494886a1be23865af7eb223b1a190fb9d2e2cc30 (diff) |
Merge remote-tracking branch 'upstream/master' into security_context2
Diffstat (limited to 'include/grpc++/credentials.h')
-rw-r--r-- | include/grpc++/credentials.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/include/grpc++/credentials.h b/include/grpc++/credentials.h index 7a40cd199d..0eaaefcbca 100644 --- a/include/grpc++/credentials.h +++ b/include/grpc++/credentials.h @@ -120,6 +120,12 @@ std::shared_ptr<Credentials> JWTCredentials(const grpc::string& json_key, std::shared_ptr<Credentials> RefreshTokenCredentials( const grpc::string& json_refresh_token); +// Builds access token credentials. +// access_token is an oauth2 access token that was fetched using an out of band +// mechanism. +std::shared_ptr<Credentials> AccessTokenCredentials( + const grpc::string& access_token); + // Builds IAM credentials. std::shared_ptr<Credentials> IAMCredentials( const grpc::string& authorization_token, |