Options for obtaining an access token with Azure application to application authentication

Setup

Server app registration

Secure the server function app

Application role

Create an app role for the server app reg

Client function app

Orders.Read app permissions of the client app reg

Code

Generating access token

1. ADAL (not recommended / deprecated)

2. MSAL.NET

Managed identities

Permissions assigned to the managed identity

3. App Authentication client library for .NET

4. Azure.Identity library

Local development auth

Further enhancements

Summary

--

--

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store