0
votes

Can we use OAuth in Azure APIM - Consumption or Basic tier ?

https://docs.microsoft.com/en-us/azure/api-management/api-management-howto-protect-backend-with-aad

1

1 Answers

0
votes

OAuth option is presented in all tiers since it allows you to associate API with OAuth server and that information is used when you export API definition (OpenAPI spec).

But that is all irrelevant for backend security, since auth servers you register only affect API definition and used in test console in Developer portal.

If you really want APIM to rely on OAuth to authenticate backend call you'll need to either provision and rotate token manually and use, for example, set-header policy to add it to every request, or implement full OAuth flow using send-request policy. That is pretty clunky to do.

So a better option would be to rely on client certificates:https://docs.microsoft.com/en-us/azure/api-management/api-management-howto-mutual-certificates