diff --git a/gimme_aws_creds/config.py b/gimme_aws_creds/config.py index 08cde997..b80f223b 100644 --- a/gimme_aws_creds/config.py +++ b/gimme_aws_creds/config.py @@ -320,7 +320,7 @@ def _get_org_url_entry(self, default_entry): "okta-emea.com", ] - if url_parse_results.scheme == "https" and okta_org_url in allowlist: + if url_parse_results.scheme == "https" and any(urlelement in url_parse_results.hostname for urlelement in allowlist): okta_org_url_valid = True else: ui.default.error( @@ -366,7 +366,7 @@ def _get_appurl_entry(self, default_entry): "okta-emea.com", ] - if url_parse_results.scheme == "https" and app_url in allowlist: + if url_parse_results.scheme == "https" and any(urlelement in url_parse_results.hostname for urlelement in allowlist): okta_org_url_valid = True else: ui.default.warning(