Questions tagged [zfcuser]

ZfcUser is a module for use with Zend Framework 2 in PHP. It handles user authentication. It is part of the Zend Framework Commons suite of modules.

ZfcUser is a zend framework module for handling User authentication + registration. It work with Zend DB out of Box. It provide following features.

  • Authenticate via username, email, or both
  • Registration
  • CSRF Protection

Their are plugin for this modules for work with Doctrine 2 & Mongo DB ODM

194 questions
23
votes
2 answers

ZF2 unit-testing authentication

I was learning about unit testing and I attempted to resolve the following issue: Zend\ServiceManager\ServiceManager::get was unable to fetch or create an instance for zfcUserAuthentication ... using the only answer given at: Simple ZF2 Unit Tests…
Shoreline
  • 798
  • 1
  • 9
  • 26
13
votes
5 answers

Zend Framework 2 - Global check for authentication with ZFCUser

I installed ZFCUser successfully. Now I wonder if there is a way to globally check for authentication. As outlined in the wiki there are several ways to check for auth. They all work but do I have to put the check-if-clause really in every single…
Ron
  • 22,128
  • 31
  • 108
  • 206
8
votes
2 answers

Simple ZF2 Unit Tests for a controller using ZfcUser

I'm having issues trying to unit test an action which uses ZfcUser for authentication. I need some way to mock the ZfcUser Controller plugin but I'm not so sure how to do this. I've managed to successfully produce some unit tests for tables and…
Aydin Hassan
  • 1,465
  • 2
  • 20
  • 41
7
votes
2 answers

What exactly is the user state in ZfcUser?

Can anybody tell me, what the "user state" in the ZfcUser is doing exactly and why we may need it? What does this user state mean (I assume it's not the role meant by it)?
Maxim Zubarev
  • 2,403
  • 2
  • 29
  • 48
6
votes
4 answers

zfcuser add user role after registration

I'm using Zend Framework 2 with ZfcUser, BjyAuthorize and Doctrine for the database. Registration etc. works very well so far. My problem is, that registered users have no role assigned, so i want to add the role "user" to the user during…
Nevoxx
  • 117
  • 2
  • 7
6
votes
2 answers

How to adapt modules ZfcUser/ zfcuserDoctrineORM in my project with doctrine 2 using annotations?

I’m writing from Argentina, forgive my English little. I’m having some problems with modules ZfcUser and zfcuserDoctrineORM. I need to integrate them into my project. I’m working with Zend framework 2 , doctrine 2.3 and postgreSQL and this is the…
tongas85
  • 61
  • 1
  • 2
6
votes
3 answers

ZF2: Custom user mapper for ZfcUser module

I`ve added module ZfcUser on my Zend Framework 2 application. But I have to use existing database table, which has slightly different column names than the default table structure for ZfcUser. In ZfcUser wiki page it says that it is possible to use…
Luke 10X
  • 1,071
  • 2
  • 14
  • 30
5
votes
1 answer

customizing ZfcUser

What I would like to do is to add some more properties(fields) for a registering user to fill out for example: we have a display name by provided by default and i would like to have some more like, place of birth, birth date and so on.. I created my…
user1650441
  • 455
  • 3
  • 12
4
votes
1 answer

Give permission for bjyauthorize to run mvc application of ZF2 from CLI

I have a completely running mvc application on ZF2. I want to run some actions from command line. I have properly set up my console routes and other environments. When I run my app from CLI, I got Permission denied exception like this: 'You are not…
4
votes
1 answer

ZF2 - Overriding Configuration of Vendor Module ZFcUser

EDIT: I just found the solution on my own. As my ContentManagerController extends AbstractRestfulController it naturally has no index action implemented. So the 'action' field in the 'defaults' array has to be overridden by '' or null. Then the…
citizen404
  • 1,485
  • 1
  • 10
  • 19
4
votes
1 answer

Zend Framework 2: How to properly replace Figlet with reCaptcha on zfcUser

I am trying to replace Figlet with reCaptcha on a zfcUser registration form. Partial instruction on how to accomplish this can be found on https://github.com/ZF-Commons/ZfcUser#changing-registration-captcha-element but no complete instruction…
Jhourlad Estrella
  • 3,545
  • 4
  • 37
  • 66
3
votes
1 answer

ZF2 - Deprecated: ServiceManagerAwareInterface is deprecated and will be removed in version 3.0, along with the ServiceManagerAwareInitializer

I'm developing a project on ZF2 + Doctrine2. Also I'm using ZfcUser. My composer.json looks like: "php" : ">=5.5", "zendframework/zendframework" : "~2.5", …
user4351771
3
votes
1 answer

No role detected by BjyAuthorize when login

I am working with ZF2, Doctrine ORM and BjyAuthorize. The problem is that when I got logged in the method getRoles of the identity returns empty. class User implements UserInterface, ProviderInterface{ /** * @var…
José Carlos
  • 1,005
  • 16
  • 29
3
votes
1 answer

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…
pekechis
  • 288
  • 6
  • 18
3
votes
3 answers

How to redirect to the login page with BjyAuthorize

I want to redirect some pages to the login page instead of page 403. By default BjyAuthorize redirects everything to a 403 page. Is it possible to configure this behavior? I found this: RedirectionStrategy. How do I use this?
anasaitali
  • 1,504
  • 21
  • 30
1
2 3
12 13