xtreme22886 / SmartThings_Unifi-Presence-REST

REST API server to bridge SmartThings with an Unifi Controller
GNU General Public License v3.0
2 stars 0 forks source link

Excessive Authentication #3

Closed MHedish closed 4 years ago

MHedish commented 4 years ago

Looking at the USG logs, there are quite a lot of AUTHs going on:

image

That's 12 times a minute (naturally since that's the polling frequency).

I turned off logging Admin Login events on the USG for now but that doesn't really work. Now there's no way to log unauthorized logins. My log was just filled with these.

I see your logging and out of the API at each CheckPresence. Could the session be made persistent with a 'remember=true" or, at the very least, just not clear the cookie each check. API Doc

Since all this activity is all local, I'm not too worried about the sessions between Docker and the USG being hijacked. 😉

BTW -- I've been running this for almost a week now, tracking 5 phones. I have a couple of tweaks for you (besides this one) but it's been really solid so far.

xtreme22886 commented 4 years ago

Thanks for pushing me to program better! I really do appreciate it :). Please download the new Docker image and let me know if your USG logs are getting a breather now.

I'm anxious to see what else you have for me haha

MHedish commented 4 years ago

Seems to be working just fine now. I've turned the auth alerts back on and all is quiet. :grin:

Thanks again for the quick response.