Implementing role based authentication and authorization system in Slim 3


#1

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


#2

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


#3

Thanks so much for your suggestion.


#4

I’ve been a big fan of Sentinel.

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


#5

Is posible use Sentinel with Slim?

I need to protect a route…


#6

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


#7

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