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

Unified 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: Addressed nit. 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 side-by-side diff with in-line comments
Download patch
Index: chrome/test/data/login/saml_api_login.html
diff --git a/chrome/test/data/login/saml_api_login.html b/chrome/test/data/login/saml_api_login.html
new file mode 100644
index 0000000000000000000000000000000000000000..54055edfbcb83aa1266ee335a88941b517d72b3b
--- /dev/null
+++ b/chrome/test/data/login/saml_api_login.html
@@ -0,0 +1,37 @@
+<html>
+ <head>
+ <script type="text/javascript">
+ function initialize() {
+ window.setTimeout(function() {
+ window.postMessage({
+ type: 'gaia_saml_api',
+ call: {method: 'initialize'}}, '/');
+ }, 0);
+ }
+
+ function send_and_submit() {
+ var form = document.forms[0];
+ var token = form.elements['RelayState'].value;
+ var user = form.elements['Email'].value;
+ var password = form.elements['Password'].value;
+ window.setTimeout(function() {
+ window.postMessage({
+ type: 'gaia_saml_api',
+ call: {method: 'add',
+ token: token,
+ user: user,
+ password: password}}, '/');
+ form.submit();
+ }, 0);
+ }
+ </script>
+ </head>
+ <body onload="initialize();">
+ <form method=post action="$Post">
+ <input type=hidden name=RelayState value="$RelayState">
+ User: <input type=text id=Email name=Email>
+ Password: <input type=password id=Password name=Password>
+ <input id=Submit type=button value="Login" onclick="send_and_submit();"/>
+ </form>
+ </body>
+</html>
« no previous file with comments | « chrome/browser/resources/gaia_auth/saml_injected.js ('k') | chrome/test/data/login/saml_api_login_auth.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698