aboutsummaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2016-03-09Take into account scope from /privet/v3/auth callVitaly Buka
For local case the scope was ignored. Behavior was similar to "auto" scope. Change-Id: I6aabca13929d10101f5b350641aa6edd84d50a23 Reviewed-on: https://weave-review.googlesource.com/2880 Reviewed-by: Alex Vakulenko <avakulenko@google.com>
2016-03-09examples/daemon: fix ledflasher param namesJohan Euphrosine
tested with: http://instaweave.devrel.pub:90/?branch=54b4b0e7643738cd7c5014e01d4aeaab01165304 Change-Id: I9f5547bf33c418322d90dfae7aac2d8248c629cd Reviewed-on: https://weave-review.googlesource.com/2883 Reviewed-by: Paul Westbrook <pwestbro@google.com>
2016-03-07Implement local_discovery_enabled settingVitaly Buka
Implementation will reset entire privet::Manager component if setting was changed to false, and recreate component if it was changed into true. Additionally removing of HTTP callback was added. BUG: 27480269 Change-Id: Ieea91057fc0bdbd5f12c439b791250c9cf6c3741 Reviewed-on: https://weave-review.googlesource.com/2833 Reviewed-by: Alex Vakulenko <avakulenko@google.com>
2016-03-07Remove ObserverList from cloud delegateVitaly Buka
Change-Id: Icc3e7c11c4b01b1b1105a2be6c48f0ec1b7b6d92 Reviewed-on: https://weave-review.googlesource.com/2832 Reviewed-by: Alex Vakulenko <avakulenko@google.com>
2016-03-05Remove CloudDelegate::Observer::OnDeviceInfoChangedVitaly Buka
This method notification is just a proxy for config change event. We can directly signup for this notifications from config. BUG:27480269 Change-Id: Ic83dd9c6f5180428168cc2a22d2671035334211e Reviewed-on: https://weave-review.googlesource.com/2824 Reviewed-by: Alex Vakulenko <avakulenko@google.com>
2016-03-04Fixed issues configuring devices with date before 2000.Vitaly Buka
BUG: 27484275 Change-Id: Ia7158fdea6cac60d8b99630b4cb43b5e368c3776 Reviewed-on: https://weave-review.googlesource.com/2817 Reviewed-by: Alex Vakulenko <avakulenko@google.com>
2016-03-04Update READMEs to reflect cloud_id name in Cloud Services for deviceIdShawn S
Added git add <files> in README for Making Changes Bug#: 27458291 Change-Id: I66bb1b6507f21c2a67020d9ba4e6a941794515b8 Reviewed-on: https://weave-review.googlesource.com/2802 Reviewed-by: Vitaly Buka <vitalybuka@google.com>
2016-03-02VERISON: Initial commit on master - 1.4.1Ben Henry
BUG=None TEST=None Change-Id: I52554fb5a0582d598737c755c794000548822199 Reviewed-on: https://weave-review.googlesource.com/2799 Reviewed-by: Alex Vakulenko <avakulenko@google.com>
2016-03-02Update macaroon libVitaly Buka
Change-Id: Iada0942ea1037ba061d53ee271a40965393306c1 Reviewed-on: https://weave-review.googlesource.com/2797 Reviewed-by: Alex Vakulenko <avakulenko@google.com>
2016-03-02Insert the description of the change.Gene Gutnik
BUG: 27418257 Change-Id: I4c10da5990c1002d28cfc76133c9cec6a05601cf Reviewed-on: https://weave-review.googlesource.com/2785 Reviewed-by: Alex Vakulenko <avakulenko@google.com> Reviewed-by: Vitaly Buka <vitalybuka@google.com>
2016-03-01Applied clang-formatVitaly Buka
git clang-format -f weave/master~100 --style=file Change-Id: I94c111e81a59172c6e1ebb5d330f2d563fe43c15 Reviewed-on: https://weave-review.googlesource.com/2795 Reviewed-by: Alex Vakulenko <avakulenko@google.com>
2016-03-01Fix crash when device in access point modeVitaly Buka
BUG: 27431574 Change-Id: I6c217c78bd9809383d13528ec21b9447ee7a4fce Reviewed-on: https://weave-review.googlesource.com/2794 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-03-01Update _accessRevocationList traitVitaly Buka
BUG: 27313743 Change-Id: I68977c7badb0f7ae747d3d4567211eded31b45a3 Reviewed-on: https://weave-review.googlesource.com/2789 Reviewed-by: Gene Gutnik <gene@google.com>
2016-02-29Fixes to event_http_server for examplesDavid Paul
Set Content-Length on responses. Otherwise e.g. curl will wait forever for the connection to close. Set request data to request body only, instead of full request. Parsing of any local commands would fail previously. Change-Id: Iba8ebb429ec3430d32d8a166dcc6985a5f79562e Reviewed-on: https://weave-review.googlesource.com/2781 Reviewed-by: Dave Paul <davepaul@google.com>
2016-02-29Add provider::Wifi::GetConnectedSsidVitaly Buka
BUG:25820726 Change-Id: I3dc156df00e53bdf879b5a201d4f6cfa5badb1cd Reviewed-on: https://weave-review.googlesource.com/2769 Reviewed-by: Vitaly Buka <vitalybuka@google.com>
2016-02-27examples/lock: fix lock traitJohan Euphrosine
Bug: 27276010 Change-Id: I06d468faab07863f9af1eb81cf68a82707857fa4 Reviewed-on: https://weave-review.googlesource.com/2748 Reviewed-by: Paul Westbrook <pwestbro@google.com>
2016-02-27examples/speaker: fix volume traitJohan Euphrosine
Bug: 27276010 Change-Id: Ib5c6fbf51d4d6ae8d2e09920c3bd4134e1f87ae5 Reviewed-on: https://weave-review.googlesource.com/2749 Reviewed-by: Paul Westbrook <pwestbro@google.com>
2016-02-25Update local auth info if server side information does not matchVitaly Buka
Missing fingerprint or different than local one means server data is not useful for auth purpose. BUG: 26140342 Change-Id: If57bdd5b2c589d30748b572bc3e4020c1bec472e Reviewed-on: https://weave-review.googlesource.com/2738 Reviewed-by: Alex Vakulenko <avakulenko@google.com>
2016-02-24Simplify few comparison helpersVitaly Buka
Change-Id: Id2ec35da6579c81d193663353d40872a9bebda38 Reviewed-on: https://weave-review.googlesource.com/2736 Reviewed-by: Alex Vakulenko <avakulenko@google.com>
2016-02-24Moved previous comment to README fileAlex Vakulenko
The original comment was put in the wrong location. It should have been in the Google-specific README file, not in the author's change list. Change-Id: I3eb5f0baca84b76672a793fc3edea68be196150c Reviewed-on: https://weave-review.googlesource.com/2735 Reviewed-by: Alex Vakulenko <avakulenko@google.com>
2016-02-24libweave: Remove disabled compiler warnings in AOSP make fileAlex Vakulenko
This makes the compile flags match the stand-alone version of libweave. Change-Id: I63b37fe0a8f80f1e36a0e8a30e2d8a1ec63f4ba7 Reviewed-on: https://weave-review.googlesource.com/2733 Reviewed-by: Vitaly Buka <vitalybuka@google.com>
2016-02-24Merge remote-tracking branch 'weave/master' into 'weave/aosp-master'Alex Vakulenko
37994f4 Fix some of compiler warnings. ebde3c1 Rename *BlackList* into *Revocation* efbd66b Remove unused constants 5a1990f Implement revocation list check when validating auth token 51dcfad Add revocationTimestamp parameter into revocation entry 4846c44 Remove AccessBlackListManager::Unblock 958a359 Revert "debian: add debian packaging files" 7f2a5dc daemon: register device after component init 89b3495 Removing legacy API from libweave 1054d3e Move minimalRole constants from schema_constants.h to a local .cc file 9e9023e daemon/light: fix light trait def 6da60ad Fix use-after-free detected by ASAN c23ea22 Replace expirationTimeoutSec with expirationTime 7c0ea69 Rename _accessControlBlackList into _accessRevocationList 012cd98 Move mock_component_manager.h into test/ dir c6d99bb Move MockAccessBlackListManager into separate file b612e3c Reset access token secret on new black list entry d1d52e7 Add AccessBlackListManager::AddEntryAddedCallback 7fc5434 debian: add debian packaging files 634c408 Remove property from json added by mistake Change-Id: I69380e60cf9888999224fdf11a5bc35f0bc7bda2
2016-02-24Fix some of compiler warnings.Alex Vakulenko
Also re-enabled redundant warnings that no-longer occur in code. Change-Id: I900cf1d732f96aaad40bee2b6da52fe43889331a Reviewed-on: https://weave-review.googlesource.com/2732 Reviewed-by: Alex Vakulenko <avakulenko@google.com>
2016-02-24Rename *BlackList* into *Revocation*Vitaly Buka
This name matches better new trait and semantic. BUG: 27313743 Change-Id: I0cbc7b40cf14b17cfbffb7f58572a7ea6d81c542 Reviewed-on: https://weave-review.googlesource.com/2730 Reviewed-by: Alex Vakulenko <avakulenko@google.com>
2016-02-24Remove unused constantsVitaly Buka
Change-Id: I0352f364d492d86d482badca7e277c015024458b Reviewed-on: https://weave-review.googlesource.com/2729 Reviewed-by: Alex Vakulenko <avakulenko@google.com>
2016-02-24Implement revocation list check when validating auth tokenVitaly Buka
BUG: 26728665 Change-Id: Ib46df44357f1503ef3490566660288a5e09cd01e Reviewed-on: https://weave-review.googlesource.com/2728 Reviewed-by: Alex Vakulenko <avakulenko@google.com>
2016-02-24Add revocationTimestamp parameter into revocation entryVitaly Buka
BUG: 27313743 Change-Id: Ic1d5ebbe771ac3437d9340ca91840d04fa960c57 Reviewed-on: https://weave-review.googlesource.com/2727 Reviewed-by: Alex Vakulenko <avakulenko@google.com>
2016-02-24Remove AccessBlackListManager::UnblockVitaly Buka
BUG: 27313743 Change-Id: I19b06bded3ae9b14dec156380d25a05c9957a8ea Reviewed-on: https://weave-review.googlesource.com/2726 Reviewed-by: Alex Vakulenko <avakulenko@google.com>
2016-02-24Revert "debian: add debian packaging files"Johan Euphrosine
This reverts commit 7fc543408c832332849da9a7c306bcba4077756a. Change-Id: I9cc1d5a178a453538652412c8c802f88fe30022e Reviewed-on: https://weave-review.googlesource.com/2710 Reviewed-by: Vitaly Buka <vitalybuka@google.com>
2016-02-24daemon: register device after component initJohan Euphrosine
Bug:27276010 Change-Id: I97b2d00b5a8ca3c716ff3d8f2b042e2242579f28 Reviewed-on: https://weave-review.googlesource.com/2713 Reviewed-by: Johan Euphrosine <proppy@google.com>
2016-02-24Removing legacy API from libweaveAlex Vakulenko
It's been awhile since we switched to the new components/traits model. Removing the legacy state/commandDef APIs now. BUG:25917432 Change-Id: I824e65248ceebc3624fb1e1ea0d32bbc1b8513c0 Reviewed-on: https://weave-review.googlesource.com/2720 Reviewed-by: Vitaly Buka <vitalybuka@google.com>
2016-02-24Move minimalRole constants from schema_constants.h to a local .cc fileAlex Vakulenko
These constants are not being used outside of component_manager_impl.cc and they will be used for both command and state attributes, so the namespaces for the constants are no longer applicable either. BUG:24622262 Change-Id: I178c07cca7d4620d0eb0aad3f54d2428a09d01e8 Reviewed-on: https://weave-review.googlesource.com/2719 Reviewed-by: Alex Vakulenko <avakulenko@google.com>
2016-02-23daemon/light: fix light trait defJohan Euphrosine
Change-Id: Ifc7e60ff661a98eaca2169f77c9e2caa198dd8c2 Reviewed-on: https://weave-review.googlesource.com/2715 Reviewed-by: Vitaly Buka <vitalybuka@google.com>
2016-02-23Fix use-after-free detected by ASANVitaly Buka
Change-Id: Iba1c55f7f32b74f1d3b4ce31bec092527f83e5c8 Reviewed-on: https://weave-review.googlesource.com/2712 Reviewed-by: Alex Vakulenko <avakulenko@google.com>
2016-02-23Replace expirationTimeoutSec with expirationTimeVitaly Buka
expirationTimeoutSec was relative time. expirationTime is absolute j2000 time. BUG: 27313743 Change-Id: I9a6d04cf5c9f623a36e815dc2466cf93d9a6a608 Reviewed-on: https://weave-review.googlesource.com/2711 Reviewed-by: Alex Vakulenko <avakulenko@google.com>
2016-02-23Rename _accessControlBlackList into _accessRevocationListVitaly Buka
Remove "unblock" command. Remove "size" state property. BUG: 27313743 Change-Id: I21d8e589d1777c49be98e20bef6f2c151ae27591 Reviewed-on: https://weave-review.googlesource.com/2709 Reviewed-by: Alex Vakulenko <avakulenko@google.com>
2016-02-23Move mock_component_manager.h into test/ dirVitaly Buka
Change-Id: I4c3f95174a7fa83d9fc04fc75a89e4f908bb615a Reviewed-on: https://weave-review.googlesource.com/2707 Reviewed-by: Alex Vakulenko <avakulenko@google.com>
2016-02-23Move MockAccessBlackListManager into separate fileVitaly Buka
BUG: 27300728 Change-Id: I6fff85d623bdfd87df9772f8e982b4bd24c55124 Reviewed-on: https://weave-review.googlesource.com/2706 Reviewed-by: Vitaly Buka <vitalybuka@google.com>
2016-02-23Reset access token secret on new black list entryVitaly Buka
To avoid checking all access tokens against black list, we just invalidate all of them to make clients to go through auth API. BUG:27300728 Change-Id: Iddf08e076037469db9dc859288645a8fe2991914 Reviewed-on: https://weave-review.googlesource.com/2708 Reviewed-by: Vitaly Buka <vitalybuka@google.com>
2016-02-23Add AccessBlackListManager::AddEntryAddedCallbackVitaly Buka
Auth manager will listen to this and reset access code on event. BUG:27300728 Change-Id: Idab52425fc5d1b8b7f34af3b9403cb6a37f6b709 Reviewed-on: https://weave-review.googlesource.com/2705 Reviewed-by: Alex Vakulenko <avakulenko@google.com>
2016-02-22debian: add debian packaging filesStefan Sauer
This setup will create 3 packages: the library, its debug symbols and the devel package. Change-Id: I5c60a7636a385827a94ab23bd34033730effb10a Reviewed-on: https://weave-review.googlesource.com/1310 Reviewed-by: Johan Euphrosine <proppy@google.com>
2016-02-11Remove property from json added by mistakeVitaly Buka
Change-Id: Ie62b8f25a88847b8cc6ecdfa0ef5bac9ec28f239 Reviewed-on: https://weave-review.googlesource.com/2602 Reviewed-by: Vitaly Buka <vitalybuka@google.com>
2016-02-10Merge master into aosp-masterVitaly Buka
3e86099 Replace ' in json constants with " 8b00597 Implement privet properties for changing cloud print endpoints 1e019fa Replace URL with Url in identifiers 03ee8ac Enable support of endpoints override. Change-Id: I7732dce63d7c349aa71093dff2cc3db2cb94569a
2016-02-10Replace ' in json constants with "Vitaly Buka
Change-Id: I61d743796fc240038be78dae95243fba157b7062 Reviewed-on: https://weave-review.googlesource.com/2600 Reviewed-by: Alex Vakulenko <avakulenko@google.com>
2016-02-10Implement privet properties for changing cloud print endpointsVitaly Buka
BUG:23907593 BUG:26525138 Change-Id: I377a3f6bf114a9ca04c56e19f90f970f5bcdd3f8 Reviewed-on: https://weave-review.googlesource.com/2591 Reviewed-by: Alex Vakulenko <avakulenko@google.com>
2016-02-10Replace URL with Url in identifiersVitaly Buka
Change-Id: I7189f2d49a0b5a3f800f78c4dd53ff4bc1e201b9 Reviewed-on: https://weave-review.googlesource.com/2590 Reviewed-by: Alex Vakulenko <avakulenko@google.com>
2016-02-10Enable support of endpoints override.Vitaly Buka
Endpoints can be overridden only during device registration. New endpoints will be stored in device config only on successful registration. Device will keep endpoints as pending during registration process. BUG:23907593 BUG:26525138 Change-Id: I2a2ddcbad19746d631a78b33f7305da1c0bb07fb Reviewed-on: https://weave-review.googlesource.com/2203 Reviewed-by: Alex Vakulenko <avakulenko@google.com>
2016-02-09f51743b Update macaroon library to 307f45bcd49f9e4088e622f23f3ce0e854345b93Vitaly Buka
* weave/master: Update macaroon library to 307f45bcd49f9e4088e622f23f3ce0e854345b93
2016-02-09Update macaroon library to 307f45bcd49f9e4088e622f23f3ce0e854345b93Vitaly Buka
Change-Id: I5e0054c0e07878d96bad781685bf23f5ae4068e2 Reviewed-on: https://weave-review.googlesource.com/2584 Reviewed-by: Alex Vakulenko <avakulenko@google.com>