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

Get auth to actually work on graphql subscription #1163

Merged
merged 1 commit into from
Apr 12, 2023

Conversation

mipyykko
Copy link
Collaborator

@mipyykko mipyykko commented Apr 12, 2023

When using only the field resolver in the plugin, the queries would have actually run on the server before the auth plugin could do its job and deny access if the user had no privileges. Apparently Nexus didn't really implement the same with the subscriber so we can authorize before the subscription is started, sooooo I had to patch that. Great.

@mipyykko mipyykko merged commit 7aff924 into master Apr 12, 2023
@mipyykko mipyykko deleted the fix-ws-auth-properly branch April 12, 2023 17:24
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.

1 participant