Skip to content

Commit

Permalink
This corrects an issue with the validation of the org url and app url…
Browse files Browse the repository at this point in the history
… when using action-configure
  • Loading branch information
magni2000 committed Dec 1, 2022
1 parent 3b79892 commit 555786d
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 555786d

Please sign in to comment.