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))