Skip to content

Commit 8bdb20e

Browse files
committed
Fix for DUO Universal Prompt authentication
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 <[email protected]>
1 parent ed6d70b commit 8bdb20e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

aws_adfs/_duo_universal_prompt_authenticator.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -145,7 +145,7 @@ def _perform_authentication_transaction(
145145
ssl_verification_enabled,
146146
):
147147
duo_host = re.sub(
148-
r"/frame/frameless/v4/auth.*",
148+
r"/frame/frameless/v\d+/auth.*",
149149
"",
150150
duo_url,
151151
)

0 commit comments

Comments
 (0)