couchbase-analytics
    Preparing search index...

    Class Credential

    RBAC username/password for authenticating to an Analytics cluster. For a JSON Web Token instead, see JwtCredential.

    Implements

    Index

    Constructors

    Properties

    Constructors

    • Constructs a Credential for an RBAC username and password. The SDK sends Authorization: Basic <base64(user:pass)> on every request.

      Parameters

      • username: string

        The username to authenticate with.

      • password: string

        The password to authenticate with.

      Returns Credential

    Properties

    password: string

    The password to authenticate with.

    username: string

    The username to authenticate with.