From 704b435918d8b98d999e0796baabd5a81e922c19 Mon Sep 17 00:00:00 2001 From: Patrick Decat Date: Fri, 28 Oct 2022 19:43:09 +0200 Subject: [PATCH] Update --duo-factor and --duo-device help messages --- README.md | 8 ++++---- aws_adfs/login.py | 4 ++-- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/README.md b/README.md index 16088d4..b2fab5e 100644 --- a/README.md +++ b/README.md @@ -282,15 +282,15 @@ aws-adfs integrates with: --duo-factor TEXT Use a specific Duo factor, overriding the default one configured server side. Known Duo factors that can be used with aws-adfs - are "Duo Push", "Phone Call", "WebAuthn - Security Key" and "Passcode". + are "Duo Push", "Passcode", "Phone Call" and + "WebAuthn Security Key". --duo-device TEXT Use a specific Duo device, overriding the default one configured server side. Depends heavily on the Duo factor used. Known Duo devices that can be used with aws-adfs are "phone1" for "Duo Push" and "Phone Call" - factors. For "WebAuthn Security Key" factor, - it is always "None". + factors. For "Passcode" and "WebAuthn + Security Key" factors, it is always "None". --enforce-role-arn Only allow the role passed in by --role-arn. --help Show this message and exit. ``` diff --git a/aws_adfs/login.py b/aws_adfs/login.py index c5426ec..d5d0f9f 100644 --- a/aws_adfs/login.py +++ b/aws_adfs/login.py @@ -134,11 +134,11 @@ ) @click.option( "--duo-factor", - help=f'Use a specific Duo factor, overriding the default one configured server side. Known Duo factors that can be used with aws-adfs are "{DUO_UNIVERSAL_PROMPT_FACTOR_DUO_PUSH}", "{DUO_UNIVERSAL_PROMPT_FACTOR_PHONE_CALL}", "{DUO_UNIVERSAL_PROMPT_FACTOR_WEBAUTHN}" and "{DUO_UNIVERSAL_PROMPT_FACTOR_PASSCODE}".', + help=f'Use a specific Duo factor, overriding the default one configured server side. Known Duo factors that can be used with aws-adfs are "{DUO_UNIVERSAL_PROMPT_FACTOR_DUO_PUSH}", "{DUO_UNIVERSAL_PROMPT_FACTOR_PASSCODE}", "{DUO_UNIVERSAL_PROMPT_FACTOR_PHONE_CALL}" and "{DUO_UNIVERSAL_PROMPT_FACTOR_WEBAUTHN}".', ) @click.option( "--duo-device", - help=f'Use a specific Duo device, overriding the default one configured server side. Depends heavily on the Duo factor used. Known Duo devices that can be used with aws-adfs are "phone1" for "{DUO_UNIVERSAL_PROMPT_FACTOR_DUO_PUSH}" and "{DUO_UNIVERSAL_PROMPT_FACTOR_PHONE_CALL}" factors. For "{DUO_UNIVERSAL_PROMPT_FACTOR_WEBAUTHN}" factor, it is always "None".', + help=f'Use a specific Duo device, overriding the default one configured server side. Depends heavily on the Duo factor used. Known Duo devices that can be used with aws-adfs are "phone1" for "{DUO_UNIVERSAL_PROMPT_FACTOR_DUO_PUSH}" and "{DUO_UNIVERSAL_PROMPT_FACTOR_PHONE_CALL}" factors. For "{DUO_UNIVERSAL_PROMPT_FACTOR_PASSCODE}" and "{DUO_UNIVERSAL_PROMPT_FACTOR_WEBAUTHN}" factors, it is always "None".', ) @click.option( "--enforce-role-arn",