Need ability to customize logout function
Hello!
Recently I tried to use django-auto-logout to auto-terminate user sessions in my current django project.
It is also using django-oauth2-authcodeflow to autentificate users via Oauth2 provider.
In such a configuration it is not enough to just call to django.contrib.auth.logout() to terminate session.
It is necessary to notify auth provider on session termination using redirect to special URL (i.e. returning HttpResponseRedirect).
Please consider PR adding ability to specify custom function called when session termination is required: https://github.com/bugov/django-auto-logout/pull/21
Sorry for late. Health issues. Can you give me tests - i'll fix it.
Hello!
Good health to you. Do you mean unit tests or what?
It's merged. I'll do additional work later. See the difference in 0.6.0