Redirect from auth backend

17 views
Skip to first unread message

roboslone -

unread,
May 5, 2017, 7:55:00 AM5/5/17
to django...@googlegroups.com
Hello,

I have an authentication backend, that authenticates users against a remote service using session cookie.
Mentioned cookie can expire and remote service requires users to refresh it by visiting that service's URL (https://auth-service.com/renew?...).

Cookie expiration is managed by that remote service, so my auth backend knows when cookie needs to be renewed before authenticating the user.

Is there a way to redirect user from auth backend?

Ryan Nowakowski

unread,
May 7, 2017, 11:58:55 PM5/7/17
to django...@googlegroups.com
Usually the login_required decorator does this kind of thing for me.
Reply all
Reply to author
Forward
0 new messages