Skip to content
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

Merged
merged 6 commits into from
Apr 5, 2024
Merged

Work_branch #55

merged 6 commits into from
Apr 5, 2024

Conversation

moonlightnexus
Copy link
Contributor

No description provided.

deepsource-autofix bot and others added 5 commits April 3, 2024 23:29
This commit fixes the style issues introduced in ca95975 according to the output
from Autopep8, Black, isort and Yapf.

Details: #53
…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.
@cla-bot cla-bot bot added the cla-signed label Apr 5, 2024
This commit fixes the style issues introduced in 669e7ab according to the output
from Autopep8, Black, isort and Yapf.

Details: #55
Comment on lines +357 to +358
response = requests.post(
url, headers=headers, params=params, data=json.dumps(data)

Check warning

Code scanning / Bandit

Requests call without timeout Warning

Requests call without timeout
Comment on lines +403 to +404
response = requests.delete(
url, headers=headers, params=params, data=json.dumps(data)

Check warning

Code scanning / Bandit

Requests call without timeout Warning

Requests call without timeout
Comment on lines +450 to +451
response = requests.post(
url, headers=headers, params=params, data=json.dumps(data)

Check warning

Code scanning / Bandit

Requests call without timeout Warning

Requests call without timeout
Comment on lines +503 to +504
response = requests.delete(
url, headers=headers, params=params, data=json.dumps(data)

Check warning

Code scanning / Bandit

Requests call without timeout Warning

Requests call without timeout
"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

Requests call without timeout
"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

Requests call without timeout
"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

Requests call without timeout
@moonlightnexus moonlightnexus merged commit 6540a22 into main Apr 5, 2024
11 of 14 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant