Skip to content

Commit

Permalink
Fix style
Browse files Browse the repository at this point in the history
  • Loading branch information
micafer committed May 3, 2024
1 parent 6e650d8 commit 5f9a040
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions IM/InfrastructureManager.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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))
Expand Down

0 comments on commit 5f9a040

Please sign in to comment.