Blog post - Diving into AadHttpClient (with hacking!)
- In Azure AD register new application (native)
- For required permissions add "Windows Azure Active Directory" -> "Access directory as the signed-in user"
- Go to Constants.cs and change TenantId to your tenant id and ClientId from step 1