Skip to content

Instantly share code, notes, and snippets.

@iogbole
Created September 1, 2016 11:13
Show Gist options
  • Save iogbole/c09e3bdcd33b722c74f1bfb3e0d400f1 to your computer and use it in GitHub Desktop.
Save iogbole/c09e3bdcd33b722c74f1bfb3e0d400f1 to your computer and use it in GitHub Desktop.
Yammer Smart Login
<!DOCTYPE HTML>
<html>
<head>
<script src="https://code.jquery.com/jquery-3.1.0.min.js" integrity="sha256-cCueBR6CsyA4/9szpPfrX3s49M9vUU5BgtiJj06wt/s=" crossorigin="anonymous"></script>
<script>
$(document).ready(function(){
$("#yamframe").hide();
});
</script>
</head>
<body>
<a href="http://yammer.com/office365" target="_blank">Yammer</a>
<!--
1. I'd recommend you place this iframe at the very bottom of your page, just before the closing body tag
2. Replace yam.usa.cc with your O365 verified and federated domain
3. Replace israelo.sharepoint.com with your SharePointOnline site URL
4. The jquery script above is intended to hide the iframe, this means that the user will be automatically logged in to O365 in the background as soon as this page loads
-->
<iframe id="yamframe" src="https://login.microsoftonline.com/login.srf?wa=wsignin1.0&whr=yam.usa.cc&wreply=https%3A%2F%2Fisraelo.sharepoint.com">
</body>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment