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

Unified Diff: mojo/services/authentication/interfaces/authentication.mojom

Issue 1466733002: Google OAuth Device Flow support for FNL (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: Refactored google_auth_service into sub components Created 5 years 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 | « mojo/data_pipe_utils/data_pipe_utils.cc ('k') | services/BUILD.gn » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: mojo/services/authentication/interfaces/authentication.mojom
diff --git a/mojo/services/authentication/interfaces/authentication.mojom b/mojo/services/authentication/interfaces/authentication.mojom
index cc2a6f8a58fcf0667b1fa9e37c15f657f29a8839..ab12843aebcb75688aca9068205566bbf9a39645 100644
--- a/mojo/services/authentication/interfaces/authentication.mojom
+++ b/mojo/services/authentication/interfaces/authentication.mojom
@@ -18,7 +18,7 @@ interface AuthenticationService {
SelectAccount(bool return_last_selected) => (string? username, string? error);
// Requests an oauth2 token for the given Google account with the given
- // scopes. In case of error, username will be null and error will contain a
+ // scopes. In case of error, token will be null and error will contain a
// description of the error.
GetOAuth2Token(string username, array<string> scopes) =>
(string? token, string? error);
@@ -27,4 +27,15 @@ interface AuthenticationService {
// token is refused by a server component before requesting a new token to
// clear the token from any cache.
ClearOAuth2Token(string token);
+
+ // Requests an oauth2 device code response for the given set of scopes. In
rudominer 2015/12/17 07:28:30 I think you need more comments that explain how to
ukode 2015/12/17 21:53:24 Thats right. Fixed the comments.
+ // case of error, response will be null and error will contain a description
rudominer 2015/12/17 07:28:30 s/response will be null/verifcation_url, device_co
ukode 2015/12/17 21:53:24 Done.
+ // of the error.
+ GetOAuth2DeviceCode(array<string> scopes) => (string? verification_url, string? device_code, string? user_code, string? error);
rudominer 2015/12/17 07:28:30 break long line please.
ukode 2015/12/17 21:53:24 Done.
+
+ // Exchanges an oauth2 device code to a refresh token for the granted user,
+ // and stores it locally in a secure storage location. For future
+ // GetOAuth2Token requests, a new access token is minted from this refresh
+ // token and returned to the calling mojo app.
+ AddAccount(string device_code) => (string? username, string? error);
};
« no previous file with comments | « mojo/data_pipe_utils/data_pipe_utils.cc ('k') | services/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698