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
Comments