From 10f2aa0dd9ebe3bad36c7bb2947659cbacb79c0f Mon Sep 17 00:00:00 2001
From: Christian Boettcher <c.boettcher@fz-juelich.de>
Date: Wed, 19 May 2021 15:42:21 +0200
Subject: [PATCH] some dependencies have deprecated elements while dropping
 python2 support. While this has been fixed in the dependency project, its
 still waiting for a release Because of this, this etremely dirty warning
 filter was added. It should be removed as soon as possible

---
 apiserver/security/user.py | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/apiserver/security/user.py b/apiserver/security/user.py
index cf3648d..6473561 100644
--- a/apiserver/security/user.py
+++ b/apiserver/security/user.py
@@ -11,7 +11,10 @@ from datetime import datetime, timedelta
 
 from passlib.context import CryptContext
 
-from jose import JWTError, jwt
+import warnings
+with warnings.catch_warnings():
+    warnings.filterwarnings('ignore', message='int_from_bytes is deprecated')
+    from jose import JWTError, jwt
 
 from apiserver.config import ApiserverSettings
 
-- 
GitLab