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

Side by Side Diff: chrome/common/extensions/api/experimental.identity.json

Issue 10178020: Start implementing an auth flow for platform apps to be able to do auth (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 8 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 | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 [ 5 [
6 { 6 {
7 "namespace": "experimental.identity", 7 "namespace": "experimental.identity",
8 "nodoc": true, 8 "nodoc": true,
9 "types": [], 9 "types": [],
10 "events": [], 10 "events": [],
11 "functions": [ 11 "functions": [
12 { 12 {
13 "name": "getAuthToken", 13 "name": "getAuthToken",
14 "type": "function", 14 "type": "function",
15 "description": "Gets an OAuth2 access token as specified by the manifest .", 15 "description": "Gets an OAuth2 access token as specified by the manifest .",
16 "parameters": [ 16 "parameters": [
17 { 17 {
18 "name": "callback", 18 "name": "callback",
19 "type": "function", 19 "type": "function",
20 "parameters": [ 20 "parameters": [
21 { 21 {
22 "name": "token", 22 "name": "token",
23 "type": "string", 23 "type": "string",
24 "description": "OAuth2 access token as specified by the manifest ." 24 "description": "OAuth2 access token as specified by the manifest ."
25 } 25 }
26 ] 26 ]
27 } 27 }
28 ] 28 ]
29 },
30 {
31 "name": "launchWebAuthFlow",
32 "type": "function",
33 "description": "Starts an auth flow at the specified URL.",
34 "parameters": [
35 {
36 "name": "launchInfo",
37 "type": "object",
38 "properties": {
39 "url": {
40 "type": "string",
41 "description": "The URL that initiates the auth flow"
42 }
43 }
44 },
45 {
46 "name": "callback",
47 "type": "function",
48 "parameters": [
49 {
50 "name": "reponseUrl",
51 "type": "string",
52 "description": "The URL redirected back to your application"
53 }
54 ]
55 }
56 ]
29 } 57 }
30 ] 58 ]
31 } 59 }
32 ] 60 ]
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698