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

Unified 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, 8 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: services/authentication/authentication.mojom
diff --git a/services/authentication/authentication.mojom b/services/authentication/authentication.mojom
new file mode 100644
index 0000000000000000000000000000000000000000..3fe3343916fbe9ebfb3dbbc8731a26b1b55e8101
--- /dev/null
+++ b/services/authentication/authentication.mojom
@@ -0,0 +1,17 @@
+// Copyright 2015 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+[JavaPackage="org.chromium.mojo.authentication"]
+module authentication;
+
+interface AuthenticationService {
+ // 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
+ SelectAccount() => (string? username);
+ // 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.
+ GetOAuth2Token(string username, array<string> scopes) => (string? token);
+ // 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.
+ // token is refused by a server component before requesting a new token to
+ // clear the token from any cache.
+ ClearOAuth2Token(string token);
+};

Powered by Google App Engine
This is Rietveld 408576698