franciscogouveia / hapi-rbac

RBAC (Rule Based Access Control) for hapijs
ISC License
105 stars 20 forks source link

Extract core #20

Closed deedubs closed 8 years ago

deedubs commented 8 years ago

We have a use case where we would like to be able to use RBACs at a deeper layer then hapi/http. Would you be open to extracting the core functionality into a lib?

I'll be able to help on the PR.

franciscogouveia commented 8 years ago

I had this same idea last week, it makes perfect sense. I don't mind taking care of it.

franciscogouveia commented 8 years ago

You can use the core named rbac-core (npm, github).

Check how to use it in the tests.

ovaillancourt commented 8 years ago

@franciscogouveia Wow man props for the super-quick turnaround on this! Thanks :D.

franciscogouveia commented 8 years ago

You are welcome :+1: I will close the issue now. Create a new one if questions arise.