-
Notifications
You must be signed in to change notification settings - Fork 14
How to handle authorization with yoga? #35
Comments
@Weakky How about having just simple POC with Authentication/Authorization to research using graphql-shield/passport and see how it will cooperate with nexus resolver first aproach? |
I like the idea of exploring the potential of integration with Perhaps there's an elegant way of combining the two - if nothing else, we should bring type and field-name suggestions to Last note, I believe it's worth discussing how we would want to define permissions in |
That sounds good. I'm hoping to integrate yoga/passport and shield together in form of example project to explore couple options. It will be challenging to support all use cases so going with sensible defaults may help. There are also many types of auth connectors- for example OAuth etc. that can have different flow and affect how things are done. |
Let's first wait for graphql-nexus/nexus#23 to land |
I think once #88 lands, we could very well have a separate package that would mimic how https://github.com/nyambati/express-acl works |
Description
A common library to handle authorization is graphql-shield.
Although initially designed for "SDL-first" development, it is already compatible with
nexus
usinggraphql-middleware
.Three options are offered to us:
graphql-shield
as-is through examplesgraphql-shield
and provide some integration/more idiomatic API tonexus
nexus
/"resolver-first"Let's use this thread as a place to discuss this feature 🙌
The text was updated successfully, but these errors were encountered: