Cloud API Management OAuth2 Backend Authentication Custom Policy
- Starting with version 6.3.0, the Cloud API Management OAuth2 Backend Authentication custom policy is available in both Boomi Cloud API Management and Boomi Cloud API Management – Local Edition.
- The
scopeparameter (Local Edition only) is supported only in Boomi Cloud API Management – Local Edition 6.3.0 and later. It is not supported in Boomi Cloud API Management. Refer to Configuration Values for more information.
The policy allows you to secure target requests using OAuth access tokens obtained from customer-provided OAuth token endpoint details. It caches the obtained OAuth token to reduce the number of OAuth calls for every target request, improving performance and efficiency during subsequent requests.
Description
-
This feature secures APIs using access tokens obtained from a customer-specified OAuth Token Server Endpoint
-
The policy first checks the cache for an existing access token. If found, it uses this token to augment the target request with the authorization request header.
-
If the access token is not present, the policy requests one from the configured token endpoint and caches the provided token.
-
If introspection details are provided in the post-process, the policy also introspects the token to obtain the updated TTL from the introspect response(Time To Live) and overrides the
defaultTtLset in the cache during pre-processing. -
You must enable Post-processing even when introspect is not required for TTL and 401 error processing.
-
The priority of the cached token TTL is
expires_inreceived in the token endpoint, followed by expiry calculated by the introspect response, and then thedefaultTtl.