Share via

Azure AD authentication for Azure Function

kulmit bhambra 21 Reputation points
2020-12-02T17:56:19.417+00:00

Hi,
We're working on an Azure Function that needs to authenticate against Azure AD. User interaction is not required. We've had some discussions around the best way to do this:

  1. Use the built-in App Service authentication and authorization support (https://learn.microsoft.com/en-us/azure/app-service/overview-authentication-authorization).
  2. Use Microsoft's OAuth 2.0 client credentials flow (https://learn.microsoft.com/en-us/azure/active-directory/develop/v2-oauth2-client-creds-grant-flow).

We're looking at #2 as it seems easier to implement, however I'm not convinced it's necessarily the best way forward. Please advise the best way to authenticate against Azure AD in this scenario.

Thank you

Azure Functions
Azure Functions

An Azure service that provides an event-driven serverless compute platform.

Microsoft Security | Microsoft Entra | Microsoft Entra ID
0 comments No comments

Answer accepted by question author

Anonymous
2020-12-02T19:17:51.11+00:00

Hi, I would recommend taking this route. It's fairly simple and quite versatile. Please let me know if I can answer any questions!

Best,
James

Was this answer helpful?


0 additional answers

Sort by: Most helpful

Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.