Record - oauth2 : PasswordGrantConfig

The `PasswordGrantConfig` record can be used to configue OAuth2 password grant type

Fields

  • tokenUrl string
  • Token URL for the authorization endpoint

  • username string
  • Username for password grant authentication

  • password string
  • Password for password grant authentication

  • clientId string
  • Client ID for password grant authentication

  • clientSecret string
  • Client secret for password grant authentication

  • scopes string[]
  • Scope of the access request

  • refreshConfig RefreshConfig
  • Configurations for refreshing the access token

  • clockSkewInSeconds int 0
  • Clock skew in seconds

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

  • credentialBearer CredentialBearer http:AUTH_HEADER_BEARER
  • How authentication credentials are sent to the authorization endpoint

  • clientConfig ClientEndpointConfig {}
  • HTTP client configurations which calls the authorization endpoint