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

Side by Side Diff: services/authentication/authentication.mojom

Issue 1116653002: Introduce authentication service. (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: Created 5 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 unified diff | Download patch
OLDNEW
(Empty)
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
3 // found in the LICENSE file.
4
5 [JavaPackage="org.chromium.mojo.authentication"]
6 module authentication;
7
8 interface AuthenticationService {
9 // Request an account to use.
ppi 2015/04/29 13:32:23 s/Request/Requests/
tonyg 2015/04/29 13:47:43 This interface could probably use a little more ro
qsr 2015/04/29 14:22:19 Done.
qsr 2015/04/29 14:22:20 Added documentation, and human readable error mess
10 SelectAccount() => (string? username);
11 // Request an oauth2 token for the given account with the given scopes.
ppi 2015/04/29 13:32:23 s/Request/Requests/
qsr 2015/04/29 14:22:20 Done.
12 GetOAuth2Token(string username, array<string> scopes) => (string? token);
13 // Request to clear a previously acquired token. This should be called when a
ppi 2015/04/29 13:32:23 s/Request/Requests/
qsr 2015/04/29 14:22:19 Done.
14 // token is refused by a server component before requesting a new token to
15 // clear the token from any cache.
16 ClearOAuth2Token(string token);
17 };
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698