Why doesn’t the PingFederate OAuth 2.0 Token Enforcement policy appear in the list of policies to apply to the API?
If the policy does not appear in the policies list, ensure that you have configured the PingFederate client provider in Access Management. For information, see
Configure PingFederate Client Management. If you are using multiple IdPs, verify that the PingFederate client is properly configured in the API.
Can I generate OAuth2 tokens with the policy?
No. The policy only validates the tokens.
How does the policy manage the credentials to communicate with the validation endpoint?
Where are the OAuth tokens cached?
OAuth2 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 control 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 PingFederate Access Token Enforcement policy?
Yes, you can. Apply the Rate-Limiting SLA policy after the PingFederate Access Token Enforcement 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 PingFederate Access Token Enforcement policy, you can leave the Client Secret Expression field empty.