V
V
Vlad Sharikov2014-04-28 22:05:03
Zend Framework
Vlad Sharikov, 2014-04-28 22:05:03

Do I understand correctly how to work with Zend\Authentication?

I am writing an application that will have several sections (modules): news, something like a gallery, something like a schedule.
Each of these sections implies work in the admin panel (adding, changing, deleting) and displaying for guests. Actually, each of these sections is a module, in the controller of which there are 5 actions: index, full, edit, delete, add.
I would like some actions to be available to everyone and others only to users who are logged into the site and have the `admin` role. For this purpose, I found Zend \ Authentification (authentication). Do I understand correctly that this is what he needs? To authenticate directly + it gives other controllers the ability to work with users. Check if it's logged in, get data, etc.
There is a question about access rights. Why do you need permissions? In order to select specifically to this feature, this role has access or does not have it, right? Do I need to add ACL (authorization) right away? I assume that my system will only have a couple of entries for a couple of administrators. It does not include users. Only guests, administrators, and possibly people who will add news. Or maybe it's worth adding this in terms of scaling?: perhaps in the future there will be users, etc. What do you think?
I understand what needs to be taken and done, but I'm afraid to mess up with the architecture now and then I'll have to edit it all. Wouldn't want to.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
B
bahek2462774, 2014-04-28
@bahek2462774

for registration / identification / - take the zfcUser
module for access rights (ACL) - take BjyAuthorize
there everything you want - there is already ready.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question