Skip to content

Instantly share code, notes, and snippets.

@dshafer
Created December 13, 2013 16:29
Show Gist options
  • Save dshafer/7946913 to your computer and use it in GitHub Desktop.
Save dshafer/7946913 to your computer and use it in GitHub Desktop.
Default Toopher OpenAM pairing phrase prompt page
<html xmlns="http://www.w3.org/1999/xhtml"><head>
<title>OpenAM (Login)</title>
<link href="/openam/css/new_style.css" rel="stylesheet" type="text/css">
<!--[if IE 9]> <link href="/openam/css/ie9.css" rel="stylesheet" type="text/css"> <![endif]-->
<!--[if lte IE 7]> <link href="/openam/css/ie7.css" rel="stylesheet" type="text/css"> <![endif]-->
<script language="JavaScript" src="/openam/js/auth.js" type="text/javascript"></script>
<script language="JavaScript" type="text/javascript">
<!--
var defaultBtn = 'Submit';
var elmCount = 0;
/**
* submit form with given button value
*
* @param value of button
*/
function LoginSubmit(value) {
aggSubmit();
var hiddenFrm = document.forms['Login'];
if (hiddenFrm != null) {
hiddenFrm.elements['IDButton'].value = value;
if (this.submitted) {
alert("The request is currently being processed");
}
else {
this.submitted = true;
hiddenFrm.submit();
}
}
}
-->
</script>
</head>
<body onload="placeCursorOnFirstElm();">
<div class="container_12">
<div class="grid_4 suffix_8">
<a class="logo" href="/openam"></a>
</div>
<div class="box clear-float">
<div class="grid_3">
<div class="product-logo"></div>
</div>
<div class="grid_9 left-seperator">
<div class="box-content clear-float">
<h1>Pair with Toopher</h1>
<form name="Login" action="/openam/UI/Login" method="post">
<script language="javascript" type="text/javascript">
<!--
elmCount++;
-->
</script>
<script language="javascript" type="text/javascript">
<!--
elmCount++;
-->
</script>
<div class="row">
<label for="IDToken1">
Please enter a Pairing Phrase generated from the Toopher Mobile app
<img src="/openam/images/required.gif" alt="Required Field" title="Required Field" width="7" height="14">
</label>
<input class="textbox" type="text" name="IDToken1" id="IDToken1" value="">
</div>
<fieldset>
<div class="row">
<input name="Login.Submit" type="submit" onclick="LoginSubmit('Log In'); return false;" class="button primary" value="Log In">
</div>
</fieldset>
<script language="javascript" type="text/javascript">
<!--
if (elmCount != null) {
document.write("<input name=\"IDButton" + "\" type=\"hidden\">");
}
-->
</script><input name="IDButton" type="hidden">
<input type="hidden" name="goto" value="">
<input type="hidden" name="gotoOnFail" value="">
<input type="hidden" name="SunQueryParamsString" value="Z3hfY2hhcnNldD1VVEYtOCZnb3RvT25GYWlsPSZTdW5RdWVyeVBhcmFtc1N0cmluZz1aM2hmWTJoaGNuTmxkRDFWVkVZdE9DWm5iM1J2VDI1R1lXbHNQU1pUZFc1UmRXVnllVkJoY21GdGMxTjBjbWx1WnoxYU0yaG1XVEpvYUdOdVRteGtSREZXVmtWWmRFOUJQVDA9Jg==">
<input type="hidden" name="encoded" value="false">
<input type="hidden" name="gx_charset" value="UTF-8"></form>
</div>
</div>
</div>
<div class="footer alt-color">
<div class="grid_6 suffix_3">
<p>Copyright © 2010-2011 ForgeRock AS, Philip Pedersens vei 1, 1366 Lysaker, Norway. All rights reserved. Licensed for use under the Common Development and Distribution License (CDDL), see http://www.forgerock.com/license/CDDLv1.0.html for details. This software is based on the OpenSSO/OpenAM open source project and the source includes the copyright works of other authors, granted for use under the CDDL. This distribution may include other materials developed by third parties. All Copyrights and Trademarks are property of their owners.</p>
</div>
</div>
</div>
<script language="JavaScript" src="/openam/js/toopher-openam.js" type="text/javascript"></script>
<script id="hiddenlpsubmitdiv" style="display: none;"></script><script>try{for(var lastpass_iter=0; lastpass_iter < document.forms.length; lastpass_iter++){ var lastpass_f = document.forms[lastpass_iter]; if(typeof(lastpass_f.lpsubmitorig2)=="undefined"){ lastpass_f.lpsubmitorig2 = lastpass_f.submit; lastpass_f.submit = function(){ var form=this; var customEvent = document.createEvent("Event"); customEvent.initEvent("lpCustomEvent", true, true); var d = document.getElementById("hiddenlpsubmitdiv"); if (d) {for(var i = 0; i < document.forms.length; i++){ if(document.forms[i]==form){ d.innerText=i; } } d.dispatchEvent(customEvent); }form.lpsubmitorig2(); } } }}catch(e){}</script></body></html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment