-
Notifications
You must be signed in to change notification settings - Fork 21
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
demonstrate auth implementation by including passport? #18
Comments
I def. see there being value in this, so I'm down for adding it. @tkellen, I think you've thought more about auth than I have, so I'm curious to hear your thoughts. |
This is sorely needed. Right now we have no support for auth and no way to pass around the current user. There is a clear location for the current user to be picked up so it can be used in CRUD actions, we just haven't needed it yet. I'm 👍 to adding passport and to getting Once we have that, we have to take it a step further and figure out a convention based way to weave that user into CRUD responsibilities. For example, when interacting with resources and relationships, we need a hook to support checking if our user can do something. I'm imagining that we have an
All of this will be pretty straightforward to implement, it's the documentation around usage that is going to need a lot of love. |
hey so i have an auth implementation in https://github.com/artisan-tattoo/assistant-api using passport, it's verrrrrrrrrrrry simple, basically just shows how to add it, not even really use it. we could start with this and move forward? |
We either need to add a users table to the fantasy-database repo and update here accordingly, or use a hard-coded user/pass. Thoughts? |
i think just starting with hardcoded user/pass might make it simple enough for a first go and then make it more complicated from there when we have more time to write docs (i.e. i catch up the docs to where we are at the moment) |
Hi folks, Where is this effort now? Thanks. |
auth is super common in projects. what are our thoughts on adding passport to this example?
The text was updated successfully, but these errors were encountered: