zoneminder/web/api/app
Isaac Connor 84492f29b1
Fix token auth sessions (#2676)
* If token is present do token based auth and do not do anything with session

* update HostController.  Use config constants, don't use sessions

* Remove Session from the components list

* spacing

* Remove Session from App Components list.

* Move APIEnabled check to the api from auth.php

* Rework auth.  login using username and password only occurs on login action now.  Including auth.php should not touch the session.  auth_hash logins no longer touch the session.  replace userLogin with a function called validateUser which matches the semantics of validateToken.

* remove debugging

* Add session storage if stateful query param is on, but only for LEGACY_API_AUTH

* fix mUser to username, etc.

* shuffle lines

* use  instead of session when generating auth hash.

* Add docs regarding the use of cookies and stateful query param

* Only open/close session if we are clearing a session var

* Use zm_session_start instead of session_start

* Should use zm_session_start instead of session_start

* document that zm_session_start should be called previously to session_regenerate_id

* Don't actually write out the session when generating auth hashes.  Means they should never actually persist.

* More backticking of SQL

* add .. to fix #2686

* Use material icons for sort because they look nicer

* fix typo

* have to add authhash to session on login

* restore username&password login for all urls

* fix

* fixes
2019-08-20 09:46:53 -04:00
..
Config need to prefix with _dir_ otherwise relative to initial script (#2531) 2019-02-17 11:31:10 -05:00
Console further merges from cakephp 2.10.8 2018-03-21 13:09:55 -04:00
Controller Fix token auth sessions (#2676) 2019-08-20 09:46:53 -04:00
Model Can't use this->data to avoid another db hit. Must load by id 2019-04-01 10:11:56 -04:00
Plugin fixup half-merged changes to filter to view in montagereview 2019-04-08 16:57:41 -04:00
View add templates for daemonControl to api 2018-11-14 12:54:40 -05:00
vendor Merged Angular UI branch API to master 2015-06-11 02:58:58 +00:00
webroot Migrate Webcache out of webroot (#2083) 2018-04-19 15:01:46 -04:00
index.php Moved the api to underneath the web directory 2014-04-29 20:41:04 +00:00