
Public Member Functions | |
| def | __call__ (self, context, callback) |
A specification for custom authentication.
Definition at line 617 of file src/python/grpcio/grpc/__init__.py.
| def grpc.AuthMetadataPlugin.__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 in tests.unit._contextvars_propagation_test.TestCallCredentials, tests.unit._contextvars_propagation_test.TestCallCredentials, grpc._auth.AccessTokenAuthMetadataPlugin, grpc._auth.GoogleCallCredentials, and customized_auth_client.AuthGateway.
Definition at line 620 of file src/python/grpcio/grpc/__init__.py.