An Azure service that provides a hybrid, multi-cloud management platform for APIs.
ADB2C and APIM
Abhay Chandramouli
1,061
Reputation points
Hi,
I am trying to validate ADB2C Token using validate-jwt in Azure API Management.
Code:
<validate-jwt token-value="@(context.Variables.GetValueOrDefault<string>("b2cTokenValue"))" failed-validation-httpcode="401" failed-validation-error-message="Unauthorized" require-expiration-time="true" require-signed-tokens="true">
<openid-config url="@(context.Variables.GetValueOrDefault<string>("well-known-ep"))" />
<audiences>
<audience>{{audience-1}}</audience>
<audience>{{audience-2}}</audience>
</audiences>
<issuers>
<issuer>{{adb2c-issuer}}</issuer>
</issuers>
</validate-jwt>
Result:
Can you please help me ?
Azure API Management
Azure API Management
Microsoft Security | Microsoft Entra | Microsoft Entra ID
Microsoft Security | Microsoft Entra | Microsoft Entra ID
A cloud-based identity and access management service for securing user authentication and resource access
Sign in to answer