Record: PasswordGrantConfig
Represents the data structure, which is used to configure the OAuth2 password grant type.
Fields
- tokenUrl string
- username string
- password string
- clientId string?
- clientSecret string?
- scopes string[ ]?
- refreshConfig record {| refreshUrl string, scopes string[ ], optionalParams map<string>, credentialBearer CredentialBearer, clientConfig ClientConfiguration |}?
- defaultTokenExpTime decimal(default 3600)
- clockSkew decimal(default 0)
- optionalParams map<string>?
- credentialBearer CredentialBearer(default AUTH_HEADER_BEARER)
- clientConfig ClientConfiguration(default {})
Token URL of the token endpoint
Username for the password grant type
Password for the password grant type
Client ID of the client authentication
Client secret of the client authentication
Scope(s) of the access request
Configurations for refreshing the access token
Expiration time (in seconds) of the tokens if the token endpoint response does not contain an expires_in
field
Clock skew (in seconds) that can be used to avoid token validation failures due to clock synchronization problems
Map of the optional parameters used for the token endpoint
Bearer of the authentication credentials, which is sent to the token endpoint
HTTP client configurations, which are used to call the token endpoint