Token length increased to 255 31/7631/1
authorEduardo Sousa <eduardo.sousa@canonical.com>
Fri, 7 Jun 2019 08:35:07 +0000 (09:35 +0100)
committerEduardo Sousa <eduardo.sousa@canonical.com>
Fri, 7 Jun 2019 08:35:11 +0000 (09:35 +0100)
Token length needs to be bigger than 205 to accomodate
Fernet tokens from Keystone.

Change-Id: I7fba58047ec3eace496db6f76dbb3e840f4d9364
Signed-off-by: Eduardo Sousa <eduardo.sousa@canonical.com>
authosm/models.py

index 790e684..d03e6d2 100644 (file)
@@ -67,7 +67,7 @@ class AbstractOsmUser(AbstractBaseUser, PermissionsMixin):
     current_project = models.CharField(_('project_id'), max_length=255)
 
     psw = models.CharField(_('psw'), max_length=36)
-    token = models.CharField(_('token'), max_length=36)
+    token = models.CharField(_('token'), max_length=255)
     project_id = models.CharField(_('project_id'), max_length=36)
     token_expires = models.FloatField(_('token_expires'), max_length=36)