Beispiel #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
Beispiel #2
0
 def secure(self):
     return keymaster.get(DOMAIN_ACCOUNT) == self.request.get('secret')
Beispiel #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
Beispiel #4
0
 def secure(self):
     return keymaster.get(DOMAIN_ACCOUNT) == self.request.get('secret')