question

dwang-4068 avatar image
0 Votes"
dwang-4068 asked SnehaAgrawal-MSFT edited

how to use certificate to call an API from custom policy

I need to call an API from custom policy of azure AD B2C. How do I configure the custom policy to use certificate and password for it?
Thanks.
dairong

azure-ad-b2c
· 1
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

need to do something like this:
https://mrochon.azurewebsites.net/2019/05/06/using-groups-in-azure-ad-b2c/#respond
but I need to use certificates to connect to an API. how to do it?

0 Votes 0 ·

1 Answer

alfredorevilla-msft avatar image
0 Votes"
alfredorevilla-msft answered

Hello @dwang-4068, the referred article shows how to create a REST API and consume it from B2C custom policies. Certificate authentication does not require an external password since it relies on the certificate key pair. Please follow the steps detailed in HTTPS client certificate authentication to implement it in your policies.



Let us know if this answer was helpful to you or if you need additional assistance. If it was helpful, please remember to accept it so that others in the community with similar questions can more easily find a solution.

5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.