Accessing Microsoft Azure APIs With Service Principals

**What I’m trying to do:**I want users to have access to my PowerBI reports via my Anvil app using the PowerBI embedded API. These users don’t have a Microsoft account nor are they in my Active directory. So i’m looking for a way to get access tokens to the reports without requiring user to login on Microsoft.

**What I’ve tried and what’s not working:**I read the Anvil tutorial on Using Microsoft Azure APIs from Anvil but there is no indication of how to get Azure access tokens without the user having to first log in to using the Microsoft auth API. I was hoping the Anvil Microsoft Auth API would feature authentication via Service principals which is one of the ways to give users access to Azure Apps without having them explicitly signing in on Microsoft?

Code Sample:

# this is a formatted code snippet.
# paste your code between ``` 

Clone link:
share a copy of your app