Record - oauth2 : ClientCredentialsGrantConfig

The ClientCredentialsGrantConfig record can be used to configue OAuth2 client credentials grant type.

Fields

  • tokenUrl string
  • Token URL for the authorization endpoint

  • clientId string
  • Client ID for the client credentials grant authentication

  • clientSecret string
  • Client secret for the client credentials grant authentication

  • scopes string[]
  • Scope of the access request

  • 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)
  • How authentication credentials are sent to the authorization endpoint

  • clientConfig ClientConfiguration (default {})
  • HTTP client configurations which calls the authorization endpoint