sergeknystautas / relationships-googlecal-ktor

Apache License 2.0
2 stars 0 forks source link

Log of who has used the app #6

Closed sergeknystautas closed 3 years ago

sergeknystautas commented 3 years ago

Right now I have no idea what users have accessed this. Either send an email each time someone uses it as a super dumb/start, or ideally create a database that stores who has signed in, and when the last time they signed in, and maybe track how many times they've signed in. I guess an authentication log might be better if that's the use case.

Anyway, see who is using it.

sergeknystautas commented 3 years ago

It looks like a simple solution is to create a nice log message (right now it's dumps the JSON from the oauth response), with a good prefix, then create a saved search in Papertrail, then have an email alert on that saved search that fires daily.

sergeknystautas commented 3 years ago

Pushed a commit live that cleans up the logging of successful sign ins, and created the papertrail filter and alert. Will close ticket when I get the daily email.

sergeknystautas commented 3 years ago

Got the email of my 5 successful logins so closing out.