Azure APIM: Parse and cache jwt token for backend service calls

Caching is an important design and development principle and helps greatly with high performant systems/ APIs etc. Today I want to discuss how we can leverage Azure APIM internal caching capabilities for caching oauth token for reuse while calling any backend services that has OAuth enabled. A simple use case might look like this: but … Continue reading Azure APIM: Parse and cache jwt token for backend service calls

Securing Azure APIM with any third party OAuth provider like Auth0 or Okta

OAuth (Open Authorization) is an open standard for token-based authentication and authorization on the Internet.  Many APIs support OAuth 2.0 to secure the API and ensure that only valid users have access, and they can only access resources to which they’re entitled. Microsoft docs has a well written article on how to protect an API using OAuth with AAD … Continue reading Securing Azure APIM with any third party OAuth provider like Auth0 or Okta

RESTify your Gremlin .NET API using Azure function

Azure Cosmos DB is the globally distributed, multi-model database service from Microsoft for mission-critical applications. It is a multi-model database and supports document, key-value, graph, and column-family data models. The Azure Cosmos DB Gremlin API is used to store and operate with graph data on a fully managed database service designed for any scale. I … Continue reading RESTify your Gremlin .NET API using Azure function

Configure token lifetimes for Azure Active Directory Registered Apps – Oauth validity for your APIM

Azure APIM comes with Oauth authentication feature for your APIs. The way we configure is here. By default the token validity for the registered apps is 60 minutes. This long validity may not be acceptable under certain use cases. Azure comes with the possibility to configure the token life time with a limit window of … Continue reading Configure token lifetimes for Azure Active Directory Registered Apps – Oauth validity for your APIM

CI/CD for Azure resources(eg:Logic Apps)using Azure DevOps

With Azure DevOps microsoft has taken the developer experience to a whole new level. For the past couple for months I was wondering what could be the most efficient and seamless and more importantly more logical way of doing the developments fast and easy and yet making sure that your deployments are also aligned. With … Continue reading CI/CD for Azure resources(eg:Logic Apps)using Azure DevOps

Azure DevOps

Azure Pipelines – CI/CD for any language, platform and cloud. Azure Boards – Agile tools, work item management through backlogs, Kanban boards, sprints, reporting Azure Artifacts – Maven, NuGet, Jenkins, or other public or private feeds Azure Repos – Distributed version control via Git repos and centralised source control via TFVC Azure Test Plans – … Continue reading Azure DevOps

Azure APIM : Setting query parameter in send-request policy ?

Building composite service in Azure APIM is easy and is facilitated by send-request policy in order. However send request policy only allows : Url set Header set Body set Method set But there are numerous cases where we want to set query parameter and since its not allowed as a policy expression it becomes confusing. … Continue reading Azure APIM : Setting query parameter in send-request policy ?

Azure APIM : set-body ? .NET expressions | JSON construct

Azure APIM enables us to use a wide range of policies that helps in building APIs, change and orchestrate the behaviour of your API and many more. set-body set-body is one such policy that can be used in inbound and outbound policy expressions. Use the set-body policy to set the message body for incoming and outgoing requests. … Continue reading Azure APIM : set-body ? .NET expressions | JSON construct

Azure APIM + EventHubs + StreamAnalytics + Blob storage : Scalable logging solution for your apis

Implementing logging options on your APIs is an important design decision. And keeping the design scalable is important. Azure APIM comes with Log Analytics integration and you can enable it for your APIs but this comes with a caution that under load your APIs will start performing as bad as 40% down because of the … Continue reading Azure APIM + EventHubs + StreamAnalytics + Blob storage : Scalable logging solution for your apis