zoneminder/docs
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
..
_static custom theming for ZM 2015-12-19 16:53:47 -05:00
_templates Initial attempt to migrate wiki to readthedocs 2014-07-13 22:25:30 +10:00
installationguide Update debian.rst 2019-08-07 09:39:28 -05:00
userguide Update url to donate page (#2586) 2019-04-23 10:58:28 -04:00
Makefile Initial commit of Sphinx docs directory 2014-04-25 18:33:41 +00:00
README.md Added a README to the docs dir 2014-04-30 03:30:31 +00:00
api.rst Fix token auth sessions (#2676) 2019-08-20 09:46:53 -04:00
conf.py Revert to Default Theme, RTD will use their own and local builds default sphinx theme 2015-12-23 19:34:31 +11:00
contributing.rst Made content same as github README.md contributing 2015-08-16 14:49:44 -04:00
faq.rst Update faq.rst (#2680) 2019-08-08 08:47:23 -04:00
index.rst codespell: misc. spelling corrections 2016-02-08 20:41:36 +11:00

README.md

The latest version of these docs can be found at http://zoneminder.readthedocs.org/