OLD | NEW |
---|---|
(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 }; | |
OLD | NEW |