Client Id Enforcement Policy in Mule 4
Client enforcement policy authenticates our API on the basis of client id and client secret of our API.
For this, go to API Manager > click on API version on which you want to apply policy
go to: Policies > Apply new policy
Select client enforcement policy, select suitable version and click on configure policy.
Click on Apply.
Now for getting API client ID and client secret,
go to: Exchange > click on API proxy application > Request access.
On clicking Request access, a window opens
Select API instance from drop down.
In Application, select create application.
Give Application name, other things are optional, click on create.
Then click on Request Access
This will give you the client id and client secret.
You can see your client application in API Manager.
Go to: API Manager > Client applications
There you can see your application. You can click on the application to view API client id and client secret from there also.
There you can see your application. You can click on the application to view API client id and client secret from there also.
When you will hit proxy URL, it will ask for client credentials.
(Since Policies apply to proxy URL only and not to original URL.)
(Since Policies apply to proxy URL only and not to original URL.)