pull master, show all known mfa channels, distinguishing the enabled from the non.
@@ -381,6 +381,7 @@ class LoginV3Flow:
('TWO_FA_CT_U2F', 'U2F (FIDO Security Key)'),
('TWO_FA_CT_DUO', 'DUO'),
('TWO_FA_CT_TOTP', 'TOTP (Google Authenticator)'),
+ # ('TWO_FA_CODE_RSA', 'RSA Authenticator'),
('TWO_FA_CT_SMS', 'Send SMS Code'),
])
@@ -394,7 +395,9 @@ class LoginV3Flow:
for n, (channel_type, channel_desc) in enumerate(channel_types.items()):
if channel_type in available_channels:
- print(f"{n+1}. {channel_desc}")
+ print(f"{n+1}.\t{channel_desc}")
+ else:
+ print(f"\t{channel_desc} {bcolors.FAIL}[ NOT ENABLED ]{bcolors.ENDC}")
try:
selection: str = input('Selection: ')
@@ -425,6 +428,7 @@ class LoginV3Flow:
elif channel_type == 'TWO_FA_CODE_RSA':
logging.debug("DO RSA")
+ raise NotImplementedError("RSA Authentication not yet available in Commander.")
elif channel_type == "TWO_FA_CT_U2F":
try:
