authMethod selects how the secret reaches the token endpoint:
client_secret_post(default) —client_idandclient_secretin the POST body. Unchanged from earlier releases.client_secret_basic— an RFC 6749 §2.3.1 HTTP BasicAuthorizationheader. Nothing secret goes in the body.
Extends
ClientCredentialsBaseOptions
Properties
algorithm?
authMethod?
client_secret_post.
clientId
Inherited from
clientSecret
privateKey?
refreshBufferSeconds?
Inherited from
scope?
Inherited from
store?
tokenEndpoint alone, with no client identity in it — use one store per
credential identity. Do not share a persistent store across two
ClientCredentials instances that have different clientId/clientSecret/
privateKey but the same tokenEndpoint; they will read and overwrite
each other’s cached tokens.