Skip to content

Commit 40b8686

Browse files
authored
OTP and OATH (#36)
* OTP and OATH * OTP and OATH
1 parent 5666238 commit 40b8686

File tree

2 files changed

+10
-3
lines changed

2 files changed

+10
-3
lines changed

ark_sdk_python/auth/identity/ark_identity.py

+9-2
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@
4242
RECV_PIPE_INTERVAL: Final[int] = 3.0
4343
POLL_INTERVAL_MS: Final[int] = 0.5
4444
POLL_TIME_SECONDS: Final[int] = 360
45-
SUPPORTED_MECHANISMS: Final[List[str]] = ['pf', 'sms', 'email', 'otp', 'up']
45+
SUPPORTED_MECHANISMS: Final[List[str]] = ['pf', 'sms', 'email', 'otp', 'oath', 'up']
4646
MECHANISM_RETRY_COUNT: Final[int] = 20
4747
DEFAULT_TOKEN_LIFETIME_SECONDS: Final[int] = 3600
4848

@@ -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', '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
[

pyproject.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[tool.poetry]
22
name = "ark-sdk-python"
3-
version = "2.0.6"
3+
version = "2.0.7"
44
description='Official Ark SDK / CLI for CyberArk Identity Security Platform'
55
authors = ["CyberArk <[email protected]>", "Ofir Iluz <[email protected]"]
66
readme = "README.md"

0 commit comments

Comments
 (0)