Closed Leglaw closed 1 year ago
From my understanding, you were using a patched version with this change before the release of v2.8.0, is that it?
What error are you facing?
Does the following change work for you?
diff --git a/aws_adfs/_duo_universal_prompt_authenticator.py b/aws_adfs/_duo_universal_prompt_authenticator.py
index 0a91fd2..fe2c623 100644
--- a/aws_adfs/_duo_universal_prompt_authenticator.py
+++ b/aws_adfs/_duo_universal_prompt_authenticator.py
@@ -40,7 +40,7 @@ from . import roles_assertion_extractor
_headers = {
"Accept-Language": "en",
"User-Agent": "Mozilla/5.0 (X11; Linux x86_64) like Gecko"
- if platform.system() == "Linux"
+ if platform.system() in ("Linux", "Darwin")
else "Mozilla/5.0 (Windows NT 6.1; WOW64; Trident/7.0; rv:11.0) like Gecko",
"Content-Type": "application/x-www-form-urlencoded; charset=UTF-8",
"Accept": "text/plain, */*; q=0.01",
Yes that patch works perfectly.
355
Without ths User-Agent identifying as Linux on macOS, we're back to a broken state for macOS users.
I and developers at our company have all successfully been using the following user-agent: