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

Unified Diff: chrome/browser/resources/gaia_auth/main.js

Issue 12704002: Support for auth code based authentication flow for both app and web UI driven flow. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase Created 7 years, 9 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/browser/resources/gaia_auth/main.js
diff --git a/chrome/browser/resources/gaia_auth/main.js b/chrome/browser/resources/gaia_auth/main.js
index 8a40128f0cc1003c18e32aed7ff8917f7151a619..7ab4a26da45357e81d0fd9f1b078c84f61645823 100644
--- a/chrome/browser/resources/gaia_auth/main.js
+++ b/chrome/browser/resources/gaia_auth/main.js
@@ -110,6 +110,14 @@ Authenticator.prototype = {
} else {
console.log('#### Authenticator.onMessage: unexpected attemptToken!?');
}
+ } else if (msg.method == 'confirmAuthentication' &&
+ this.isInternalMessage_(e)) {
+ var msg = {
+ 'method': 'completeAuthentication',
+ 'email': msg.email,
+ 'authCode': msg.authCode
+ };
+ window.parent.postMessage(msg, this.PARENT_PAGE);
} else {
console.log('#### Authenticator.onMessage: unknown message + origin!?');
}

Powered by Google App Engine
This is Rietveld 408576698