I have setup a user flow in Azure AD B2C. The resulting id_token is a jwt. But how can I verify the signature of that JWT on the API that needs to be protected by this JWT?
Here is an example JWT:
{
"typ": "JWT",
"alg": "RS256",
"kid": "X5eXk4xyojNFum1kl2Ytv8dlNP4-c57dO6QGTVBwaNk"
}
{
"exp": 1587973546,
"nbf": 1587969946,
"ver": "1.0",
"iss": "https://appmanager2020.b2clogin.com/903e0c59-0e1d-4769-8a57-0caba1f56999/v2.0/",
"sub": "f11eaa2e-0bad-400a-864f-57f9daa70999",
"aud": "8ab24fa8-a5f2-4f7d-a1ad-31f21d7f999",
"nonce": "123456",
"iat": 1587969946,
"auth_time": 1587969946,
"idp": "https://sts.windows.net/903e0c59-0e1d-4769-8a57-0caba1f56999/",
"oid": "f11eaa2e-0bad-400a-864f-57f9daa70999",
"emails": [
"some@email.com"
],
"tfp": "B2C_1_some_employee_flow"
}
I tried this URL without luck: