From 5f9a040bc11df6ea0f55d2d9f605a0b327af617a Mon Sep 17 00:00:00 2001 From: Miguel Caballer Date: Fri, 3 May 2024 12:55:17 +0200 Subject: [PATCH] Fix style --- IM/InfrastructureManager.py | 2 -- 1 file changed, 2 deletions(-) diff --git a/IM/InfrastructureManager.py b/IM/InfrastructureManager.py index b6e311ce..1612fc27 100644 --- a/IM/InfrastructureManager.py +++ b/IM/InfrastructureManager.py @@ -1426,7 +1426,6 @@ def check_oidc_token(im_auth): issuer += '/' im_auth['password'] = issuer + str(userinfo.get("sub")) - if Config.OIDC_GROUPS: # Get user groups from any of the possible fields user_groups = userinfo.get('groups', # Generic @@ -1438,7 +1437,6 @@ def check_oidc_token(im_auth): raise InvaliddUserException("Invalid InfrastructureManager credentials. " + "User not in configured groups.") - except Exception as ex: InfrastructureManager.logger.exception("Error trying to validate OIDC auth token: %s" % str(ex)) raise Exception("Error trying to validate OIDC auth token: %s" % str(ex))