Applying policies without the proxy

It is fairly easy to apply policies to your proxied API hosted in Anypoint Platform: you just create a proxy and then apply runtime policies as the platform manages some things for you. What about applying policies but without using a proxy?

In one of our projects, we needed to apply HTTP Basic Authentication policy to the endpoint. The solution consists of two steps:

  1. Use Auto-Discovery element to link your flows with the created API in Anypoint Platform
  2. Link your application running in Anypoint Platform with your Anypoint Organization
    1. Get your client_id, client_secret as described in Step 1 here
    2. Go to Runtime Manager in Anypoint Platform
    3. Choose your application from the list and click Manage Application button
    4. Click Properties tab
    5. Enter following data:
    6. Redeploy your application
about author



Tech corner with orange background

Angular, Gatsby, Astro? Pretty hot, huh?

Hello readers! Just as we do every month, we’ve pulled …

Hotovo tech corner

The Latest Tips, News, and New Features in the World of Web Development

Hello readers! Just as we do every month, we’ve pulled …

Asynchronous programming Hotovo tech corner

Asynchronous Programming World (Part 1)

What will this multi-episode blog post be about? In short: …