This article applies to APIs protected by the OpenID Connect Access Token Enforcement policy where the external OIDC client provider is Microsoft Entra ID (Azure AD) — the most common OIDC provider used with Anypoint. Customers often ask whether rotating a client secret will cause downtime, or whether the old and new secrets can be valid at the same time.
They can. When you rotate a client secret, the old and new secrets can be active simultaneously on the provider, so rotation causes no downtime — consumers keep working on the old secret while they are migrated to the new one.
This is because, with this policy, the consumer sends only a bearer token to the Mule API — never the client_id/secret. The secret is used only at the IdP token endpoint to obtain a token. So while both secrets are valid:
- An app still on the old secret can keep getting tokens with it.
- An app updated to the new secret immediately starts getting tokens with the new secret.
Both work in parallel, so there is no cutover moment where traffic breaks.
Both rotation methods add a new secret without removing the old one:
1. Add a new secret on the provider (Azure) side, or
2. Rotate from the Anypoint Platform client application settings.
Either way, the previous secret stays valid until you explicitly remove it (or it expires).
Recommended zero-downtime steps:
1. Add the new secret — do not delete the old one yet.
2. Update each consuming app to the new secret. It immediately starts acquiring tokens with the new secret.
3. Once all apps are on the new secret, remove the old one.
005460260

We use three kinds of cookies on our websites: required, functional, and advertising. You can choose whether functional and advertising cookies apply. Click on the different cookie categories to find out more about each category and to change the default settings.
Privacy Statement
Required cookies are necessary for basic website functionality. Some examples include: session cookies needed to transmit the website, authentication cookies, and security cookies.
Functional cookies enhance functions, performance, and services on the website. Some examples include: cookies used to analyze site traffic, cookies used for market research, and cookies used to display advertising that is not directed to a particular individual.
Advertising cookies track activity across websites in order to understand a viewer’s interests, and direct them specific marketing. Some examples include: cookies used for remarketing, or interest-based advertising.