Skip to content

Commit f80a4a2

Browse files
committed
OTP and OATH
1 parent 892d2a4 commit f80a4a2

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

ark_sdk_python/auth/identity/ark_identity.py

+8-1
Original file line numberDiff line numberDiff line change
@@ -314,7 +314,14 @@ def __poll_authentication(
314314
self.__stop_input_process()
315315

316316
def __pick_mechanism(self, challenge: Challenge) -> Mechanism:
317-
factors = {'otp': '📲 Push / Code', 'oath': '📲 Push / Code', 'sms': '📟 SMS', 'email': '📧 Email', 'pf': '📞 Phone call', 'up': '🔑 User Password',}
317+
factors = {
318+
'otp': '📲 Push / Code',
319+
'oath': '📲 Push / Code',
320+
'sms': '📟 SMS',
321+
'email': '📧 Email',
322+
'pf': '📞 Phone call',
323+
'up': '🔑 User Password',
324+
}
318325
supported_mechanisms = [m for m in challenge.mechanisms if m.name.lower() in SUPPORTED_MECHANISMS]
319326
answers = inquirer.prompt(
320327
[

0 commit comments

Comments
 (0)