Getting started Community Training Tutorials Documentation APIs, AI & Tools
- policyRef:
name: credential-injection-oauth2-flex
config:
oauthService: <string> // REQUIRED
grantType: <string> // REQUIRED, supported values: clientCredentials or password
credentialLocation: <string> // REQUIRED, supported values: body or header
clientId: <string> // REQUIRED for clientCredentials grant type
clientSecret: <string> // REQUIRED for clientCredentials grant type
username: <string> // REQUIRED for password grant type
password: <string> // REQUIRED for password grant type
scope:
- <string> // OPTIONAL
overwrite: <boolean> // REQUIRED
tokenFetchTimeout: <number> // REQUIRED
allowRequestWithoutCredential: <boolean> // REQUIRED
tokenRequestBodyFormat: <string> // REQUIRED, supported values: json or urlEncoded
upstreamTokenHeaderName: <string> // OPTIONAL
upstreamTokenPrefixName: <string> // OPTIONAL
cachingTtl: <number> // REQUIRED
customRequestHeaders: // OPTIONAL
- name: <string>
value: <string>
customRequestBodyParameters: // OPTIONAL
- name: <string>
value: <string> // string or DataWeave expression



