-
Notifications
You must be signed in to change notification settings - Fork 7
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Work_branch #55
Work_branch #55
Conversation
rest in progress
…lass; add error checking for role ID types" This commit adds new methods to the AuthLiteClient class for attaching, removing, and updating roles. It also includes error checking to ensure that the role IDs are of the correct type. The methods make API requests to the AuthLite server to assign or remove roles for a user. The 'signoff\_session\_and\_assign', 'refresh\_token', and 'access\_token' parameters are included to authenticate the requests.
…`update_role` methods in `AuthLiteClient` class to allow returning a class instance instead of a dictionary. Added `SignOffSessionReplace` class to represent the response from these methods when `return_class` is True. Raised `ParseError` when `signoff_session_and_assign` is True but `refresh_token` or `access_token` is not provided.
response = requests.post( | ||
url, headers=headers, params=params, data=json.dumps(data) |
Check warning
Code scanning / Bandit
Requests call without timeout Warning
response = requests.delete( | ||
url, headers=headers, params=params, data=json.dumps(data) |
Check warning
Code scanning / Bandit
Requests call without timeout Warning
response = requests.post( | ||
url, headers=headers, params=params, data=json.dumps(data) |
Check warning
Code scanning / Bandit
Requests call without timeout Warning
response = requests.delete( | ||
url, headers=headers, params=params, data=json.dumps(data) |
Check warning
Code scanning / Bandit
Requests call without timeout Warning
"AccessToken": access_token, | ||
"RefreshToken": refresh_token, | ||
} | ||
response = requests.post(url, headers=headers, params=params, json=data) |
Check warning
Code scanning / Bandit
Requests call without timeout Warning
"AccessToken": access_token, | ||
"RefreshToken": refresh_token, | ||
} | ||
response = requests.post(url, headers=headers, params=params, json=data) |
Check warning
Code scanning / Bandit
Requests call without timeout Warning
"AccessToken": access_token, | ||
"RefreshToken": refresh_token, | ||
} | ||
response = requests.post(url, headers=headers, params=params, json=data) |
Check warning
Code scanning / Bandit
Requests call without timeout Warning
No description provided.