def get(self): template_values = { 'domain': os.environ['AUTH_DOMAIN'], 'message': self.request.get('Message'), 'message_color': self.request.get('message_color'), 'appspot_domain': os.environ['APPLICATION_ID']+'.appspot.com' } self.response.out.write(ds_templates.templateRender('password.html', template_values))
def get(self): template_values = {} template_values['appspot_domain'] = os.environ['APPLICATION_ID']+'.appspot.com' template_values['domain'] = os.environ['AUTH_DOMAIN'] template_values['login_template_data'] = ds_templates.getTemplate('login.html') template_values['password_template_data'] = ds_templates.getTemplate('password.html') template_values['filelist'] = filestore.getFileList() self.response.out.write(ds_templates.templateRender('edit-templates.html', template_values))
def get(self): domain = os.environ['AUTH_DOMAIN'] if self.request.get('SAMLRequest') == '': utils.gailRedirect(self, 'https://mail.google.com/a/' + domain) return requestdata = utils.unpackSAMLRequest(self, self.request.get('SAMLRequest')) age = int(requestdata['requestage']) if (age < 0) or (age > 590): # is our SAMLRequest old or invalid? utils.gailRedirect(self, 'https://mail.google.com/a/' + domain) template_values = { #we want to refresh 10 sec before SAMLRequest expires 'refresh': int(590 - age), 'samlrequest': self.request.get('SAMLRequest'), 'relaystate': self.request.get('RelayState'), 'message': self.request.get('Error'), 'message_color': 'red', 'domain': domain, 'appspot_domain': os.environ['APPLICATION_ID']+'.appspot.com' } self.response.out.write(ds_templates.templateRender('login.html', template_values))
def get(self): template_values = {} template_values['appspot_domain'] = os.environ['APPLICATION_ID']+'.appspot.com' template_values['domain'] = os.environ['AUTH_DOMAIN'] template_values['adminuser'] = ds_settings.getSetting('adminuser') template_values['adminsbecomeusers'] = ds_settings.getSetting('adminsbecomeusers') template_values['usersbecomeusers'] = ds_settings.getSetting('usersbecomeusers') template_values['adminpass'] = '******' privkey = ds_settings.getSetting('privkey') if privkey != None: gailpubkey = utils.getPubkey(self, privkey) else: gailpubkey = 'failed' googlepubkey = utils.GetGooglePubKey(self) if gailpubkey == 'failed': template_values['keymatch'] = 'GAIL has no keys!' elif googlepubkey == 'failed': template_values['keymatch'] = 'Failed to get Google Public Key' elif gailpubkey == googlepubkey: template_values['keymatch'] = 'Yes' else: template_values['keymatch'] = 'No' self.response.out.write(ds_templates.templateRender('gailadmin.html', template_values))