thomasvvugt / fiber-boilerplate

A boilerplate for the Fiber web framework
MIT License
275 stars 45 forks source link

Auth Boss integration example? #1

Open wakatara opened 4 years ago

wakatara commented 4 years ago

I read your auth post with interest, but one of the things I was hoping would be "better" with fiber versus node was easier integration and lego bolting (much like one would with Rails and Devise for auth).

I'd really love to see something like Auth Boss integrated here (which I am just about to attempt) to see if an existing solution in the community "just works" rather than having to re-write a complex wheel.

(and btw, Devise in rubyland is a great model for the type of thing you were talking about needing to dev in the blog post.).

Thanks for putting this up though!

thomasvvugt commented 4 years ago

Hi @wakatara

Thanks for your positive response, I am glad you like my project! This repository is more of an example repository on one could set up a web application using Fiber as the framework.

I have looked into authboss in the past as well, but I also liked the way casbin does RACL as well. I poked my fellow maintainers if it might be worth writing a middleware for these libraries.

I am willing to implement this into the repository nonetheless! 😉

wakatara commented 4 years ago

I imagine auth is something every single app needs to deal with and one of the big beefs most people have with express is the fact you need to constantly roll your own, so I think integrating something as robust as authboss would make sense. Basically, a "devise" for Fiber that is drop in would definitely be super useful for the Fiber community.

I'd be willing to help (though that might slow you down... =p). I have implemented auth from scratch a few times in ruby based frameworks (padrino for example) but I have to admit to being pretty impressed at AuthBoss's breadth and the idea of dropping in an existing robust library via middleware is very compelling.

(I have to admit I had not heard of casbin before you pointed it out. off to look now.).