Public Member Functions | List of all members
grpc.AuthMetadataPlugin Class Reference
Inheritance diagram for grpc.AuthMetadataPlugin:
Inheritance graph
[legend]

Public Member Functions

def __call__ (self, context, callback)
 

Detailed Description

A specification for custom authentication.

Definition at line 617 of file src/python/grpcio/grpc/__init__.py.

Member Function Documentation

◆ __call__()

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.


The documentation for this class was generated from the following file:


grpc
Author(s):
autogenerated on Fri May 16 2025 03:03:30