When developing API-software in an API-first world, the user experience is important. When developing APIs and leveraging the API ecosystem, you will see that providing a great developer experience and great documentation is key to running a successful API. Azure API Management comes with a dedicated Developer Portal out-of-the-box. With the Developer Portal, app developers and other end users can see documentation, play with your API, manage subscriptions, and much more.
In my last blog post, I talked about how to shield the Developer Portal from anonymous users. In this blog post, I will go a step further and show you how to customize the Developer Portal even more: step 1 will show how to tailor individual widgets in the Developer Portal to authenticated users. In step 2, I will show how to show customized content to unauthorized/anonymous users
Often, you want to show different content to authorized and unauthorized users. For instance, you want to display information about the user signup process, subscription benefits, etc to unauthorized users. Authorized users, on the other hand, would benefit from other types of information (like uptime updates). But how do you do this?
The layout of widgets in the Developer Portal is managed via the Publisher Portal. So let’s take a look at how to show a special banner widget to authorized users:
Now that we know how to show specialized content to authorized users, we want to take it a step further and show specialized content to anonymous (unauthorized) users:
In this blog post, I’ve shown how to individualize content widgets in the Developer Portal to authorized and anonymous users respectively. This was done via the Publisher Portal and using the “authorized” and “not authorized” Layer Rules.
Let me know in the comments how you customize the Developer Portal in Azure API Management.
3Azure API Management news at Ignite 2021: Event Grid, GraphQL and WebSockets
AZURE NEWS: Azure API Management Premium tier price reduction for incremental purchased units
BUILD 2021 NEWS: “Native support for WebSocket APIs in Azure API Management”
AZURE NEWS: “Prevent Shared Key authorization for an Azure Storage account”
Azure API Management updates – October 2020