Beispiel #1
0
	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})
Beispiel #2
0
	def did_fail(self):
		if not self.have_valid_create_leaf:
			raise http.Unauthorized()
		redirect_to(self.create_leaf)
Beispiel #3
0
	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)