Skip to content

Commit

Permalink
Fix for DUO Universal Prompt authentication
Browse files Browse the repository at this point in the history
Changing re.sub in line 147 of this file to look for ANY digit in front of the "v" part. We ran into an issue in our environment because the original code here was looking for v4 and our DUO setup was set to v3, so this replacement never happened and resulted in a malformed URL leading to 403 responses from the DUO server.

Signed-off-by: smxjrz <Smelecs@gmail.com>
  • Loading branch information
SMxJrz committed Jan 29, 2024
1 parent ed6d70b commit 8bdb20e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion aws_adfs/_duo_universal_prompt_authenticator.py
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,7 @@ def _perform_authentication_transaction(
ssl_verification_enabled,
):
duo_host = re.sub(
r"/frame/frameless/v4/auth.*",
r"/frame/frameless/v\d+/auth.*",
"",
duo_url,
)
Expand Down

0 comments on commit 8bdb20e

Please sign in to comment.