Skip to content

Commit

Permalink
ensure we know about all configured sso providers
Browse files Browse the repository at this point in the history
  • Loading branch information
Kunsi committed Dec 23, 2024
1 parent db58151 commit 6512c60
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions util/sso/__init__.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
from conf import CONFIG
from util.sso.github import (
check_github_allowed_login,
check_github_is_admin,
Expand All @@ -20,3 +21,10 @@
},
},
}


for provider in CONFIG["oauth2_providers"]:
if provider not in SSO_CONFIG:
raise RuntimeError(
f"SSO provider {provider} found in config, but not configured."
)

0 comments on commit 6512c60

Please sign in to comment.