This API documentation is for Ballerina 1.2.0. View API documentation for the latest release.

Record - oauth2 : DirectTokenConfig

The data structure, which is used to configure the OAuth2 access token directly.

Closed record


  • accessToken string
  • Access token for the authorization endpoint

  • clockSkewInSeconds int (default 0)
  • Clock skew in seconds

  • retryRequest boolean (default true)
  • Retry the request if the initial request returns a 401 response

  • credentialBearer CredentialBearer (default http:AUTH_HEADER_BEARER)
  • Bearer of the authentication credentials, which is sent to the authorization endpoint