top of page

Azure Function used as a claim exchanger

Updated: Oct 15, 2021

This blog article shows the claim exchanger Azure function.


Read the article from below to get started with creating a function with NodeJs and TypeScript:



Fig 1 - The function is invoked by creating several headers containing API Management information, headers that are verified on the server-side

Fig 2 - The function is generic and makes calls the appropriate server's API to retrieve the roles claim, based on the application client ID passed into the call

Fig 3 - Make the REST API call

Fig 4 - Create a certificate for the B2C application web site and bind it to the custom domain and Azure function SSL

Fig 5 - Request the certificate's validation when the function is invoked so it will be called just by the policy and the application that is configured to use it

Fig 6 - Upload the function into Azure from Visual Code

65 views0 comments

Recent Posts

See All

Distributed transactions in the Cloud - part II

Last year I worked on several Cloud integrations between various vendor applications used by an educational institution. These integrations make use of a disconnected architecture where a service bus

Distributed transactions in the Cloud - part I

One of the most common problem that a microservice architecture is facing is performing a transaction across multiple services. A distributed architecture is based on a number of small components, fun

  • Facebook profile
  • Twitter profile
  • LinkedIn Profile

©2020 by PlanetIT. Proudly created with Wix.com

bottom of page