Open fenos opened 9 years ago
I was reading through much of the code and it seems very feasible that this project could work without sails-auth as long as you have some policies which mimic the sails-auth policies, you'd need something to add req.user
for instance. It's a shame really that it wasn't decoupled to begin with but I have a fork I'm working on to see how far I can get.
I have it working but I got to a point that the only things left my code is using from the module are services, and a few bits of code in the hook to spin up default data and inject ownership attributes into the models. I wish I could have figured out how to keep the policies intact but for some reason it didn't recognize them unless I pulled them out of the module.
This was a good exercise but honestly you might just be better off taking what you need out of this module.
Hi, this package seem brilliant, I have a project with sails which has a custom authentication, would be possible to use
sails-permissions
without depending onsails-auth
? It would be amazing