def did_fail(self): if not self.have_valid_create_leaf: raise http.Unauthorized() redirect_to(self.create_leaf, **{self.referrer_param: App.current.request.url})
def did_fail(self): if not self.have_valid_create_leaf: raise http.Unauthorized() redirect_to(self.create_leaf)
def did_authorize(self, user, rsp, exc): self.session[self.authorized_param] = user if self.referrer_param in self.session: referrer = self.session[self.referrer_param] del self.session[self.referrer_param] redirect_to(referrer)