Index: branches/extensions-realtime/IdentityApi/PROTOCOL |
— | — | @@ -43,15 +43,15 @@ |
44 | 44 | |
45 | 45 | |
46 | 46 | * The Chat service should then use those values to construct its identity verification API call. In particular |
47 | | - note that it uses the API URL again. |
| 47 | + note that it uses the API URL again. Also note that here the arguments are namespaced so we say "idtoken" not "token". |
48 | 48 | |
49 | 49 | CHAT SERVICE -> WIKI. |
50 | 50 | |
51 | 51 | http://wiki.ivy.local/w/api.php? |
52 | 52 | action = verifyidentity |
53 | | - & viuser = Mercury |
54 | | - & vitoken=fafa55405eb0e0336d12135f7f14c9df |
55 | | - & viextras = cookie|wgServer|wgArticlePath|isLoggedIn|username |
| 53 | + & iduser = Mercury |
| 54 | + & idtoken=fafa55405eb0e0336d12135f7f14c9df |
| 55 | + & idextras = cookie|wgServer|wgArticlePath|isLoggedIn|username |
56 | 56 | & format=json |
57 | 57 | |
58 | 58 | The extras are information that this chat server might want to know. They should all be self-explanatory, |
Index: branches/extensions-realtime/IdentityApi/api/ApiQueryIdentity.php |
— | — | @@ -11,7 +11,7 @@ |
12 | 12 | */ |
13 | 13 | class ApiQueryIdentity extends ApiQueryBase { |
14 | 14 | public function __construct( $main, $action ) { |
15 | | - parent::__construct( $main, $action, 'vi' ); |
| 15 | + parent::__construct( $main, $action, 'id' ); |
16 | 16 | } |
17 | 17 | |
18 | 18 | /** |
Index: branches/extensions-realtime/IdentityApi/api/ApiQueryVerifyIdentity.php |
— | — | @@ -11,7 +11,7 @@ |
12 | 12 | */ |
13 | 13 | class ApiQueryVerifyIdentity extends ApiQueryBase { |
14 | 14 | public function __construct( $main, $action ) { |
15 | | - parent::__construct( $main, $action, 'vi' ); |
| 15 | + parent::__construct( $main, $action, 'id' ); |
16 | 16 | } |
17 | 17 | |
18 | 18 | /** |
— | — | @@ -78,7 +78,7 @@ |
79 | 79 | |
80 | 80 | protected function getExamples() { |
81 | 81 | return array ( |
82 | | - 'api.php?action=verifyidentity&viuser=NeilK&vitoken=abcdef123456&viextras=avatarSrc|chat|cookie|isStaff|username', |
| 82 | + 'api.php?action=verifyidentity&iduser=NeilK&idtoken=abcdef123456&idextras=avatarSrc|chat|cookie|isStaff|username', |
83 | 83 | ); |
84 | 84 | } |
85 | 85 | |