From c908b00b1d01558b15c51010e9bda342944f9a22 Mon Sep 17 00:00:00 2001
From: Tore Brede <Tore.Brede@uib.no>
Date: Tue, 19 Oct 2021 12:21:58 +0200
Subject: [PATCH] GREG-85: Removing adding of claims to session

---
 gregui/authentication/auth_backends.py | 6 ------
 1 file changed, 6 deletions(-)

diff --git a/gregui/authentication/auth_backends.py b/gregui/authentication/auth_backends.py
index ee021290..023092bf 100644
--- a/gregui/authentication/auth_backends.py
+++ b/gregui/authentication/auth_backends.py
@@ -184,12 +184,6 @@ class GregOIDCBackend(ValidatingOIDCBackend):
 
         try:
             user = self.UserModel.objects.filter(username=username)
-
-            # TODO Does this make sense?
-            session = self.request.session
-            for key, value in claims.items():
-                session["oidc_claim_"+key] = value
-
             return user
         except self.UserModel.DoesNotExist:
             return self.UserModel.objects.none()
-- 
GitLab