Programmatically Check if User Authenticated to Office 365/CRM Online
<p>I have an ASP.NET page hosted on an external web server that is embedded in an iFrame within the Contact Form in CRM Online. As of right now, the page shown in the iFrame is accessible to the entire web, but I would like to restrict access to just users that are authenticated to CRM Online / Office 365. Is there a way for me to programmatically check to see if a user is authenticated to CRM Online/Office 365 from my external application? I'm not interested in implementing/authenticating users within my iFrame itself, but rather I'd just like to see if they have a valid login session and if so, display the page, and if not, hide it. Any feedback or direction would be much appreciated.</p>