Client: ClientOAuth2Handler
Isolated
Defines the OAuth2 handler for client authentication.
Constructor
Initializes the OAuth2 handler for client authentication.
init (OAuth2GrantConfig config)
- config OAuth2GrantConfig
OAuth2 refresh token grant configurations
Remote Methods
enrich | Enriches the headers with the relevant authentication requirements. |
enrich
Isolated Function
Remote Function
Enriches the headers with the relevant authentication requirements.
Return Type
(map<string | string[ ]> | ClientAuthError)The updated map<string|string[]>
headers map instance or else a grpc:ClientAuthError
in case of
an error