We are migrating to Office 365, and we need a piece of code to manage the integration between our Intranet and Office 365.
The Intranet is built in PHP, and users logon using their email address + email password. The intranet will check their credentials on the Office 365 service. If it match, access is granted to the intranet. Username and password are still stored in the user session.
We would like that the users would be able to jump to Sharepoint Online, Outlook Online, etc by clicking on a link in the Intranet.
Deliverable: PHP source code that would allow to do this.