ark-sdk-python 2.0.6__py3-none-any.whl → 2.0.8__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- ark_sdk_python/ark.py +1 -1
- ark_sdk_python/auth/identity/ark_identity.py +9 -2
- ark_sdk_python/models/auth/ark_auth_method.py +2 -2
- {ark_sdk_python-2.0.6.dist-info → ark_sdk_python-2.0.8.dist-info}/METADATA +1 -1
- {ark_sdk_python-2.0.6.dist-info → ark_sdk_python-2.0.8.dist-info}/RECORD +9 -9
- {ark_sdk_python-2.0.6.dist-info → ark_sdk_python-2.0.8.dist-info}/WHEEL +1 -1
- {ark_sdk_python-2.0.6.dist-info → ark_sdk_python-2.0.8.dist-info}/LICENSE.txt +0 -0
- {ark_sdk_python-2.0.6.dist-info → ark_sdk_python-2.0.8.dist-info}/NOTICES.md +0 -0
- {ark_sdk_python-2.0.6.dist-info → ark_sdk_python-2.0.8.dist-info}/entry_points.txt +0 -0
ark_sdk_python/ark.py
CHANGED
|
@@ -42,7 +42,7 @@ from ark_sdk_python.models.common.identity import (
|
|
|
42
42
|
RECV_PIPE_INTERVAL: Final[int] = 3.0
|
|
43
43
|
POLL_INTERVAL_MS: Final[int] = 0.5
|
|
44
44
|
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']
|
|
46
46
|
MECHANISM_RETRY_COUNT: Final[int] = 20
|
|
47
47
|
DEFAULT_TOKEN_LIFETIME_SECONDS: Final[int] = 3600
|
|
48
48
|
|
|
@@ -314,7 +314,14 @@ class ArkIdentity:
|
|
|
314
314
|
self.__stop_input_process()
|
|
315
315
|
|
|
316
316
|
def __pick_mechanism(self, challenge: Challenge) -> Mechanism:
|
|
317
|
-
factors = {
|
|
317
|
+
factors = {
|
|
318
|
+
'otp': '📲 Push / Code',
|
|
319
|
+
'oath': '🔐 OATH Code',
|
|
320
|
+
'sms': '📟 SMS',
|
|
321
|
+
'email': '📧 Email',
|
|
322
|
+
'pf': '📞 Phone call',
|
|
323
|
+
'up': '🔑 User Password',
|
|
324
|
+
}
|
|
318
325
|
supported_mechanisms = [m for m in challenge.mechanisms if m.name.lower() in SUPPORTED_MECHANISMS]
|
|
319
326
|
answers = inquirer.prompt(
|
|
320
327
|
[
|
|
@@ -20,8 +20,8 @@ class ArkAuthMethodSettings(ArkModel):
|
|
|
20
20
|
|
|
21
21
|
|
|
22
22
|
class IdentityArkAuthMethodSettings(ArkAuthMethodSettings):
|
|
23
|
-
identity_mfa_method: Literal[('pf', 'sms', 'email', 'otp')] = Field(
|
|
24
|
-
description='MFA method if mfa is needed', default='email', alias='MFA Method to use by default [pf, sms, email, otp]'
|
|
23
|
+
identity_mfa_method: Literal[('pf', 'sms', 'email', 'otp', 'oath')] = Field(
|
|
24
|
+
description='MFA method if mfa is needed', default='email', alias='MFA Method to use by default [pf, sms, email, otp, oath]'
|
|
25
25
|
)
|
|
26
26
|
identity_mfa_interactive: bool = Field(description='Allow interactive MFA (passcodes)', alias='Allow Interactive MFA', default=True)
|
|
27
27
|
identity_application: Optional[str] = Field(
|
|
@@ -10,13 +10,13 @@ ark_sdk_python/actions/ark_service_exec_action.py,sha256=IHIm9oISRThOD8WNJe4oJX-
|
|
|
10
10
|
ark_sdk_python/args/__init__.py,sha256=mCb4UrIRL4u58QyUbqqH2xAU0VN91pxjK5sa_UwCM_k,279
|
|
11
11
|
ark_sdk_python/args/ark_args_formatter.py,sha256=-Rs_rGMIr1bprD1SfYlMsLoSOFgr_RFrRdREvbmPU6k,9204
|
|
12
12
|
ark_sdk_python/args/ark_pydantic_argparse.py,sha256=uupNLnUmO5LrTrRZsBv7qRKgDsx4GaJMwOUh1TCc1-w,40083
|
|
13
|
-
ark_sdk_python/ark.py,sha256=
|
|
13
|
+
ark_sdk_python/ark.py,sha256=3tcVaFolxD7ZdpCjx2jm3jFYxzAc9qgbPNdkEm33NH0,1280
|
|
14
14
|
ark_sdk_python/ark_api.py,sha256=qEB2j-xf8kiSdAvTXrvEdqGDQ-l1aoEvktxnq7BYNRI,12486
|
|
15
15
|
ark_sdk_python/auth/__init__.py,sha256=1l29Rf3VhwmV8z3YROiQVcgrZYSeeCqVN4zna77tnlk,620
|
|
16
16
|
ark_sdk_python/auth/ark_auth.py,sha256=2fPlABM3AwWmb1h0lQPQAz93u1ZluYKv7axlfg4lq5Q,12988
|
|
17
17
|
ark_sdk_python/auth/ark_isp_auth.py,sha256=Xuf8J7-VgN6a6oJOem5Rf8LzOI5NCNqUeT5Snb4VNK4,9572
|
|
18
18
|
ark_sdk_python/auth/identity/__init__.py,sha256=2Yyc_Rrx-D4PsSdg-ESl5pFFTpqu6LUPSc4ZW59oOP8,328
|
|
19
|
-
ark_sdk_python/auth/identity/ark_identity.py,sha256=
|
|
19
|
+
ark_sdk_python/auth/identity/ark_identity.py,sha256=88_qZrF4JUxUyA6zcaRiGYQuZad9pHER9v8N6VP9rx4,32240
|
|
20
20
|
ark_sdk_python/auth/identity/ark_identity_fqdn_resolver.py,sha256=utO8mWF7rqfYhcPUthBp7t4M9t-_u3v84CRJeCogoHc,4797
|
|
21
21
|
ark_sdk_python/auth/identity/ark_identity_service_user.py,sha256=QlqUHGUh4iqmfqmV_YlXs6xNM_U-xz6VqW5hHZoxwSQ,7495
|
|
22
22
|
ark_sdk_python/cli_services/__init__.py,sha256=e9vdwqNiYqhZmK05Wgpz-Hf9SycK_3X-RS3CK9n2lIs,87
|
|
@@ -73,7 +73,7 @@ ark_sdk_python/models/ark_exceptions.py,sha256=lW4-kyHvHiKJEThl1j50mffmNGbv-anUi
|
|
|
73
73
|
ark_sdk_python/models/ark_model.py,sha256=dMY_iOUDMe8-gx5RlHc7Chnuv9ZQI_yG9KwV21IJjQ8,3361
|
|
74
74
|
ark_sdk_python/models/ark_profile.py,sha256=INhdKpriU_sSElBWsbOyYCHAGjO5jLZfyIxx25XAcUo,6625
|
|
75
75
|
ark_sdk_python/models/auth/__init__.py,sha256=zIRXj7AlSvPI2nanPM1tpc_lx8cwaYJUgI_FU4YjGzw,1065
|
|
76
|
-
ark_sdk_python/models/auth/ark_auth_method.py,sha256=
|
|
76
|
+
ark_sdk_python/models/auth/ark_auth_method.py,sha256=8sJQyIg1V__jE-kwuyo764MTLyGeALHItB11KhvbPhA,3259
|
|
77
77
|
ark_sdk_python/models/auth/ark_auth_profile.py,sha256=VyCZZI-0r-qontnhu3_jRO_fLS69ZDMwgDMi1y7Wd3g,1426
|
|
78
78
|
ark_sdk_python/models/auth/ark_secret.py,sha256=N2lVRZT4qkXQcA0Be8gEzFfyvjDm-8YPFvNs-CkgrxQ,259
|
|
79
79
|
ark_sdk_python/models/auth/ark_token.py,sha256=RwBeDAZDhz2JG8apGrB2H4Er7Gb0CeMu6047waPCo_E,1562
|
|
@@ -480,9 +480,9 @@ ark_sdk_python/services/sia/workspaces/targetsets/__init__.py,sha256=UjHr81LMcMl
|
|
|
480
480
|
ark_sdk_python/services/sia/workspaces/targetsets/ark_sia_target_sets_workspace_service.py,sha256=o9_DzskTV94kkfc4m0Qk8lj5FV8rexRa5RzRwfe9Tbo,11254
|
|
481
481
|
ark_sdk_python/services/sm/__init__.py,sha256=jzKxEkZYOCW9y_byLfd_odae9m2sh1UfjaaKBVySWY0,95
|
|
482
482
|
ark_sdk_python/services/sm/ark_sm_service.py,sha256=Rh2dFjNz7VMJUnl43hxL07HEZ8_33KrU_lqfUrqUDn4,11517
|
|
483
|
-
ark_sdk_python-2.0.
|
|
484
|
-
ark_sdk_python-2.0.
|
|
485
|
-
ark_sdk_python-2.0.
|
|
486
|
-
ark_sdk_python-2.0.
|
|
487
|
-
ark_sdk_python-2.0.
|
|
488
|
-
ark_sdk_python-2.0.
|
|
483
|
+
ark_sdk_python-2.0.8.dist-info/LICENSE.txt,sha256=d4EzYx2apA3-GqrFY23wLtc6UmQNXG05gyLfZ3oWVRs,11358
|
|
484
|
+
ark_sdk_python-2.0.8.dist-info/METADATA,sha256=aEvUHd8PDc86Se_JExoXNA8kWbQjZKyECvxZc-n75Ho,20178
|
|
485
|
+
ark_sdk_python-2.0.8.dist-info/NOTICES.md,sha256=vRzFZEsfBw5q3H1_cgZV50AVhNTqF8Smz9fSvn49Y1E,125803
|
|
486
|
+
ark_sdk_python-2.0.8.dist-info/WHEEL,sha256=0IJoS5KyK2sZuSvGyrwXyRwSVwTkTkpEcRzz5xcYUMQ,110
|
|
487
|
+
ark_sdk_python-2.0.8.dist-info/entry_points.txt,sha256=v5bcuRn8w42ZKQspfvX3AliKmLVO6f7Zb_bma77p3vQ,47
|
|
488
|
+
ark_sdk_python-2.0.8.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|