From 9f7e7ef98036b51f00d53b5549f814e854dfcef5 Mon Sep 17 00:00:00 2001 From: justcool393 Date: Thu, 16 Feb 2023 23:35:57 -0600 Subject: [PATCH] oauth: fix length constraints --- files/classes/clients.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/files/classes/clients.py b/files/classes/clients.py index d6147fc18..731c4b785 100644 --- a/files/classes/clients.py +++ b/files/classes/clients.py @@ -16,7 +16,7 @@ class OauthApp(Base): ) id = Column(Integer, primary_key=True) - client_id = Column(String) + client_id = Column(String(length=64)) app_name = Column(String(length=50), nullable=False) redirect_uri = Column(String(length=50), nullable=False) description = Column(String(length=256), nullable=False) @@ -74,7 +74,7 @@ class ClientAuth(Base): user_id = Column(Integer, ForeignKey("users.id"), primary_key=True) oauth_client = Column(Integer, ForeignKey("oauth_apps.id"), primary_key=True) - access_token = Column(String, nullable=False) + access_token = Column(String(128), nullable=False) user = relationship("User", viewonly=True) application = relationship("OauthApp", viewonly=True)