zingbretsen / todag

Apache License 2.0
0 stars 0 forks source link

Users #6

Open zingbretsen opened 3 years ago

zingbretsen commented 3 years ago

Different users should see different projects and different todos. We should brainstorm authentication and user roles.

Users should be their own node type.

Users can create projects and tasks.

What relationships should users have to work?

(:User) -[:OWNS]-> (:Work) (:User) -[:ASSIGNED_TO]-> (:Work) (:User) -[:CREATED]-> (:Work) (:User) -[: WATCHING]-> (:Work)

What else is necessary?

Also, re authentication, there are docs on using neo4j for authentication with JWT.

We should probably figure this out early. Retrofitting this in later will probably be difficult.

zingbretsen commented 3 years ago

https://github.com/neo4j-graphql/neo4j-graphql-js/blob/master/docs/neo4j-graphql-js-middleware-authorization.md

zingbretsen commented 3 years ago

http://www.passportjs.org/

zingbretsen commented 3 years ago

https://neo4j.com/docs/graphql-manual/current/auth/authentication/