Client: ClientOAuth2Handler

Isolated

Defines the OAuth2 handler for client authentication.

Constructor

Initializes the OAuth2 handler for client authentication.

init (OAuth2GrantConfig config)

Remote Methods

enrich

Enriches the headers with the relevant authentication requirements.

enrich

function enrich(map<string | string[ ]> headers) returns map<string | string[ ]> | ClientAuthError
Isolated Function
Remote Function

Enriches the headers with the relevant authentication requirements.

Parameters

  • headers map<string | string[ ]>
  • The map<string|string[]> headers map as an input

Return Type

(map<string | string[ ]> | ClientAuthError)

The updated map<string|string[]> headers map instance or else a grpc:ClientAuthError in case of an error