def get(self): privkey = ds_settings.getSetting('privkey') privkey_ver = ds_settings.getSetting('privkey_ver') pubkey = utils.getPubkey(self, privkey) self.response.headers['Content-Type'] = 'application/x-x509-user-cert' self.response.headers['Content-Disposition'] = 'attachment; filename="'+privkey_ver+'.der"' self.response.out.write(pubkey)
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))
def get(self): privkey = ds_settings.getSetting('privkey') pubkey = utils.getPubkey(self, privkey) gailUrl = 'https://'+os.environ['APPLICATION_ID']+'.appspot.com/' utils.putGoogleSSO(gailUrl, pubkey) utils.gailRedirect(self, '/gailadmin')