Skip to content

Commit

Permalink
PA-13820 Only validating first matching auth url
Browse files Browse the repository at this point in the history
  • Loading branch information
SOOS-MMalony committed Apr 24, 2024
1 parent f5a49d7 commit 762b849
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/zap_hooks/helpers/auth.py
Original file line number Diff line number Diff line change
Expand Up @@ -122,6 +122,7 @@ def validate_authentication_url(driver, url):
sys.exit(1)
else:
log(f"Status code is {request.response.status_code} for {request.url}, authentication was successful")
break
if not url_found:
log(f"Authentication url {url} was not found, authentication failed.")
sys.exit(1)
Expand Down

0 comments on commit 762b849

Please sign in to comment.