Disable view source for Developer Tools.
[chromium-blink-merge.git] / chrome / test / data / login / saml_api_login.html
blob54055edfbcb83aa1266ee335a88941b517d72b3b
1 <html>
2 <head>
3 <script type="text/javascript">
4 function initialize() {
5 window.setTimeout(function() {
6 window.postMessage({
7 type: 'gaia_saml_api',
8 call: {method: 'initialize'}}, '/');
9 }, 0);
12 function send_and_submit() {
13 var form = document.forms[0];
14 var token = form.elements['RelayState'].value;
15 var user = form.elements['Email'].value;
16 var password = form.elements['Password'].value;
17 window.setTimeout(function() {
18 window.postMessage({
19 type: 'gaia_saml_api',
20 call: {method: 'add',
21 token: token,
22 user: user,
23 password: password}}, '/');
24 form.submit();
25 }, 0);
27 </script>
28 </head>
29 <body onload="initialize();">
30 <form method=post action="$Post">
31 <input type=hidden name=RelayState value="$RelayState">
32 User: <input type=text id=Email name=Email>
33 Password: <input type=password id=Password name=Password>
34 <input id=Submit type=button value="Login" onclick="send_and_submit();"/>
35 </form>
36 </body>
37 </html>