Commit Graph

59 Commits

Author SHA1 Message Date
Rick Watson
f88520db44 experimenting with some refactoring 2019-07-14 22:13:26 +01:00
Rick Watson
bbcdf3defb fix minor build issue under esp8266 2019-06-25 23:31:58 +01:00
Rick Watson
382299a828 WiFi driver must be managed by arduino, use arduino to init the driver for esp32 core. 2019-06-07 20:15:35 +01:00
Rick Watson
cf2a20fbd4 Fix crash on startup when not configured - ESP32 2019-06-07 20:08:46 +01:00
Rick Watson
142235c355 Fix issue with ota service not restarting properly - mdns not being shut down without calling end(). 2019-06-07 19:47:59 +01:00
Rick Watson
4089b32941 fix issue, using wrong even in esp32 2019-06-05 23:56:56 +01:00
Rick Watson
2eb34e83f8 Access Point only comes back up if WiFi is properly disconnected on failures. 2019-06-05 00:05:16 +01:00
Rick Watson
e7248c4774 leave WiFi disconnected by default
implement controlled retry - fixed at 60 seconds
2019-06-04 21:13:55 +01:00
Rick Watson
94656de3c0 fix compiler warning about integer comparison 2019-06-04 20:05:43 +01:00
Rick Watson
3157b7d3ef minor tweeks from code review 2019-06-03 21:05:02 +01:00
Rick Watson
bfa94b79d1 resolve use of VLA in JWT encoder function 2019-06-02 23:31:00 +01:00
Rick Watson
9c680e8826 Resolve some typos
Use nullptr over NULL
Fix confusing regexp
Fix issue with non-compliant JWT encoding
2019-06-02 23:15:56 +01:00
Rick Watson
0708a54780 secure remaining endpoints to authenticated users 2019-05-31 19:58:33 +01:00
Rick Watson
73433586b6 add security to all admin endpoints 2019-05-29 23:48:16 +01:00
Rick Watson
71e5830d6c rename endpoint 2019-05-27 21:21:05 +01:00
Rick Watson
b11c508d77 introduce basic system status page 2019-05-27 00:04:29 +01:00
Rick Watson
6e5b35978a add security form, begin work on routing 2019-05-26 19:09:34 +01:00
Rick Watson
4fdc3eee66 fix encoding where signature contains a zero 2019-05-25 17:41:27 +01:00
Rick Watson
6935b63706 remove roles, as a simplification 2019-05-25 09:45:49 +01:00
Rick Watson
0c630f0f93 Upgrade to material ui 4
Add user management and roles - TBA
Menu Label Renames - TBA
2019-05-24 12:19:27 +01:00
Rick Watson
396d0333b6 More specific access control headers to support cross origin Authorization
Pretty sign in page
Verify existing JWT on application mount
2019-05-19 17:51:57 +01:00
Rick Watson
04e852f7d9 add authentication service 2019-05-18 19:35:27 +01:00
Rick Watson
7817010533 WIP - more experimenting with the security manager 2019-05-16 00:19:41 +01:00
Rick Watson
e63a8c4b75 use SDK provided encoder, rather than pulling in library 2019-05-11 15:11:11 +01:00
Rick Watson
a4220d631d Remove un-necessarry HMAC implementation, use SDK provided implementation 2019-05-06 22:40:24 +01:00
Rick Watson
079f134aa9 resolve issue with test endpoint 2019-05-06 21:46:28 +01:00
Rick Watson
6700610d35 messing around with JWT implementation 2019-05-06 15:50:19 +01:00
Rick Watson
41ace49d5c add JWT encoding 2019-05-03 00:31:20 +01:00
Rick Watson
eca14cf81c playing with some ideas for security management 2019-04-30 23:49:28 +01:00
Rick Watson
a05129be38 Merge branch 'master' into ft_user_security 2019-04-30 00:30:54 +01:00
Rick Watson
416e736ea9 Start work on security manager 2019-04-30 00:30:43 +01:00
Rick Watson
a98f1d4504 Remove redundant servicePath variable from SettingsPersistence 2019-04-30 00:30:09 +01:00
Rick Watson
e8de21aaf4 add mac address to wifi status page 2019-04-29 22:15:07 +01:00
Rick Watson
59d2646823 Minor formatting fixes 2019-04-28 08:32:48 +01:00
pcniatic
2131d86224 [ESP8266/ESP32] Problem setting hostname while on dynamic ip. (#17)
20 - Device does not change from static IP mode correctly
21 - DHCP hostname is not correctly configured (ESP32 & esp8266)
2019-04-28 08:19:33 +01:00
Rick Watson
520f761f74 add missing newline to connection message 2019-04-27 23:41:11 +01:00
Mauro De Lucca
b75cee0b30 Improving readIP function
Change logic to first check if JsonVariant is a String.
2019-04-26 23:07:40 -04:00
Mauro De Lucca
5b0c3e29a1 Corrected issues while enabling static IP on web.
For some reason root[key] is false and it always sets INADDR_NONE to _ip.
2019-04-21 21:55:43 -04:00
rjwats
e68b7627f2
Arduinojson6 (#8)
* Remove redundant AuthSettingsService. Will re-implement properly soon using JWT.

* Support ArduinoJson >= 6.0.0

* Fix ArduinoJson version to 6.x.x
2019-04-14 08:52:40 +01:00
Rick Watson
d03c03fd9d Remove refrence to SPIFFS global from persistence code, factor out persistence code so it can be re-used. 2018-12-10 22:35:12 +00:00
Rick Watson
2f508c738f Update README.md
Disable conversion function when not building for ESP8266
2018-11-11 20:10:21 +00:00
Rick Watson
81d594f899 Force reconfiguration of software access point when updating config or initializing APSettingsService instance. 2018-11-11 19:44:20 +00:00
Rick Watson
30fab72690 Fix mistake in wifi scanner implementation 2018-11-11 18:35:33 +00:00
Rick Watson
83451e7d47 Unify approach for presenting security modes across esp32 and esp8266 2018-11-11 18:24:59 +00:00
Rick Watson
cc7acab37c Modify compression scheme - no longer compressing index.html due to issues serving compressed file directly with .send on esp32
Removed css from compression plugin - using CSS-in-JS in app
Introduce favicon - add mapping for favicon.ico, was previously sending html response for requests for the favicon
2018-11-11 17:53:58 +00:00
Rick Watson
14820616a6 Add code and required to support differences between eps32 and esp8266 environments 2018-11-11 17:47:44 +00:00
Rick Watson
26a03b5ccf preprocessor includes for esp8266 and esp32 environments 2018-11-11 16:44:29 +00:00
Rick Watson
1521b135e1 Minor simplification of includes 2018-11-11 16:36:41 +00:00
Rick Watson
167cfa283b fix some basic type issues:
use size_t for size as async web server uses this type internally
use uint8_t for provision mode, we only have 3 values
address warnings about ordering initializers
2018-10-23 15:23:46 +01:00
Rick Watson
b197ee8a80 calculate elapsed time rather than storing next fire time - avoids overflow issues 2018-10-23 13:55:25 +01:00