Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(939)

Side by Side Diff: chrome/test/data/login/saml_api_login.html

Issue 138133006: Add credential passing API for Chrome OS SAML login (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
(Empty)
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);
10 }
11
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);
26 }
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>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698