github.com/versent/saml2aws@v2.17.0+incompatible/pkg/provider/pingfed/example/login2.html (about)

     1  <!DOCTYPE html>
     2  <html lang="en" dir="ltr">
     3  
     4  <head>
     5      <title>Sign On</title>
     6      <base href="https://id.example.com/">
     7      <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
     8      <meta name="viewport" content="initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=no">
     9      <meta http-equiv="x-ua-compatible" content="IE=edge">
    10      <link rel="stylesheet" type="text/css" href="assets/css/main.css">
    11  </head>
    12  
    13  <body onload="setFocus()">
    14  
    15      <div class="ping-container ping-signin">
    16  
    17          <!-- 
    18      if there is a logo present in the 'company-logo' container,
    19      then 'has-logo' class should be added to 'ping-header' container.
    20      -->
    21          <div class="ping-header">
    22              <span class="company-logo">
    23                  <!-- client company logo here -->
    24              </span>
    25              Sign On
    26          </div>
    27          <!-- .ping-header -->
    28  
    29          <div class="ping-body-container">
    30  
    31              <div>
    32                  <form method="POST" action="/idp/9ABjD/resumeSAML20/idp/startSSO.ping" autocomplete="off">
    33                      <div class="ping-messages">
    34  
    35  
    36  
    37                      </div>
    38  
    39                      <div class="ping-input-label">
    40                          Username
    41                      </div>
    42                      <div class="ping-input-container">
    43                          <input id="username" type="text" size="36" name="pf.username" value="" autocorrect="off" autocapitalize="off" onkeypress="return postOnReturn(event)">
    44                          <!---->
    45                      </div>
    46  
    47                      <div class="ping-input-label">
    48                          Password
    49                      </div>
    50                      <div class="ping-input-container">
    51                          <input id="password" type="password" size="36" name="pf.pass" onkeypress="return postOnReturn(event)">
    52                      </div>
    53  
    54  
    55                      <div class="ping-buttons">
    56                          <input type="hidden" name="pf.ok" value="">
    57                          <input type="hidden" name="pf.cancel" value="">
    58  
    59                          <a onclick="postOk();" class="ping-button normal allow" title="Sign On">
    60                              Sign On
    61                          </a>
    62                      </div>
    63                      <!-- .ping-buttons -->
    64  
    65                      <div class="ping-input-link ping-pass-change">
    66                          <a href="/idp/9ABjD/resumeSAML20/idp/startSSO.ping?ChangePassword=true" class="password-change">Change Password?</a>
    67                      </div>
    68  
    69                      <input type="hidden" name="pf.adapterId" id="pf.adapterId" value="VersentForm">
    70                  </form>
    71              </div>
    72              <!-- .ping-body -->
    73          </div>
    74          <!-- .ping-body-container -->
    75  
    76          <div class="ping-footer-container">
    77              <div class="ping-footer">
    78                  <div class="ping-credits"></div>
    79                  <div class="ping-copyright">Copyright © 2003-2017. Ping Identity Corporation. All rights reserved.</div>
    80              </div>
    81              <!-- .ping-footer -->
    82          </div>
    83          <!-- .ping-footer-container -->
    84  
    85      </div>
    86      <!-- .ping-container -->
    87  
    88      <script type="text/javascript">
    89  
    90          function getForgotPasswordUrl() {
    91              var base = "https://id.example.com/ext/pwdreset/Identify?referrer=https%3A%2F%2Fid.example.com%2Fidp%2F9ABjD%2FresumeSAML20%2Fidp%2FstartSSO.ping&adapterId=ExampleForm";
    92              window.location.href = base;
    93          }
    94  
    95          function postOk() {
    96              document.forms[0]['pf.ok'].value = 'clicked';
    97              document.forms[0].submit();
    98          }
    99          function postCancel() {
   100              document.forms[0]['pf.cancel'].value = 'clicked';
   101              document.forms[0].submit();
   102          }
   103          function postOnReturn(e) {
   104              var keycode;
   105              if (window.event) keycode = window.event.keyCode;
   106              else if (e) keycode = e.which;
   107              else return true;
   108  
   109              if (keycode == 13) {
   110                  document.forms[0].submit();
   111                  return false;
   112              } else {
   113                  return true;
   114              }
   115          }
   116          function setFocus() {
   117              var platform = navigator.platform;
   118              if (platform != null && platform.indexOf("iPhone") == -1) {
   119                  document.getElementById('username').focus();
   120              }
   121          }
   122          function setMobile(mobile) {
   123              var className = ' mobile',
   124                  hasClass = (bodyTag.className.indexOf(className) !== -1);
   125  
   126              if (mobile && !hasClass) {
   127                  bodyTag.className += className;
   128  
   129              } else if (!mobile && hasClass) {
   130                  bodyTag.className = bodyTag.className.replace(className, '');
   131              }
   132  
   133          }
   134          function getScreenWidth() {
   135              return (window.outerHeight) ? window.outerWidth : document.body.clientWidth;
   136          }
   137  
   138          var bodyTag = document.getElementsByTagName('body')[0],
   139              width = getScreenWidth(),
   140              remember = false && false;
   141  
   142  
   143          if (/Android|webOS|iPhone|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent)) {
   144              setMobile(true);
   145          } else {
   146              setMobile((width <= 480));
   147              window.onresize = function () {
   148                  width = getScreenWidth();
   149                  setMobile((width <= 480));
   150              }
   151          }
   152      </script>
   153  
   154  
   155  
   156  </body>
   157  
   158  </html>