Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Removing unused visa code #1169

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 0 additions & 19 deletions fence/job/visa_update_cronjob.py
Original file line number Diff line number Diff line change
Expand Up @@ -42,8 +42,6 @@ def __init__(
# implement a more persistent cache.
self.pkey_cache = {}

self.visa_types = config.get("USERSYNC", {}).get("visa_types", {})

# Initialize visa clients:
oidc = config.get("OPENID_CONNECT", {})
if "ras" not in oidc:
Expand Down Expand Up @@ -185,20 +183,3 @@ def _pick_client(self, user):
):
client = self.ras_client
return client

def _pick_client_from_visa(self, visa):
"""
Pick oidc client according to the visa provider
"""
client = None
if visa.type in self.visa_types["ras"]:
client = self.ras_client
else:
raise Exception(
"Visa type {} not configured in fence-config".format(visa.type)
)
if not client:
raise Exception(
"Visa Client not set up or not available for type {}".format(visa.type)
)
return client
Loading