django-auto-logout icon indicating copy to clipboard operation
django-auto-logout copied to clipboard

Need ability to customize logout function

Open radiophysicist opened this issue 1 year ago • 2 comments

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

radiophysicist avatar Aug 21 '24 17:08 radiophysicist

Sorry for late. Health issues. Can you give me tests - i'll fix it.

bugov avatar Oct 30 '24 08:10 bugov

Hello!

Good health to you. Do you mean unit tests or what?

radiophysicist avatar Nov 15 '24 09:11 radiophysicist

It's merged. I'll do additional work later. See the difference in 0.6.0

bugov avatar Sep 21 '25 00:09 bugov