Quantcast
Channel: Azure Active Directory forum
Viewing all articles
Browse latest Browse all 16000

programmatically check if a computer has an office365 user that uses ADAL to connect

$
0
0

Hi!

The scenario is this: When you install Windows and you select an Office 365 account then you install Office and no password is asked when using Office for first time (because the current Windows user is an Office 365 user). The same for OneDrive for business.

In such case then if you use ADAL programmatically and you do AuthenticationContext.AcquireTokenAsync you get an ADAL panel and it offers you the choice to use the user that has been logged inside windows... you clicked on that user and no password is required (and it gives you a token).

I want to know BEFORE calling AcquireTokenAsync if such option (that the user password will not be used) is available.

In other words, I need to programmatically know if the current windows logged user is an office365 user.

Thanks.


Viewing all articles
Browse latest Browse all 16000

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>