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

Side by Side Diff: mojo/services/authentication/public/interfaces/authentication.mojom

Issue 1163483004: Make the authentication service remember selected usernames. (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: Created 5 years, 6 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 unified diff | Download patch
« no previous file with comments | « no previous file | services/authenticating_url_loader/authenticating_url_loader_factory_impl.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 [JavaPackage="org.chromium.mojo.authentication"] 5 [JavaPackage="org.chromium.mojo.authentication"]
6 module authentication; 6 module authentication;
7 7
8 // Interface to handle user identity and authentication tokens. 8 // Interface to handle user identity and authentication tokens.
9 // TODO(qsr): This API only handles google accounts at this time. It will need 9 // TODO(qsr): This API only handles google accounts at this time. It will need
10 // to be extended to allow generic account manager on the platform. 10 // to be extended to allow generic account manager on the platform.
11 interface AuthenticationService { 11 interface AuthenticationService {
12 // Requests a Google account to use. In case of success, error will be null. 12 // Requests a Google account to use. In case of success, error will be null.
13 // In case of error, username will be null and error will contain a 13 // In case of error, username will be null and error will contain a
14 // description of the error. 14 // description of the error.
15 SelectAccount() => (string? username, string? error); 15 SelectAccount(bool returned_last_selected) =>
tonyg 2015/06/03 14:59:27 s/returned/use/ or at least s/returned/return/? A
qsr 2015/06/03 15:12:42 Done.
16 (string? username, string? error);
16 17
17 // Requests an oauth2 token for the given Google account with the given 18 // Requests an oauth2 token for the given Google account with the given
18 // scopes. In case of error, username will be null and error will contain a 19 // scopes. In case of error, username will be null and error will contain a
19 // description of the error. 20 // description of the error.
20 GetOAuth2Token(string username, array<string> scopes) => 21 GetOAuth2Token(string username, array<string> scopes) =>
21 (string? token, string? error); 22 (string? token, string? error);
22 23
23 // Requests to clear a previously acquired token. This should be called when a 24 // Requests to clear a previously acquired token. This should be called when a
24 // token is refused by a server component before requesting a new token to 25 // token is refused by a server component before requesting a new token to
25 // clear the token from any cache. 26 // clear the token from any cache.
26 ClearOAuth2Token(string token); 27 ClearOAuth2Token(string token);
27 }; 28 };
OLDNEW
« no previous file with comments | « no previous file | services/authenticating_url_loader/authenticating_url_loader_factory_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698