class CAUser(ndb.Model): userID = ndb.IntegerProperty() username = ndb.StringProperty() gmail = ndb.StringProperty() facebook = ndb.StringProperty() credentials = CredentialsNDBProperty() secret = ndb.StringProperty()
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'
class CredentialsModel(ndb.Model): credentials = CredentialsNDBProperty()
class UserModel(ndb.Model): credentials = CredentialsNDBProperty() user = ndb.UserProperty() approved = ndb.BooleanProperty(default=False)
class TestNDBModel(ndb.Model): flow = FlowNDBProperty() creds = CredentialsNDBProperty()
class CredentialsModel(ndb.Model): """Test""" credentials = CredentialsNDBProperty()