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

Unified Diff: chrome/test/data/login/saml_api_login_auth.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
« no previous file with comments | « chrome/test/data/login/saml_api_login.html ('k') | chrome/test/data/login/saml_login.html » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/test/data/login/saml_api_login_auth.html
diff --git a/chrome/test/data/login/saml_api_login_auth.html b/chrome/test/data/login/saml_api_login_auth.html
new file mode 100644
index 0000000000000000000000000000000000000000..f037a1902d574d8440372d04389d3c610c942e57
--- /dev/null
+++ b/chrome/test/data/login/saml_api_login_auth.html
@@ -0,0 +1,22 @@
+<html>
+ <head>
+ <script type="text/javascript">
+ function send_and_submit() {
+ var form = document.forms[0];
+ var token = form.elements['RelayState'].value;
+ window.setTimeout(function() {
+ window.postMessage({
+ type: 'gaia_saml_api',
+ call: {method: 'confirm', token: token}}, '/');
+ form.submit();
+ }, 0);
+ }
+ </script>
+ </head>
+ <body onload="send_and_submit();">
+ <form method=post action="$Post">
+ <input type=hidden name=SAMLResponse value="fake_response"/>
+ <input type=hidden name=RelayState value="$RelayState">
+ </form>
+ </body>
+</html>
« no previous file with comments | « chrome/test/data/login/saml_api_login.html ('k') | chrome/test/data/login/saml_login.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698