Beispiel #1
0
 def pack(self):
     args = dict()
     for cookie in [JBoxCookies.COOKIE_SESS, JBoxCookies.COOKIE_INSTANCEID, JBoxCookies.COOKIE_AUTH]:
         args[cookie] = self.get_cookie(cookie)
     for cookie in self.cookies:
         if cookie.startswith(JBoxCookies.COOKIE_PFX_PORT):
             args[cookie] = self.get_cookie(cookie)
     return tornado.escape.url_escape(base64.b64encode(encrypt(json.dumps(args), JBoxCfg.get('sesskey'))))
Beispiel #2
0
 def pack(self):
     args = dict()
     for cookie in [
             JBoxCookies.COOKIE_SESS, JBoxCookies.COOKIE_INSTANCEID,
             JBoxCookies.COOKIE_AUTH
     ]:
         args[cookie] = self.get_cookie(cookie)
     for cookie in self.cookies:
         if cookie.startswith(JBoxCookies.COOKIE_PFX_PORT):
             args[cookie] = self.get_cookie(cookie)
     return tornado.escape.url_escape(
         base64.b64encode(encrypt(json.dumps(args),
                                  JBoxCfg.get('sesskey'))))
Beispiel #3
0
 def set_gtok(self, gtok):
     self.set_attrib('gtok', encrypt(gtok, self.enckey()))
Beispiel #4
0
 def set_gtok(self, gtok):
     self.set_attrib('gtok', encrypt(gtok, self.enckey()))