aboutsummaryrefslogtreecommitdiff
path: root/src/privet/privet_types.h
AgeCommit message (Collapse)Author
2016-06-01Reland "Merge remote-tracking branch 'weave/master' into 'weave/aosp-master'"Luis Hector Chavez
This reverts commit abfe7a063bbaebdca8703d27137c8c9aed826dac. All necessary changes are ready in AOSP for this to land. Change-Id: I9ac99ebbb292e047e6d6a7978e5748987d7f0f9d Reviewed-on: https://weave-review.googlesource.com/3720 Reviewed-by: Alex Vakulenko <avakulenko@google.com>
2016-05-31Revert "Merge remote-tracking branch 'weave/master' into 'weave/aosp-master'"Luis Hector Chavez
This reverts commit 43625e411feabd7df36a8768ba8c4eca58a22e4d. This needs to happen in a staged fashion to avoid build breakages :/ Change-Id: Ie5474629bd301d7af27ee6167988b0381ac73271 Reviewed-on: https://weave-review.googlesource.com/3700 Reviewed-by: Luis Hector Chavez <lhchavez@google.com>
2016-05-27libweave: Update libchrome APIs to r395517Luis Hector Chavez
The new libchrome has been ported from Chromium and some APIs have changed. Make necessary changes at call sites. BUG: 28985443 TEST: All tests in libweave_test pass on dragonboard-eng build TEST: make testall Change-Id: Iccc8acbd968bc104af44a9053570edf028323cf5 Reviewed-on: https://weave-review.googlesource.com/3611 Reviewed-by: Alex Vakulenko <avakulenko@google.com>
2016-03-01Implement minimalRole for state definitionsAlex Vakulenko
State definition may now specify the user's minimal role needed to see the value of the state. When a user with lower access rights is requesting the component tree, state properties unavailable to that user will be removed from the resulting JSON object. BUG: 24622262 Change-Id: I3b75c60e868d14fe9a9eaec373fcb148bfac1188 Reviewed-on: https://weave-review.googlesource.com/2721 Reviewed-by: Alex Vakulenko <avakulenko@google.com>
2016-01-29Make App ID a part of User IDVitaly Buka
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>
2016-01-28Remove crypto type "None"Vitaly Buka
Unused for a while. If necessary better to set local_anonymous_access_role into kOwner. Change-Id: Ifdd39a9a6069f54ac641730550ed71da106fe10e Reviewed-on: https://weave-review.googlesource.com/2377 Reviewed-by: Alex Vakulenko <avakulenko@google.com>
2015-12-21Change user_id into stringVitaly Buka
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>
2015-12-21Add AuthType enum with string mappingVitaly Buka
BUG=25768507 Change-Id: I3d1b928407b3fa8e285b1c8bc1385e031f6abfba Reviewed-on: https://weave-review.googlesource.com/2048 Reviewed-by: Alex Vakulenko <avakulenko@google.com>
2015-11-02Remove the unneeded libweave directoryPaul Westbrook
Change-Id: I30fd8c5626cf83da6415ffa14a2019ef43be9916 Reviewed-on: https://weave-review.googlesource.com/1450 Reviewed-by: Paul Westbrook <pwestbro@google.com>