Office 365 Federation Through Clearlogin
First you will need to setup the Office 365 app connection through the Admin Dashboard.
Click on "Apps, and then select "Add New" and click on Office 365.
Enter the Display Name and any Access Tags that you wish to specify. If none are entered, then default values will be saved. When you have entered your information click "Create Office 365 App."
On this page you will see the settings you have initialized in the app connection. If you need to edit this page, please read our SAML App Connections article and/or our SAML App Connections Advanced article.
At the bottom you will see the URL's we will need to federate Office 365. The only missing URL is the issuer URL which will be "https://[YOUR IDP].clearlogin.com/"
Setup MSOL-Services (Office 365)
First install Azure AD for PowerShell modules. You can find them here.
If you receive an error stating that "In order to install Windows Azure Active Directory Module for Windows PowerShell you must have Microsoft Online Services Sign-In Assistance version 7.0 or greater installed on this computer." then please install Microsoft Online Services Sign-In Assistant.
As per Microsoft, please make sure to follow steps 1 -3 listed in this Microsoft article.
Next download msol_clearlogin.ps1 our PowerShell script for federating Office 365 with Clearlogin here or at the bottom of this page.
Open PowerShellISE.exe in administrator mode. Then open the downloaded msol_clearlogin.ps1 in PowerShellISE and run it.
Follow the on-screen commands and you will have a fully federated Office 365 domain through Clearlogin!
Please note that you can not federate your Default Domain through Office 365. You can find more information on federating Office 365 via SAML here.