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

Unified Diff: chrome/test/data/login/saml_api_login_v2.html

Issue 276903002: Remove credentials passing API version 1 (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 7 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_v1.html ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/test/data/login/saml_api_login_v2.html
diff --git a/chrome/test/data/login/saml_api_login_v2.html b/chrome/test/data/login/saml_api_login_v2.html
deleted file mode 100644
index 118638ea8fcae20a03b4bb7047aec1f4e3580114..0000000000000000000000000000000000000000
--- a/chrome/test/data/login/saml_api_login_v2.html
+++ /dev/null
@@ -1,59 +0,0 @@
-<html>
- <head>
- <script type="text/javascript">
- var initialized = false;
- var sendAndSumitRequested = false;
-
- function initialize() {
- window.addEventListener('message', function(event) {
- if (!event.data || event.data.type != 'gaia_saml_api_reply')
- return;
- var response = event.data.response;
- if (response.result != 'initialized' ||
- response.version != 2 ||
- response.keyTypes.indexOf('KEY_TYPE_PASSWORD_PLAIN') == -1) {
- return;
- }
- initialized = true;
- if (sendAndSumitRequested)
- send_and_submit();
- });
-
- window.setTimeout(function() {
- window.postMessage({
- type: 'gaia_saml_api',
- call: {method: 'initialize', requestedVersion: 2}}, '/');
- }, 0);
- }
-
- function send_and_submit() {
- if (!initialized) {
- sendAndSumitRequested = true;
- return;
- }
- 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,
- passwordBytes: password,
- keyType: 'KEY_TYPE_PASSWORD_PLAIN'}}, '/');
- 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/test/data/login/saml_api_login_v1.html ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698