Sunday, May 7, 2017

Re: Redirect from auth backend

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

On May 5, 2017 6:53:21 AM CDT, roboslone - <roboslone@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?

No comments:

Post a Comment