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

invalid token not caught #28

Open
kjappelbaum opened this issue Oct 12, 2021 · 1 comment
Open

invalid token not caught #28

kjappelbaum opened this issue Oct 12, 2021 · 1 comment
Assignees

Comments

@kjappelbaum
Copy link
Collaborator

it seems that the is_connected check is not good enough

@kjappelbaum kjappelbaum self-assigned this Oct 12, 2021
@kjappelbaum
Copy link
Collaborator Author

to be checked with a unit test on the cheminfo-py side since

def is_connected(self):
if (
self.session
and self.session.is_valid_token
and self.session.has_rights(rights=["read", "write", "addAttachment"])
):
return True
return False

looks reasonable

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant