Zend2 Web Services Auth and zfcUser

Once I have created my Web App with Zend2 , zfcUser and bjyAuthorize it's time to create the mobile App.

Our approach is to create and app with a json interaction with the Zend2 background.

The problem is that I don't know where to start in order to deal with a jSon Auth. Is possible wit zfcUser? any example out there?

Thanks in advance


ZfcUser module provides support for additional authentication mechanisms via plugins (Google, Facebook, LDAP, etc), but this feature seems to be in development now.

If you need that your mobile application to authenticate through some custom protocol based on JSON format, all you have to do is to create a controller action (say, mobileAuthAction()) which takes a JSON array with user credentials from POST, uses zfcUser API to authenticate the user, and return the response in JSON format. You may also look at view_manager configuration key to adjust the rendering strategy for your action to allow it to return JSON. Alternatively, you may call the $viewModel->setTerminal(false) to disable the layout rendering and echo your JSON to standard output.

Need Your Help

Screen Capture Under Win7 of JOGL Applet

python gdi jogl

I'm trying to take a screen shot of an applet running inside a

Node.js JSON.stringify() causing " in output. Can't parse with Jquery

jquery json node.js express pug

I am using Node.js (with Express.js) to pass a JSON data object from the server to the client view.