Application NameOffice 365 (webPass)
PublisherMicrosoft
Date Entered06/09/2016
Date Modified04/25/2018
webNetwork Version 6.5.2.9
Delivery MethodwebPass Client
ConfigurationwebPass
Standard Link : https://login.microsoftonline.com

Form type : webPass
Server side webPass : (leave unchecked)
Startup URL : https://login.microsoftonline.com/.*
Login URL : https://login.microsoftonline.com/.*
Trigger URL : https://login.microsoftonline.com/common/oauth2.*
Mobile Login URL : (leave blank)
Login Page Launch : (leave unchecked)
Frame Identifier : (leave blank)
Form Identifier : i0281
Button Identifier : (leave blank)
Form Action : (leave blank)
Form Inputs : (leave blank)

Script :

function populateCredentials() {
var otherUser = document.getElementById("otherTileText");
if(otherUser != null){
document.getElementById("otherTileText").click();
}

document.getElementById("i0116").value = 'USERNAME_VARIABLE';
updateModel(document.getElementById("i0116"));

document.getElementById("i0118").value = 'PASSWORD_VARIABLE';
updateModel(document.getElementById("i0118"));

setTimeout( function() { clickLoginButton();}, 1000 );
setTimeout( function() { clickLoginButton();}, 3000 );
}

function clickLoginButton() {
document.getElementById("idSIButton9").click();
}

function updateModel(element){
element.dispatchEvent(new Event("input", {target: element, bubbles: true}))
}

function updateModelIE(element) {
var event = document.createEvent("Event");
event.initEvent("input", true, true);
element.dispatchEvent(event);
}

function isIE() {
ua = navigator.userAgent;
/* MSIE used to detect old browsers and Trident used to newer ones*/
var is_ie = ua.indexOf("MSIE ") > -1 || ua.indexOf("Trident/") > -1;
return is_ie;
}

if (isIE()){
alert("Single Sign-On Not supported in IE. Please use Chrome or Firefox.");
}
else{
populateCredentials();
}


Assigned To : Search and add desired users
 
Notes

Notes
This configuration requires user to have the webPass Browser Extension installed in their Chrome or Firefox browser. Due to the way Microsoft's login page works, SSO via our webPass Browser Extension is the only option we have.

USERNAME_VARIABLE and PASSWORD_VARIABLE in the Script should be changed out for the appropriate variables or identities to be used for authentication.
USERS under Assigned To should be replaced with Users, Groups, or OU's you want to have access to the SSO