Skip to main content
Version: 1.13.0

Interface: CantonAuthProvider

Defined in: canton/authentication/types.ts:75

An authentication provider for the Canton Ledger API.

Mirrors the Go authentication.Provider interface, adapted for HTTP/JSON API usage (the TS SDK talks to the Canton JSON Ledger API over HTTP/2, not gRPC, so transport/per-RPC credentials collapse into a single token source).

Properties

type

readonly type: CantonAuthType

Defined in: canton/authentication/types.ts:77

The auth scheme this provider was built from.

Methods

tokenSource()

tokenSource(): CantonTokenSource

Defined in: canton/authentication/types.ts:82

Returns a token source that yields valid bearer tokens for the Authorization: Bearer <token> header.

Returns

CantonTokenSource