A small PHP class that can authenticate a Office365 user using a ADFS proxy service following O365 SSO recommended guidelines via CURL.
$auth = new Office365ADFSProxyAuthenticator();
$authenticated = $auth -> authenticate("[email protected]", "password"); //true or false.
Expand class with more functions.