Example #1
0
def refresh_token():
    client = gdata.apps.service.AppsService(
        domain=DOMAIN_ACCOUNT.split('@')[1])
    client.ClientLogin(DOMAIN_ACCOUNT, keymaster.get(DOMAIN_ACCOUNT))
    token = client.GetClientLoginToken()
    memcache.set('token', token)
    return token
Example #2
0
 def secure(self):
     return keymaster.get(DOMAIN_ACCOUNT) == self.request.get('secret')
Example #3
0
def refresh_token():
    client = gdata.apps.service.AppsService(domain=DOMAIN_ACCOUNT.split('@')[1])
    client.ClientLogin(DOMAIN_ACCOUNT, keymaster.get(DOMAIN_ACCOUNT))
    token = client.GetClientLoginToken()
    memcache.set('token', token)
    return token
Example #4
0
 def secure(self):
     return keymaster.get(DOMAIN_ACCOUNT) == self.request.get('secret')