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

Public Member Functions

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

Private Attributes

 _credentials
 
 _is_jwt
 

Detailed Description

Metadata wrapper for GoogleCredentials from the oauth2client library.

Definition at line 26 of file _auth.py.

Constructor & Destructor Documentation

◆ __init__()

def grpc._auth.GoogleCallCredentials.__init__ (   self,
  credentials 
)

Definition at line 29 of file _auth.py.

Member Function Documentation

◆ __call__()

def grpc._auth.GoogleCallCredentials.__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 36 of file _auth.py.

Member Data Documentation

◆ _credentials

grpc._auth.GoogleCallCredentials._credentials
private

Definition at line 30 of file _auth.py.

◆ _is_jwt

grpc._auth.GoogleCallCredentials._is_jwt
private

Definition at line 33 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