rage / mooc.fi

https://mooc.fi
5 stars 6 forks source link

Get auth to actually work on graphql subscription #1163

Closed mipyykko closed 1 year ago

mipyykko commented 1 year ago

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.