DocuSign.Connection.Request (DocuSign v2.2.1)

View Source

Handle Tesla connections.

Summary

Functions

Configure a client connection for both JWT impersonation and OAuth2 tokens.

Functions

new(map)

@spec new(%{app_account: map(), client: OAuth2.Client.t()}) :: Tesla.Env.client()

Configure a client connection for both JWT impersonation and OAuth2 tokens.

This function pattern matches on the connection struct to determine whether to use JWT tokens (from ClientRegistry) or OAuth2 tokens (from authorization code flow).

Returns

Tesla.Env.client