DEV Community

Discussion on: Protecting Azure Functions with API Management Service

Collapse
 
ib1 profile image
Igor Bertnyk

"validate-jwt" policy allows only one Identity Provider, either Oauth or OIDC. So I think only one provider allowed per API.
It makes sense from the APIM point of view, as you usually use it to expose API to one client at a time.
Two way that I can see:

  • expose different endpoint for every provider
  • or make Auth dependent on some other header using "when condition" policy E.g. when header "x-client"=Google use "jwt policy for Google"