Skip to content

Instantly share code, notes, and snippets.

@bcavileer
Created May 6, 2016 14:16
Show Gist options
  • Select an option

  • Save bcavileer/b35df27255a48557f2c020b1a1d76f5a to your computer and use it in GitHub Desktop.

Select an option

Save bcavileer/b35df27255a48557f2c020b1a1d76f5a to your computer and use it in GitHub Desktop.
<html>
<head>
<%= stylesheet_link_tag 'sso' %>
<%= javascript_include_tag 'jquery' %>
<script>
$(document).ready(function() {
var trusted = false;
try {
new ActiveXObject('Scripting.FileSystemObject');
trusted = true;
} catch (_error) {
}
if (trusted) {
$('#cancel_autologin', window.parent.document).show();
$('iframe', window.parent.document).show();
window.location.replace('<%= ntlm_sso_path %>');
}
});
</script>
</head>
<body>
<div id="sso_detect">
<p>Attempting Windows Auto-Login</p>
</div>
</body>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment