Usually the login_required decorator does this kind of thing for me.

On May 5, 2017 6:53:21 AM CDT, roboslone - <robosl...@gmail.com> wrote:
>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?
>
>-- 
>You received this message because you are subscribed to the Google
>Groups "Django users" group.
>To unsubscribe from this group and stop receiving emails from it, send
>an email to django-users+unsubscr...@googlegroups.com.
>To post to this group, send email to django-users@googlegroups.com.
>Visit this group at https://groups.google.com/group/django-users.
>To view this discussion on the web visit
>https://groups.google.com/d/msgid/django-users/65F31125-3021-4D05-831D-24B814DBC495%40gmail.com.
>For more options, visit https://groups.google.com/d/optout.

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-users+unsubscr...@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/691F50C2-3B37-43D4-B3FA-935277502FE7%40fattuba.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to