django-easy-audit icon indicating copy to clipboard operation
django-easy-audit copied to clipboard

Token invalidation

Open calina-c opened this issue 7 years ago • 2 comments

I installed easy audit and it seems to have some rather strange effects on my authentication. It is a REST API with Token authentication. However, only for some users, only if "easyaudit" is in INSTALLED_APPS and the middleware is activated, their tokens are instantly invalidated.

Even weirder, if I comment the easy audit stuff from installed apps and middlewares, the user can then properly log in. And if I put everything back I never have issues with that user again, only with others.

The only message I get in the console is No handlers could be found for logger "easyaudit.signals.model_signals"

I know it's a very Byzantine error, but maybe it has happened to others? I'm looking for a sane fix. Will update if I find it :)

calina-c avatar Aug 30 '18 19:08 calina-c

Hello @calina-c I can tell you that the log handler error is just telling you that there is no easyaudit logger configured. So easyaudit is trying to log something but no handler will receive it. As far as what it is logging.. you can run in debug and set a break point in the library, or easier just set up a logger and handler in your project for easyaudit.

Please let us know how we can help from there.

jheld avatar Sep 04 '18 23:09 jheld

@jheld I've switched to another logging package since it took less to switch than to debug this :D Thank you for your answer either way :)

calina-c avatar Sep 13 '18 06:09 calina-c