def get(self): if users.oauth_decorator.has_credentials(): authorized_url = self.request.get('origin') or routes.configs.get_default_redirect_after_signin().url return self.redirect(authorized_url) else: template_values = { 'authorize_url': users.oauth_decorator.authorize_url() } return templater.write(template_values=template_values)
def get(self): if users.oauth_decorator.has_credentials(): authorized_url = self.request.get( 'origin') or routes.configs.get_default_redirect_after_signin( ).url return self.redirect(authorized_url) else: template_values = { 'authorize_url': users.oauth_decorator.authorize_url() } return templater.write(template_values=template_values)
def get(self): # Write template configured for current route return templater.write()