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
3 months agoLorriane
3 months agoUlysses
3 months agoLaila
4 months agoCristy
4 months agoCharlesetta
4 months agoGwen
4 months agoMarnie
4 months agoLonna
5 months agoMammie
5 months agoBrigette
5 months agoGalen
5 months agoRocco
5 months agoNiesha
5 months agoMicah
1 year agoJoanne
11 months agoDewitt
12 months agoSunshine
1 year agoGabriele
12 months agoJamal
12 months agoElfrieda
1 year agoVicky
11 months agoGwenn
11 months agoJunita
12 months agoArdella
12 months agoLasandra
1 year agoLamonica
11 months agoDean
12 months agoAntonio
1 year agoJospeh
1 year agoTiffiny
1 year agoSherita
1 year agoGerman
1 year agoKimbery
1 year agoMaybelle
1 year agoMatthew
1 year ago