Class CallCredentialsAbstract

A class that represents a generic method of adding authentication-related metadata on a per-request basis.

Hierarchy

  • CallCredentials

Constructors

Methods

  • Check whether two call credentials objects are equal. Separate SingleCallCredentials with identical metadata generator functions are equal.

    Parameters

    Returns boolean

  • Creates a new CallCredentials object from properties of both this and another CallCredentials object. This object's metadata generator will be called first.

    Parameters

    Returns CallCredentials

  • Asynchronously generates a new Metadata object.

    Parameters

    • options: CallMetadataOptions

      Options used in generating the Metadata object.

    Returns Promise<Metadata>

  • Create a gRPC credential from a Google credential object.

    Returns

    The resulting CallCredentials object.

    Parameters

    • googleCredentials: OAuth2Client

      The authentication client to use.

    Returns CallCredentials

  • Creates a new CallCredentials object from a given function that generates Metadata objects.

    Parameters

    • metadataGenerator: CallMetadataGenerator

      A function that accepts a set of options, and generates a Metadata object based on these options, which is passed back to the caller via a supplied (err, metadata) callback.

    Returns CallCredentials

Generated using TypeDoc