Skip to content

Commit 8f989b2

Browse files
committed
security fix; per github security
1 parent bd461ba commit 8f989b2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/fides/api/schemas/connection_configuration/connection_secrets_okta.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ def validate_okta_org_url(cls, value: str) -> str:
4949
f"Okta organization URL must be from okta.com domain (got: {parsed.netloc})"
5050
)
5151

52-
if "-admin.okta.com" in parsed.netloc:
52+
if parsed.hostname and parsed.hostname.endswith("-admin.okta.com"):
5353
raise ValueError(
5454
"Admin organization URLs (-admin.okta.com) are not supported. "
5555
"Use your main organization URL (e.g., https://your-org.okta.com)"

0 commit comments

Comments
 (0)