4fe71e314157576d2bdfe54cc6f8ce5df38c571d |
|
29-Jan-2016 |
Vitaly Buka <vitalybuka@google.com> |
Make App ID a part of User ID In addition to user ID, auth tokens could be bound to specific app ID. So internal libweave User ID, named UserAppId, from now will consist of auth type, user ID and optional app ID. If operation was called with token containing only user ID, libweave will grant access to all commands for every app for the given user ID. To distinguish between user authorized with local, pairing or anonymous tokens libweave uses UserAppId::type field. As macaroons have no caveats for this kind of information, current implementation will just append the type to the user ID caveat of the access token. BUG: 26292014 Change-Id: I528c2717c95c5daed74bb769b3569fac823761f2 Reviewed-on: https://weave-review.googlesource.com/2394 Reviewed-by: Alex Vakulenko <avakulenko@google.com>
/external/libweave/src/privet/privet_handler_unittest.cc
|
0dbbf605efb8f72b3c2c15c14e613323fc2ac0a2 |
|
22-Jan-2016 |
Vitaly Buka <vitalybuka@google.com> |
AddTo will return AddToTypeProxy for convenience Change-Id: If86496af0c68af31a3e0c618b0fae861975a4ebf Reviewed-on: https://weave-review.googlesource.com/2321 Reviewed-by: Vitaly Buka <vitalybuka@google.com>
/external/libweave/src/privet/privet_handler_unittest.cc
|
48a8669ddc2e8d785aad9ad18a5abbf8f1224fde |
|
22-Jan-2016 |
Vitaly Buka <vitalybuka@google.com> |
Remove domain from weave::Error We don't filter out errors by domain in libweave. BUG:26071451 Change-Id: I2114450aca1c8ede71cc45f19bd8e71d3464cb73 Reviewed-on: https://weave-review.googlesource.com/2289 Reviewed-by: Alex Vakulenko <avakulenko@google.com>
/external/libweave/src/privet/privet_handler_unittest.cc
|
ee7322fc7ed7cf06635a01010d10aedd9714e0ea |
|
19-Dec-2015 |
Vitaly Buka <vitalybuka@google.com> |
Get list of auth modes from AuthManger BUG=25768507 Change-Id: I6694f961fab045ef9dcd1b6cfbe8a2b2d82861c5 Reviewed-on: https://weave-review.googlesource.com/2064 Reviewed-by: Alex Vakulenko <avakulenko@google.com>
/external/libweave/src/privet/privet_handler_unittest.cc
|
66f46b8468354ee964a150df05d08b31a2c7121a |
|
19-Dec-2015 |
Vitaly Buka <vitalybuka@google.com> |
Change user_id into string Cloud users are going to be represented by strings, probably email address. Integer prefix is used to avoid collisions between pairing/anonymous and local users. BUG=25768507 Change-Id: I27249c0b98f919e9527498be74ddaa82218b4041 Reviewed-on: https://weave-review.googlesource.com/2063 Reviewed-by: Alex Vakulenko <avakulenko@google.com>
/external/libweave/src/privet/privet_handler_unittest.cc
|
3020c495e853c12bc4febca66b4ab739dbb773ef |
|
18-Dec-2015 |
Vitaly Buka <vitalybuka@google.com> |
Remove unused SecurityDelegate::IsValidPairingCode BUG=25768507 Change-Id: I5bec24332a53b95272e0e1370d5bbfe2e0df418c Reviewed-on: https://weave-review.googlesource.com/2061 Reviewed-by: Alex Vakulenko <avakulenko@google.com>
/external/libweave/src/privet/privet_handler_unittest.cc
|
4957afbd3cf5e0842d175207aa6d581a3cf9d973 |
|
18-Dec-2015 |
Vitaly Buka <vitalybuka@google.com> |
Add privet API tests for local auth BUG=25768507 Change-Id: I7b86ca2af97652240ea7e4286eedf25160d31af5 Reviewed-on: https://weave-review.googlesource.com/2060 Reviewed-by: Alex Vakulenko <avakulenko@google.com>
/external/libweave/src/privet/privet_handler_unittest.cc
|
fd2ef6869df7fdd2eb32e17bd7854df478b1f031 |
|
18-Dec-2015 |
Vitaly Buka <vitalybuka@google.com> |
Move most of auth logic into SecurityDelegate::CreateAccessToken With local auth we will need to extract most of information from macaroon auth code. BUG=25768507 Change-Id: If7b31a1ba9a081dfae0cf8e9df6c8ed27bfe79c4 Reviewed-on: https://weave-review.googlesource.com/2049 Reviewed-by: Vitaly Buka <vitalybuka@google.com>
/external/libweave/src/privet/privet_handler_unittest.cc
|
a0a813490ff37868827b65d7f9aeb554c996c17c |
|
17-Dec-2015 |
Vitaly Buka <vitalybuka@google.com> |
Changed AuthManager::CreateAccessToken and AuthManager::ParseAccessToken With this API we can handle expiration checks inside of AuthManager BUG=25768507 Change-Id: I2fa5d428be6f0772d8b2656eb2bee71824f0d308 Reviewed-on: https://weave-review.googlesource.com/2030 Reviewed-by: Vitaly Buka <vitalybuka@google.com>
/external/libweave/src/privet/privet_handler_unittest.cc
|
483d5970e88b56442f19baea841f6af75b5a0006 |
|
16-Dec-2015 |
Vitaly Buka <vitalybuka@google.com> |
Add 'sessionId' into privet/info Current implementation is a Unix timestamp plus counter. BUG=26140026 Change-Id: Idfe0aa81c49e6dab5d638cbedfbeb460b70b5864 Reviewed-on: https://weave-review.googlesource.com/2010 Reviewed-by: Alex Vakulenko <avakulenko@google.com>
/external/libweave/src/privet/privet_handler_unittest.cc
|
287346be93e18e178ec9a87c684e12a1857cac30 |
|
15-Dec-2015 |
Vitaly Buka <vitalybuka@google.com> |
Add "manager" scope into privet API BUG=25049439 Change-Id: Ide930d204ebf243c0aa9df3820959f5dfdb0e1d1 Reviewed-on: https://weave-review.googlesource.com/1966 Reviewed-by: Vitaly Buka <vitalybuka@google.com> Reviewed-by: Alex Vakulenko <avakulenko@google.com>
/external/libweave/src/privet/privet_handler_unittest.cc
|
2d24e0ea050085e91bb8282a0408561d6a17797a |
|
10-Dec-2015 |
Vitaly Buka <vitalybuka@google.com> |
Return Root Client Authorization Token using /privet/v3/accessControl/* RCAT is returned in /privet/v3/accessControl/claim results. Then client needs to store token and call /privet/v3/accessControl/confirm with original or derived token. Depending on result of confirm call client may: 1. No error - Start using token 2. Request error - retry confirm step 3. Unknown token - claim access again 4. Already claimed error - to late, someone else claimed device BUG=25766815, 26143922 Change-Id: I9d25004e84210142214e6eb0a23d8e3ae7b57d6a Reviewed-on: https://weave-review.googlesource.com/1885 Reviewed-by: Vitaly Buka <vitalybuka@google.com>
/external/libweave/src/privet/privet_handler_unittest.cc
|
34668e731bb194b443bc0e6029d6d3583f08de28 |
|
15-Dec-2015 |
Vitaly Buka <vitalybuka@google.com> |
Reformat Change-Id: Ia98499f9ada220151b24ecb8b60b02524d700bc4 Reviewed-on: https://weave-review.googlesource.com/1967 Reviewed-by: Vitaly Buka <vitalybuka@google.com>
/external/libweave/src/privet/privet_handler_unittest.cc
|
3eb52e7be505307e15d7a7abdf4ba57dab6cb1a4 |
|
15-Dec-2015 |
Alex Vakulenko <avakulenko@google.com> |
Add the ability to query for particuar component and filter fields When running local API /privet/v3/components add the ability to pass extra parameters such as 'path' to specify a component path and 'filter' to include only specified component properties. BUG: 26159356 Change-Id: I7a5de42c2acff94dac2ad71874a0ade6f91fb064 Reviewed-on: https://weave-review.googlesource.com/1931 Reviewed-by: Alex Vakulenko <avakulenko@google.com>
/external/libweave/src/privet/privet_handler_unittest.cc
|
b03d4ddd8eb3475684cf327bb5a3812e3f45dc79 |
|
13-Dec-2015 |
Vitaly Buka <vitalybuka@google.com> |
Remove /privet/info:uptime as unused BUG=26170260 Change-Id: I8cc5d159b1d94751610c98cfa8e1067b97431b73 Reviewed-on: https://weave-review.googlesource.com/1926 Reviewed-by: Alex Vakulenko <avakulenko@google.com>
/external/libweave/src/privet/privet_handler_unittest.cc
|
1884cf644b9a48119438a17864509176dd47c646 |
|
13-Dec-2015 |
Vitaly Buka <vitalybuka@google.com> |
Rename timeMs into time Use number instead of string to store time. We don't use unit suffixes in other privet parts. Also suffix should not be necessary as milliseconds is default Javascript time format. BUG=26160070 Change-Id: I779f3fd3e232d47724cfdb67072a980c4d966a8b Reviewed-on: https://weave-review.googlesource.com/1925 Reviewed-by: Alex Vakulenko <avakulenko@google.com>
/external/libweave/src/privet/privet_handler_unittest.cc
|
532140dbb2ab861d693419b69d3ce90140fee043 |
|
12-Dec-2015 |
Alex Vakulenko <avakulenko@google.com> |
Add 'timeMs' field to /privet/info local API Added the local device time field to the Info response. The timestamp is a time in milliseconds since Epoch (similar to how the time is used with the cloud server). BUG: 26160070 Change-Id: I3059f2880dc2aa4c1990bbe662e8c1057b1aadc1 Reviewed-on: https://weave-review.googlesource.com/1922 Reviewed-by: Vitaly Buka <vitalybuka@google.com>
/external/libweave/src/privet/privet_handler_unittest.cc
|
41aa8090265b73876da7b99b5d246b4a64fe0474 |
|
10-Dec-2015 |
Vitaly Buka <vitalybuka@google.com> |
Use base::Clock in AuthManager for better testing Change-Id: Ifbb23e4da565a1c86ff728803d2e07e3f8c3b1f4 Reviewed-on: https://weave-review.googlesource.com/1873 Reviewed-by: Alex Vakulenko <avakulenko@google.com>
/external/libweave/src/privet/privet_handler_unittest.cc
|
e3cc23039e14909336e565be50978accec3d0c1a |
|
08-Dec-2015 |
Alex Vakulenko <avakulenko@google.com> |
Move checkForUpdates tests into their own section This will help with grouping related tests. Special message for Vitaly: are you reading this? Change-Id: I8ff28877a30c123c2e32a237d21ade2bb78cd9b4 Reviewed-on: https://weave-review.googlesource.com/1795 Reviewed-by: Vitaly Buka <vitalybuka@google.com>
/external/libweave/src/privet/privet_handler_unittest.cc
|
f9691327f9474ad2cdf2d1ddaa9a847fd5392686 |
|
07-Dec-2015 |
Alex Vakulenko <avakulenko@google.com> |
Use uint64_t for fingerprints to prevent easy overflows Instead of using int for state/command/traits/components fingerprints, use uint64_t and reserve the value of 0 as a special "ignore" whildcard (instead of former -1). Change-Id: I3b95b4a8f9f41a963486d31ca6632ec0738dd7e9 Reviewed-on: https://weave-review.googlesource.com/1793 Reviewed-by: Alex Vakulenko <avakulenko@google.com>
/external/libweave/src/privet/privet_handler_unittest.cc
|
551a82bbefbfd6dc83309eec440a41ca737062b4 |
|
07-Dec-2015 |
Alex Vakulenko <avakulenko@google.com> |
Add support of Components/Traits to local privet APIs Added support for new privet APIs /privet/v3/traits and /privet/v3/components to obtain the full trait/component trees as well as expanded the existing /privet/v3/checkForUpdates to include the component/trait fingerprints. BUG: 25917521 Change-Id: Ib753817f88f611935057ca7bd1a1bf02addfb69c Reviewed-on: https://weave-review.googlesource.com/1791 Reviewed-by: Vitaly Buka <vitalybuka@google.com>
/external/libweave/src/privet/privet_handler_unittest.cc
|
29a11caf12aea925ac19b3d47a3bfc41e361e87a |
|
07-Dec-2015 |
Alex Vakulenko <avakulenko@google.com> |
Replace IsEqualJson gtest predicate with EXPECT_JSON_EQ EXPECT_JSON_EQ has better debugging capabilities that the old EXPECT_PRED2(IsEqualJson,... since it shows the correct line numbers and both expected and actual JSON objects. Change-Id: Iaed2a07230f2bade5c8a036fb5a8daff05613896 Reviewed-on: https://weave-review.googlesource.com/1792 Reviewed-by: Vitaly Buka <vitalybuka@google.com>
/external/libweave/src/privet/privet_handler_unittest.cc
|
d91d625f29b752be035c5fb49bb29d7ee85fcb90 |
|
06-Dec-2015 |
Alex Vakulenko <avakulenko@google.com> |
Switch to use ComponentManager for traits/components Removed the old StateManager, CommandManager and related classes and switched over to using ComponentManager for all device trait and component definitions as well as device state. Change-Id: I99b99a935ba217703d31aa523a3124cca0fa3e90 Reviewed-on: https://weave-review.googlesource.com/1788 Reviewed-by: Alex Vakulenko <avakulenko@google.com>
/external/libweave/src/privet/privet_handler_unittest.cc
|
efee3a281cddd7975d4f732bf8179b1e32ce6806 |
|
18-Nov-2015 |
Alex Vakulenko <avakulenko@google.com> |
Add support for long-poll HTTP request at /privet/v3/checkForUpdates Added state/command definition notification mechanism through a long poll HTTP request as described in: https://developers.google.com/cloud-devices/v1/reference/local-api/check_for_updates BUG: 23908251 Change-Id: I5285403f35f23a310404d3324a7a255b77211264 Reviewed-on: https://weave-review.googlesource.com/1533 Reviewed-by: Vitaly Buka <vitalybuka@google.com>
/external/libweave/src/privet/privet_handler_unittest.cc
|
5a1f600e9d7d26c36b3e22ff0dc0ae9e3b2425fc |
|
02-Nov-2015 |
Paul Westbrook <pwestbro@google.com> |
Remove the unneeded libweave directory Change-Id: I30fd8c5626cf83da6415ffa14a2019ef43be9916 Reviewed-on: https://weave-review.googlesource.com/1450 Reviewed-by: Paul Westbrook <pwestbro@google.com>
/external/libweave/src/privet/privet_handler_unittest.cc
|