I'm trying to set a Single Page Application with Angular having authentication using Azure Active Directory by relying on MSAL.js. There are details about how to achieve the same with AD v1 in the traditional web app here.
I've been able to authenticate the user into the system but what I'm struggling to achieve is, sign up the user for the application by registering the tenant details in our application database through a REST API call. I've also given admin_consent=true
with extraQueryParameters
and still doesn't seem to make much sense. While giving prompt=admin_consent, it gives the following error since there's already another prompt query parameter, i.e., prompt=select_account
The proper way to call with admin consent seems to be as described here but the MSAL for JS doesn't seem to provide a handle with admin consent.
Help much appreciated.