Finding out if admin consented for use of Web Application Azure
<p>Is there a way to find out if admin consented to allowing Web application to be allowed in their tenant directory ?</p>

<p>Basically, I have a Web application and I want only admin to consent on behalf of all users. If I use <code>prompt=admin_consent</code> in authentication request it works great and only admins can consent.</p>

<p>But every time application is accessed, the same prompt re-appears even after the application got provisioned in their directory</p>

<p>I could solve this issue by kind of creating an on-boarding page where I collect from them tenant id and seeing if its registered and if yes don't ask to prompt again and simply proceed with authentication.</p>

<p>But is there anyway this thing comes for free or is there anything in the token that tells if this user is admin user or not ?</p>