Beispiel #1
0
class CAUser(ndb.Model):
    userID = ndb.IntegerProperty()
    username = ndb.StringProperty()
    gmail = ndb.StringProperty()
    facebook = ndb.StringProperty()
    credentials = CredentialsNDBProperty()
    secret = ndb.StringProperty()
Beispiel #2
0
class ServiceAccountStorage(ndb.Model):
    """
    Tracks access tokens in the database. The key is
    based on the scopes, user, and clientid
    """
    credentials = CredentialsNDBProperty()

    @classmethod
    def _get_kind(cls):
        return '_ferris_OAuth2ServiceAccountStorage'
Beispiel #3
0
class CredentialsModel(ndb.Model):
    credentials = CredentialsNDBProperty()
Beispiel #4
0
class UserModel(ndb.Model):
    credentials = CredentialsNDBProperty()
    user = ndb.UserProperty()
    approved = ndb.BooleanProperty(default=False)
Beispiel #5
0
class TestNDBModel(ndb.Model):
    flow = FlowNDBProperty()
    creds = CredentialsNDBProperty()
Beispiel #6
0
class CredentialsModel(ndb.Model):
    """Test"""
    credentials = CredentialsNDBProperty()