From 8efc923308ffeb9800e75c7b74db0faabd82e20e Mon Sep 17 00:00:00 2001 From: Eduardo Sousa Date: Fri, 7 Jun 2019 09:35:07 +0100 Subject: [PATCH] Token length increased to 255 Token length needs to be bigger than 205 to accomodate Fernet tokens from Keystone. Change-Id: I7fba58047ec3eace496db6f76dbb3e840f4d9364 Signed-off-by: Eduardo Sousa --- authosm/models.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/authosm/models.py b/authosm/models.py index 790e684..d03e6d2 100644 --- a/authosm/models.py +++ b/authosm/models.py @@ -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) -- 2.17.1