kids-first / kf-arranger

🔎 Elasticsearch API Server for Kids First Portal
Apache License 2.0
1 stars 1 forks source link

🔒 restrict arranger resolvers #40

Closed jgnieuwhof closed 6 years ago

jgnieuwhof commented 6 years ago

this repacks jwt from request context into graphql context, and adds middleware to guard all mutations (except for saveSet) from non-admins.

@alex-wilmer - tagged 'cause this is an example of the arranger middleware / context opts