From 73962022aac7bec8f46b372eeaa9294f97b8b75c Mon Sep 17 00:00:00 2001
From: Tore Brede <Tore.Brede@uib.no>
Date: Fri, 12 Nov 2021 14:29:49 +0100
Subject: [PATCH] Fixing exception thrown because get-method not found

---
 gregui/authentication/auth_backends.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/gregui/authentication/auth_backends.py b/gregui/authentication/auth_backends.py
index a296b9a7..7243715b 100644
--- a/gregui/authentication/auth_backends.py
+++ b/gregui/authentication/auth_backends.py
@@ -582,7 +582,7 @@ class GregOIDCBackend(ValidatingOIDCBackend):
                     "user_profile_update",
                     person=user_profile.person,
                     sponsor=sponsor,
-                    feide_id=user_profile.get("userid_feide", None),
+                    feide_id=user_profile.userid_feide,
                 )
                 return user_profile
 
-- 
GitLab