CheckmarxPythonSDK 1.7.7__py3-none-any.whl → 1.7.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.
- CheckmarxPythonSDK/CxOne/KeycloakAPI/AttackDetectionApi.py +29 -9
- CheckmarxPythonSDK/CxOne/KeycloakAPI/AuthenticationManagementApi.py +334 -102
- CheckmarxPythonSDK/CxOne/KeycloakAPI/ClientAttributeCertificateApi.py +70 -15
- CheckmarxPythonSDK/CxOne/KeycloakAPI/ClientInitialAccessApi.py +35 -13
- CheckmarxPythonSDK/CxOne/KeycloakAPI/ClientRegistrationPolicyApi.py +12 -4
- CheckmarxPythonSDK/CxOne/KeycloakAPI/ClientRoleMappingsApi.py +141 -44
- CheckmarxPythonSDK/CxOne/KeycloakAPI/ClientRolesApi.py +414 -158
- CheckmarxPythonSDK/CxOne/KeycloakAPI/ClientScopesApi.py +96 -34
- CheckmarxPythonSDK/CxOne/KeycloakAPI/ClientsApi.py +404 -122
- CheckmarxPythonSDK/CxOne/KeycloakAPI/ComponentApi.py +61 -17
- CheckmarxPythonSDK/CxOne/KeycloakAPI/GroupsApi.py +175 -49
- CheckmarxPythonSDK/CxOne/KeycloakAPI/IdentityProvidersApi.py +133 -40
- CheckmarxPythonSDK/CxOne/KeycloakAPI/KeyApi.py +7 -2
- CheckmarxPythonSDK/CxOne/KeycloakAPI/ProtocolMappersApi.py +234 -88
- CheckmarxPythonSDK/CxOne/KeycloakAPI/RealmsAdminApi.py +365 -230
- CheckmarxPythonSDK/CxOne/KeycloakAPI/RoleMapperApi.py +42 -18
- CheckmarxPythonSDK/CxOne/KeycloakAPI/RolesApi.py +297 -153
- CheckmarxPythonSDK/CxOne/KeycloakAPI/RolesByIdApi.py +58 -24
- CheckmarxPythonSDK/CxOne/KeycloakAPI/ScopeMappingsApi.py +317 -209
- CheckmarxPythonSDK/CxOne/KeycloakAPI/UsersApi.py +309 -176
- CheckmarxPythonSDK/CxOne/KeycloakAPI/dto/__init__.py +91 -0
- CheckmarxPythonSDK/CxOne/dto/Project.py +2 -0
- CheckmarxPythonSDK/__version__.py +1 -1
- {checkmarxpythonsdk-1.7.7.dist-info → checkmarxpythonsdk-1.7.8.dist-info}/METADATA +1 -1
- {checkmarxpythonsdk-1.7.7.dist-info → checkmarxpythonsdk-1.7.8.dist-info}/RECORD +28 -28
- {checkmarxpythonsdk-1.7.7.dist-info → checkmarxpythonsdk-1.7.8.dist-info}/WHEEL +0 -0
- {checkmarxpythonsdk-1.7.7.dist-info → checkmarxpythonsdk-1.7.8.dist-info}/licenses/LICENSE +0 -0
- {checkmarxpythonsdk-1.7.7.dist-info → checkmarxpythonsdk-1.7.8.dist-info}/top_level.txt +0 -0
|
@@ -11,7 +11,10 @@ class AttackDetectionApi:
|
|
|
11
11
|
api_client = ApiClient(configuration=configuration)
|
|
12
12
|
self.api_client = api_client
|
|
13
13
|
|
|
14
|
-
def delete_users(
|
|
14
|
+
def delete_users(
|
|
15
|
+
self,
|
|
16
|
+
realm: str
|
|
17
|
+
) -> bool:
|
|
15
18
|
"""
|
|
16
19
|
Clear any user login failures for all users This can release temporary disabled users
|
|
17
20
|
|
|
@@ -24,11 +27,18 @@ class AttackDetectionApi:
|
|
|
24
27
|
URL:
|
|
25
28
|
Relative path: /{realm}/attack-detection/brute-force/users
|
|
26
29
|
"""
|
|
27
|
-
relative_url = f"{api_url}/{realm}/
|
|
28
|
-
response = self.api_client.delete_request(
|
|
30
|
+
relative_url = f"{api_url}/{realm}/attack-detection/brute-force/users"
|
|
31
|
+
response = self.api_client.delete_request(
|
|
32
|
+
relative_url=relative_url,
|
|
33
|
+
is_iam=True
|
|
34
|
+
)
|
|
29
35
|
return response.status_code == 204
|
|
30
36
|
|
|
31
|
-
def get_brute_force_user(
|
|
37
|
+
def get_brute_force_user(
|
|
38
|
+
self,
|
|
39
|
+
realm: str,
|
|
40
|
+
user_id: str
|
|
41
|
+
) -> Dict[str, Any]:
|
|
32
42
|
"""
|
|
33
43
|
Get status of a username in brute force detection
|
|
34
44
|
|
|
@@ -42,11 +52,18 @@ class AttackDetectionApi:
|
|
|
42
52
|
URL:
|
|
43
53
|
Relative path: /{realm}/attack-detection/brute-force/users/{userId}
|
|
44
54
|
"""
|
|
45
|
-
relative_url = f"{api_url}/{realm}/
|
|
46
|
-
response = self.api_client.get_request(
|
|
55
|
+
relative_url = f"{api_url}/{realm}/attack-detection/brute-force/users/{user_id}"
|
|
56
|
+
response = self.api_client.get_request(
|
|
57
|
+
relative_url=relative_url,
|
|
58
|
+
is_iam=True
|
|
59
|
+
)
|
|
47
60
|
return response.json()
|
|
48
61
|
|
|
49
|
-
def delete_brute_force_user(
|
|
62
|
+
def delete_brute_force_user(
|
|
63
|
+
self,
|
|
64
|
+
realm: str,
|
|
65
|
+
user_id: str
|
|
66
|
+
) -> bool:
|
|
50
67
|
"""
|
|
51
68
|
Clear any user login failures for the user This can release temporary disabled user
|
|
52
69
|
|
|
@@ -60,6 +77,9 @@ class AttackDetectionApi:
|
|
|
60
77
|
URL:
|
|
61
78
|
Relative path: /{realm}/attack-detection/brute-force/users/{userId}
|
|
62
79
|
"""
|
|
63
|
-
relative_url = f"{api_url}/{realm}/
|
|
64
|
-
response = self.api_client.delete_request(
|
|
80
|
+
relative_url = f"{api_url}/{realm}/attack-detection/brute-force/users/{user_id}"
|
|
81
|
+
response = self.api_client.delete_request(
|
|
82
|
+
relative_url=relative_url,
|
|
83
|
+
is_iam=True
|
|
84
|
+
)
|
|
65
85
|
return response.status_code == 204
|