Implementing role based authentication and authorization system in Slim 3

What is the best way to implement a role based authentication and authorization system in Slim 3

My application will have three different users - (admin, customers and employers). I want to access different roles to each user.

I found slim-auth but it looks out-dated.

What I need is a plugin that can handle this requirement or a step by step direction on how best to implement it in Slim 3.

Thanks

My preference is to use Zend-Auth and Zend-Rbac or Zend-Acl.

2 Likes

Thanks so much for your suggestion.

I’ve been a big fan of Sentinel.

https://cartalyst.com/manual/sentinel/2.0

Is posible use Sentinel with Slim?

I need to protect a route…

Can you solve it? I need implements Security that allow access to some routes…

Yes, perhaps look at this: https://github.com/dappur/framework

1 Like