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

don't close when auth fails #615

Merged
merged 2 commits into from
Aug 12, 2023

Conversation

YousefED
Copy link
Collaborator

This fixes and tests #579

There was a test for this already in place, but the issue only occured when first connecting with an invalid token, and then connecting with a valid token. In that case the connection wouldn't be established.

To resolve this, I decided to remove the closing behavior all together. For this, the other test ("stops when the onAuthenticate hook throws an Error") has also been updated

janthurau
janthurau previously approved these changes May 22, 2023
Copy link
Collaborator

@janthurau janthurau left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍 same here, just linting :)

@janthurau
Copy link
Collaborator

I've just rebased this to the latest changes (ClientConnection etc.). Just not sure what I want to do with it, as it changes the behavior of errors in onLoadDocument (terminate connection vs. just sending 'permission denied'). Not sure if that might break something for someone? 🤔

@janthurau
Copy link
Collaborator

ok, LGTM.

@janthurau janthurau merged commit 377667d into ueberdosis:main Aug 12, 2023
3 checks passed
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

Successfully merging this pull request may close these issues.

None yet

2 participants