An API is protected with a Client ID Enforcement policy and uses the default configuration. Access is requested for the client application to the API, and an approved
contract now exists between the client application and the API
How can a consumer of this API avoid a 401 error "Unauthorized or invalid client application credentials"?
When using the Client ID Enforcement policy with default settings, MuleSoft expects the client_id and client_secret to be provided in the URI parameters of each request. This policy is typically used to control and monitor access by validating that each request has valid credentials. Here's how to avoid a 401 Unauthorized error:
URI Parameters Requirement:
The default configuration for the Client ID Enforcement policy requires the client_id and client_secret to be included in each request's URI parameters. This is a straightforward way to authenticate API requests without additional configurations.
Why Option C is Correct:
Providing client_id and client_secret in the URI parameters meets the policy's requirements for each request, ensuring authorized access and avoiding the 401 error.
of Incorrect Options:
Option A (sending a token in the header) would be applicable for token-based authentication (like OAuth 2.0), not Client ID Enforcement.
Option B (request body) and Option D (header) are not valid locations for client_id and client_secret under the default configuration of Client ID Enforcement, which expects them in the URI.
Reference For more details, consult MuleSoft's documentation on Client ID Enforcement policies and expected request configurations
Jerry
9 months agoLorriane
9 months agoUlysses
10 months agoLaila
10 months agoCristy
10 months agoCharlesetta
10 months agoGwen
11 months agoMarnie
11 months agoLonna
11 months agoMammie
11 months agoBrigette
11 months agoGalen
11 months agoRocco
11 months agoNiesha
11 months agoMicah
2 years agoJoanne
1 year agoDewitt
1 year agoSunshine
2 years agoGabriele
2 years agoJamal
2 years agoElfrieda
2 years agoVicky
1 year agoGwenn
1 year agoJunita
1 year agoArdella
1 year agoLasandra
2 years agoLamonica
1 year agoDean
2 years agoAntonio
2 years agoJospeh
2 years agoTiffiny
2 years agoSherita
2 years agoGerman
2 years agoKimbery
2 years agoMaybelle
2 years agoMatthew
2 years ago