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

Public Member Functions

def __call__ (self, context, callback)
 
def __init__ (self, access_token)
 

Private Attributes

 _access_token
 

Detailed Description

Metadata wrapper for raw access token credentials.

Definition at line 51 of file _auth.py.

Constructor & Destructor Documentation

◆ __init__()

def grpc._auth.AccessTokenAuthMetadataPlugin.__init__ (   self,
  access_token 
)

Definition at line 54 of file _auth.py.

Member Function Documentation

◆ __call__()

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.

Definition at line 57 of file _auth.py.

Member Data Documentation

◆ _access_token

grpc._auth.AccessTokenAuthMetadataPlugin._access_token
private

Definition at line 55 of file _auth.py.


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


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