How to implement authentication in ZF2

There are several examples on the Internet of how to write plugins that implement authentication in Zend Framework 2, but without clear information on how to use them in an application. Does anyone have a working (complete) ZF2 app that implements a simple login screen?

+3


source to share


3 answers


Check it:

http://blog.evan.pro/getting-started-with-the-zf2-skeleton-and-zfcuser



This is a good example of how to get a standard skeletal application to work with the zfcUser module to provide exactly what you need.

+1


source


0


source


http://framework.zend.com/manual/2.0/en/modules/zend.authentication.intro.html

Start by saying .... I was sailing in the same boat as you when I started .. I did not use zfcuser as I thought it was difficult for me to use in the small amount of time I had. But this is the best way to do it.

Check the wiki page for the zfc user.

But you can do something very simple with zf2 authentication instead of writing your own module for it.

-1


source







All Articles