
Public Member Functions | |
| def | __call__ (self, context, callback) |
| def | __init__ (self, access_token) |
Private Attributes | |
| _access_token | |
| def grpc._auth.AccessTokenAuthMetadataPlugin.__init__ | ( | self, | |
| access_token | |||
| ) |
| def grpc._auth.AccessTokenAuthMetadataPlugin.__call__ | ( | self, | |
| context, | |||
| callback | |||
| ) |
Implements authentication by passing metadata to a callback.
This method will be invoked asynchronously in a separate thread.
Args:
context: An AuthMetadataContext providing information on the RPC that
the plugin is being called to authenticate.
callback: An AuthMetadataPluginCallback to be invoked either
synchronously or asynchronously.
Reimplemented from grpc.AuthMetadataPlugin.
|
private |