You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
## Version 1.0.8 (13/10/2025)
1. Updated common.py to include an optioal timeout parameter for web requests within the ClearPassAPILogin class.
2. API code includes new, modified or deleted API that is implemented in Aruba ClearPass v6.12.6.
3. Updated Readme
4. Included new function within new Utils class to pull token from token file.
5. Updated __init__.py file.
Copy file name to clipboardExpand all lines: pyclearpass/common.py
+14-4Lines changed: 14 additions & 4 deletions
Original file line number
Diff line number
Diff line change
@@ -16,6 +16,7 @@ def __init__(
16
16
server="",
17
17
api_token="",
18
18
verify_ssl=False,
19
+
timeout=None
19
20
):
20
21
"""
21
22
This is the class constructor for the ClearPassModule.
@@ -24,16 +25,19 @@ def __init__(
24
25
25
26
Mandatory Parameters:
26
27
server (string): Website for ClearPass services example - https://yourserver.network.local:443/api
27
-
verify_ssl (boolean, optional): default value False. Allows use of an invalid SSL certificate.
28
28
29
-
Option 1 Parameters-
29
+
Option 1 Parameters:-
30
30
granttype (string) = ['client_credentials' or 'password' or 'refresh_token']: OAuth2 authentication method,client_id (string): Client ID defined in API Clients,
31
31
clientsecret (string, optional): Client secret, required if the API client is not a public client,
32
32
username (string, optional): Username for authentication, required for grant_type "password",
33
33
password (string, optional): Password for authentication, required for grant_type "password",
34
34
35
-
Option 2 Parameters-
35
+
Option 2 Parameters:
36
36
api_token = Provide the api_token which is the 'access token'.
37
+
38
+
Optional Parameters:
39
+
verify_ssl (boolean, optional): default value False. Allows use of an invalid SSL certificate.
40
+
timeout (int, optional): default value none. Allows to adjust the timeout value for the web request in seconds.
0 commit comments