Skip to content
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

Interconnection between Simple Crud and Auth::RBAC #23

Closed
dancerbug opened this issue Dec 5, 2012 · 2 comments
Closed

Interconnection between Simple Crud and Auth::RBAC #23

dancerbug opened this issue Dec 5, 2012 · 2 comments

Comments

@dancerbug
Copy link

Greetings, thanks for your work. I need to use this plugin Dancer::Plugin::SimpleCRUD with Dancer::Plugin::Auth::RBAC because only the admin users can modify the information. However, i didn't find any way to do this. Can you help me?

@bigpresh
Copy link
Owner

bigpresh commented Dec 5, 2012

I've not done anything towards that; at some point, I'd like to make the SimpleCRUD plugin play along with the new Dancer::Plugin::Auth::Extensible I recently released (a replacement for D::P::Auth::RBAC, basically - designed to be simple and pleasant to use, and easy to extend).

Suggestions or contributions would be welcomed! In the meantime, whichever auth framework you're using, you could implement some checking in a before hook to look at the path being requested and see if that's one that should only be allowed to admin users.

When I have time to add some ties between D::P::SimpleCRUD and D::P::Auth::Extensible, I'd probably add options like require_login / require_role which would be fairly simple and obvious to use I think :)

@bigpresh
Copy link
Owner

Closing this, as support for requiring logins / specific roles via D::P::Auth::Extensible was added some time ago.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants