Skip to content

Commit

Permalink
Merge pull request #375 from magni2000/correct_config_url_validation
Browse files Browse the repository at this point in the history
This corrects an issue with the validation of the org url and app url…
  • Loading branch information
epierce authored Dec 21, 2022
2 parents b6a37cc + 555786d commit 5034e62
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions gimme_aws_creds/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand Down Expand Up @@ -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(
Expand Down

0 comments on commit 5034e62

Please sign in to comment.