The OpenID Connect Access Token Enforcement policy does not appear in the list of policies to apply to the API.
Can I generate OAuth 2.0 tokens with the policy?
No. The policy only validates the tokens.
What should I do if the Mule OAuth provider validation endpoint is rejecting the requests sent by the policy?
See the validation endpoint documentation provided by the OpenID connect server and verify whether the authentication method described in the Token Validation Endpoint Authentication section is supported.
How does the policy manage the credentials to communicate with the validation endpoint?
How 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 the 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 OpenID Connect Access Token Enforcement policy?
Yes, you can. Apply the Rate-Limiting SLA policy after the OpenID Connect 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 OpenID Connect Access Token Enforcement policy, you can leave the Client Secret Expression field empty.