Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

High value on AUTH_HASH_TTL in zoneminder gives zmninja auth timeout problems #893

Closed
xztraz opened this issue Jan 28, 2020 · 4 comments
Closed
Labels

Comments

@xztraz
Copy link

xztraz commented Jan 28, 2020

example: Android 8.0.0
zmNinja 1.3.087
Centos 7
ZoneMinder v1.34.0

In Zoneminder config
setting AUTH_HASH_TTL to 200 works fine
setting AUTH_HASH_TTL to 2000000 don't work.

zmninja says auth is being renewed. then reports 1***9999 something minutes left on auth. then repeats again and again.. app is bombarded with auth ok messages.

@welcome
Copy link

welcome bot commented Jan 28, 2020

👋 Thanks for opening your first issue here! If you're reporting a 🐞 bug, please make sure you follow the issue template or I may not respond.

@pliablepixels
Copy link
Member

Note that in ZM AUTH_HASH_TTL is hours, so setting it to 2000000 means 7200000000 seconds. However, what you reported, if correct is a bug. Thanks.

@pliablepixels pliablepixels added bug and removed bug labels Jan 28, 2020
@pliablepixels
Copy link
Member

pliablepixels commented Jan 28, 2020

I am not seeing this issue.

  • I set AUTH_HASH_TTL to 2000000 (hrs) in ZM
  • Validated that the API returns the correct seconds:
{"access_token":"ey<deleted>Q1I","access_token_expires":7200000000,"refresh_token":"eyJ<deletedB4E","refresh_token_expires":86400,"credentials":"auth=2be<deleted>,"append_password":0,"version":"1.33.16","apiversion":"2.0"}

Then ran zmNinja and it computed correctly:

Jan 28, 2020 09:33:40 AM Inside _doLogin()
filelogger.min.js:6 Jan 28, 2020 09:33:40 AM No need for re-captcha checks with tokens
filelogger.min.js:6 Jan 28, 2020 09:33:40 AM Resetting zmCookie...
filelogger.min.js:6 Jan 28, 2020 09:33:40 AM Detected token login supported
filelogger.min.js:6 Jan 28, 2020 09:33:40 AM Access token still has 119999999 minutes left, using it
filelogger.min.js:6 Jan 28, 2020 09:33:40 AM ----> Setting token re-login after 7199999940 seconds
filelogger.min.js:6 Jan 28, 2020 09:33:40 AM auth-success broadcast:Successful

@stale
Copy link

stale bot commented Mar 13, 2020

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

@stale stale bot added the stale label Mar 13, 2020
@stale stale bot closed this as completed Mar 17, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants