<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def unauthorized_callback(self):
 """ Redirect to login url with next param set as request.url """

        return redirect(self.login_url(params=dict(next=request.url)))