Questions tagged [zend-auth]

A class provided by the Zend Framework, an open source, object oriented PHP5 framework provided by Zend. Zend Auth provides helper functions to authenticate site visitors against various sources.

Overview

Zend_Auth provides an API for authentication and includes concrete authentication adapters for common use case scenarios.

Zend_Auth is concerned only with authentication and not with authorization. Authentication is loosely defined as determining whether an entity actually is what it purports to be (i.e., identification), based on some set of credentials. Authorization, the process of deciding whether to allow an entity access to, or to perform operations upon, other entities is outside the scope of Zend_Auth.

Questions that should be tagged with zend-auth

  • Authenticating a user against with Zend Framework.
  • Various ways to integrate Zend_Auth with Zend_Acl.
  • Different types of backend authentications that can be used with Zend_Auth.
  • Zend_Auth and questions having to do with PHP sessions.

To learn more, visit:

http://framework.zend.com/manual/en/zend.auth.introduction.html

202 questions
4
votes
2 answers

Add condition for Zend_Auth_Adapter_DbTable

This may seem like a silly question, but in this code, where would I insert the condition 'WHERE state=1' public function loginByUsernameAndPassword($username, $password) { $this->_auth_adapter = new Zend_Auth_Adapter_DbTable(…
Moak
  • 12,596
  • 27
  • 111
  • 166
4
votes
1 answer

Isolating Zend_Session in PHPUnit tests

I am testing authentification functionality of my site. Zend_Auth is using as authorization engine. But auth status remains between tests and I need to write 'logout' in every tearDown. Now everything is all right. But the problem is following. As…
darja
  • 4,985
  • 9
  • 33
  • 47
4
votes
1 answer

management users with Zend_Auth and Zend_Session

I want to Zend_Auth and Zend_Session to save user sessions and logins information whats the easy and best way for implements following items: 1-Disallow multiple concurrent logins for the specific user 2-List all of all user currently logged in…
user1400
  • 1,411
  • 4
  • 26
  • 36
4
votes
3 answers

Zend 2 Auth with Bcrypt?

Google doesn't have much of a solution (similar question but no answer). Because bcrypt generates a new hash each time, the authentication fails. I've looked into the code (perhaps extend class myself) but it's pretty messy (would prefer a native…
Raekye
  • 5,081
  • 8
  • 49
  • 74
4
votes
1 answer

Zend Framework 2 - Authentication / ACL

Hi i am new to ZF2 and i am trying to understand the main concepts by creating an extended application to learn all about ZF2 and test my knowledge. Please forgive me if my questions sound stupid or if i didnt get some things along the way when…
3
votes
2 answers

Zend Navigation: Where should I load the ACL 'Role' in a private application

I am working on a 'private' application, you must be logged in to do anything at all. This gives me a bit of a an issue loading the role for Zend Navigation. Currently I am 'init'ing Zend Navigation in my bootstrap; that was fine until I added ACL…
rhaag71
  • 519
  • 7
  • 22
3
votes
3 answers

where to use Zend_Auth, in model or controller?

I'm working on my first user login in Zend, but I'm a little confused with Zend_Auth. All the articles I read about it use it directly in the controller. But to me, it makes more sense, to work with it in my User model, so that every controller can…
user393964
3
votes
1 answer

Zend Auth locked session

i nearly frustrated with how Zend handling session. here is my case. i write a auth plugin that always check the the user credential utilize Zend_Auth. and when invoke hasIdentity function from zend auth, it will automatically start the session.…
Jeg Bagus
  • 4,895
  • 9
  • 43
  • 54
3
votes
3 answers

Updating Zend_Auth_Storage after edit users profile

I have following situation: I have loged user, standard authentication with DB table $authAdapter = new Zend_Auth_Adapter_DbTable(Zend_Db_Table::getDefaultAdapter()); $authAdapter->setTableName('users');…
Martin Rázus
  • 4,615
  • 5
  • 30
  • 33
3
votes
2 answers

Salting example in Zend Framework

I am pretty new to the Zend framework and looking to build an application with pretty tight password security. I have been trying to follow the user guides in relation to password salting but haven't had any luck so far. I have setup my database…
Geoffrey
  • 39
  • 3
3
votes
4 answers

How to redirect to a different controller action in Zend

I am creating a simple website where users can sign up, and then sign in and add text articles. Without signing in, a visitor will have the role of a guest, and will only be able to view articles. I am doing this as an exercise in Zend framework 1,…
Sonu Jha
  • 719
  • 3
  • 13
  • 23
3
votes
2 answers

Zend_Auth fails to write to storage

I have yet another weird annoying thing going on with Zend. Basically, I have the following code after creating a user domain: $this->auth = Zend_Auth::getInstance(); $this->view->user = $this->user = $this->auth->getIdentity(); $this->user->idSite…
John
  • 261
  • 1
  • 3
  • 16
3
votes
3 answers

Updating Zend_Auth storage after editing a user

I use Zend_Auth to authenticate users and then store their details in the default Zend_Auth session. This means that when a user edits his details, these changes won't be reflected in the application until he re-authenticates. I want to avoid this…
Freek Vanraes
  • 227
  • 5
  • 11
3
votes
3 answers

Zend_Auth_Adapter_DbTable and PHP crypt

I am hashing my passwords in a Zend php application using PHP crypt(). However, I can't think of a solution for using this hash with Zend_Auth_Adapter_DbTable. Assuming I have a password hash stored after being run with crypt()... //Salt and…
bristophocles
  • 143
  • 1
  • 14
3
votes
1 answer

Zend_Auth_Adapter using a data mapper

First post here so sorry if I seem like a newb, I am trying to find a way to use Zend_Auth_Adapter with a data mapper, but seem to be struggling. I know I can use Zend_Auth_Adapter_DbTable and associate this with a db table, but this seems to negate…
wiseguydigital
  • 315
  • 2
  • 6
  • 15
1
2
3
13 14