Can I generate OAuth 2.0 tokens with the policy?
No. The policy only validates the tokens.
Can I use other OAuth providers with the policy?
No. This policy is designed to work exclusively with the Mule OAuth provider. Using the policy with any other OAuth provider (for example, Facebook, Google, or Azure) is not supported.
What should I do if the Mule OAuth provider validation endpoint is rejecting the requests sent by the policy?
If the validation endpoint is rejecting requests, verify whether the URL configured in the policy is reachable from the machine where the policy is running and that no authentication is required to successfully complete the request. If your use case requires the validation endpoint to be protected, you can switch to the Open ID Connect policy.
Where are the OAuth tokens cached?
OAuth 2.0 tokens are cached only in memory and are never written to disk.
Does the policy communicate with Anypoint Platform on a per-request basis?
No, the policy uses client applications previously retrieved by Mule runtime engine.
This enables the policy to continue working even if the connection with the management plane is lost. If you want the client application information that is written on disk to be encrypted, configure gateway encryption in your runtime.
Can I configure the Rate-Limiting SLA policy after I configure the OAuth 2.0 Access Token Enforcement using Mule OAuth Provider policy?
Yes, you can. Apply the Rate-Limiting SLA policy after the OAuth 2.0 access token enforcement using Mule OAuth provider policy and provide a Client ID Expression value using the following DataWeave 2.0 expression:
#[authentication.principal]
Because the identity of the requester is already validated by the OAuth 2.0 Access Token Enforcement using Mule OAuth Provider policy, you can leave the Client Secret Expression field empty.