History log of /external/libweave/src/privet/cloud_delegate.cc
Revision Date Author Comments (<<< Hide modified files) (Show modified files >>>)
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/cloud_delegate.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/cloud_delegate.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/cloud_delegate.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/cloud_delegate.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/cloud_delegate.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/cloud_delegate.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/cloud_delegate.cc
b3de3512f0276c7af73b3f2de0637c423d459f2e 12-Dec-2015 Alex Vakulenko <avakulenko@google.com> Fix device registration expiration with system clock adjusted

When system clock is being adjusted on device during registration,
the registration process could prematurely be considered expired
when the clock rolls forward. Change the logic to use retry counters
instead of absolute expiration time to mitigate this problem.

BUG: 26107811
Change-Id: I31de553bedabd7b501ed1d222932d4f379018dd2
Reviewed-on: https://weave-review.googlesource.com/1893
Reviewed-by: Vitaly Buka <vitalybuka@google.com>
/external/libweave/src/privet/cloud_delegate.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/cloud_delegate.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/cloud_delegate.cc
2c7740aac024de03aafcf09ee69f157384d44038 30-Nov-2015 Alex Vakulenko <avakulenko@google.com> Remove CommandDefinition class

In preparation for traits support, remove CommandDefinition class
and incorporate the missing functionality into CommandDictionary.

BUG: 25841719
Change-Id: Iead48aa0503e9de6061c4c1588b0b930dd82c8d0
Reviewed-on: https://weave-review.googlesource.com/1680
Reviewed-by: Alex Vakulenko <avakulenko@google.com>
/external/libweave/src/privet/cloud_delegate.cc
c4305600835b91630f9ca4b10ad9070ea55a726c 25-Nov-2015 Vitaly Buka <vitalybuka@google.com> Replace Get* methods returning unique_ptr with reference alternative

Existing code created temporarily objects and returned them to the
client. It was not efficient and error-prone as client code could
retrieve pointers to internal objects without keeping unique_ptr alive.

Change-Id: I9e17c8d9f66dfc9f52ce9ffc9a31992b16b00461
Reviewed-on: https://weave-review.googlesource.com/1672
Reviewed-by: Alex Vakulenko <avakulenko@google.com>
/external/libweave/src/privet/cloud_delegate.cc
52d006a131c61955e3a8a915d7f22941b3a4eee2 22-Nov-2015 Vitaly Buka <vitalybuka@google.com> Support GCC 4.7

Removed constructors inheritance.
Removed emplace use.

Change-Id: I45224e3232d39ff22f758c7e387be2c9aff5eae0
Reviewed-on: https://weave-review.googlesource.com/1606
Reviewed-by: Vitaly Buka <vitalybuka@google.com>
/external/libweave/src/privet/cloud_delegate.cc
7e894da1c5fcc4fafa6cc69b612c9c14f78aed51 23-Nov-2015 Alex Vakulenko <avakulenko@google.com> Remove object schema parsing in CommandDefinition

The only thing we now care about in CommandDefinition is the
"minimalRole" field. Everything else is a black-box which we just
forward to the server without any semantic parsing.

Also completely removed command visibility support since it no
longer applies to trait/component model.

BUG: 25841230
Change-Id: Ie8fff57ffada289caa7876c2a53150bb116fd65b
Reviewed-on: https://weave-review.googlesource.com/1617
Reviewed-by: Vitaly Buka <vitalybuka@google.com>
/external/libweave/src/privet/cloud_delegate.cc
1c522d8f6a136c16138e5b4bf324a9e77ddd1b63 23-Nov-2015 Vitaly Buka <vitalybuka@google.com> Don't expose old cloud ID in Privet info

BUG:25342842

Change-Id: I8f9847d69d837e025640aa62137cf817005b2456
Reviewed-on: https://weave-review.googlesource.com/1621
Reviewed-by: Vitaly Buka <vitalybuka@google.com>
/external/libweave/src/privet/cloud_delegate.cc
672634b8b0ed31891fb48e02dce75b6aead0be27 20-Nov-2015 Vitaly Buka <vitalybuka@google.com> Persist kInvalidCredentials state

External code may want to do some additional processing when device
was unregistered from the cloud side, e.g. factory reset of the device.

Existing code switches from kInvalidCredentials to kUnregistered after
reboot. This makes processing kInvalidCredentials unreliable.

Persistence of kInvalidCredentials implemented as special case when
cloud_id is not empty but credentials are missing.

BUG:25342842

Change-Id: I80d4ce8157c70e132a55fd752a9006064cf70b57
Reviewed-on: https://weave-review.googlesource.com/1580
Reviewed-by: Vitaly Buka <vitalybuka@google.com>
/external/libweave/src/privet/cloud_delegate.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/cloud_delegate.cc