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
42
votes
1 answer

Practical Zend_ACL + Zend_Auth implementation and best practices

Context: My questions pertain to a forum I'm developing pretty much exactly like SO, where there are: guests who have access to view threads but can't reply or vote members who, with enough rep, can edit/vote others threads, and by default they can…
meder omuraliev
  • 183,342
  • 71
  • 393
  • 434
27
votes
6 answers

Zend_Session / Zend_Auth randomly throws Error Message ps_files_cleanup_dir: opendir(/var/lib/php5) failed: Permission denied (13)

I'm currently working on a new Application using (among other things) Zend_Auth but, for whatever reason, this Error Message is showing up at any location totally randomly (or so it seams) Zend_Session::start() -…
Hannes
  • 8,147
  • 4
  • 33
  • 51
20
votes
2 answers

Change Zend_Auth storage backend $_SESSION to Memcached

I'm trying to change the session backend of Zend_Auth. But couldn't succeed it. In my bootstrap.php ; $oBackend = new Zend_Cache_Backend_Libmemcached( array( 'servers' => $servers, 'compression' => false )…
Fatih Donmez
  • 4,319
  • 3
  • 33
  • 45
13
votes
13 answers

"session has already been started...." exception in Zend Framework application

I get this error when trying to load a Zend Framework application: Fatal error: Uncaught exception 'Zend_Session_Exception' with message 'session has already been started by session.auto-start or session_start()' in …
Alexander_F
  • 2,831
  • 3
  • 28
  • 61
10
votes
2 answers

PHP Unit Testing with Zend Auth and Zend ACL

I have an application that is behind a login and utilizes zend_acl and zend_auth. During pre-dispatch I have an ACL plugin that creates all the rules out for the ACL. I also have an Auth plugin that checks if you're logged in or not and if so if you…
Stephen Maher
  • 228
  • 5
  • 11
9
votes
4 answers

Zend_Auth: Allow user to be logged in to multiple tables/identities

I am using Zend_Auth for authentication in a web portal. A normal mySQL "users" table with a login and password column gets queried against, and a user logged in. However, I have two additional groups of users that I want to authenticate. All three…
Pekka
  • 442,112
  • 142
  • 972
  • 1,088
9
votes
1 answer

Does Zend ACL suit my needs?

I have based my application upon the Zend Framework. I am using Zend_Auth for authentication, but I'm not sure if Zend_Acl will work for me because, frankly, the examples I've seen are either too simplistic for my needs or confuse me. I'm thinking…
Sonny
  • 8,204
  • 7
  • 63
  • 134
8
votes
2 answers

setting and extending Session Lifetime using Zend_Auth

i use Zend_Auth for one of my Projects, but so far haven't figured out how to set the Lifetime for the Session, or how to extend it (lets say it should run 5 minutes and should reset to that when the user makes an action), here is my Initialization…
Hannes
  • 8,147
  • 4
  • 33
  • 51
8
votes
2 answers

Zend_Auth setCredentialTreatment

I'm using Zend_Auth with setCredentialTreatment to set the hash method and salt. I see all examples doing something like this, where the salt seems to be inserted as a text. ->setCredentialTreatment('SHA1(CONCAT(?,salt))' but my salt is stored in…
jblue
  • 4,390
  • 4
  • 46
  • 79
6
votes
1 answer

Zend 2 + doctrine 2 Auth Adapter

I'm looking for a tutorial on authentication with Zend 2 and Doctrine 2. In particular the creation of the controller and adapter. The official documentation is too global not help me enough. thank you EDIT: i use "Doctrine Entity" (namespace…
beweed
  • 63
  • 1
  • 5
5
votes
6 answers

Zend session and zend auth

I have made a login system through zend auth here is the code // userAuthentication public function authAction(){ $request = $this->getRequest(); $registry = Zend_Registry::getInstance(); $auth =…
Fawad Ghafoor
  • 6,039
  • 7
  • 41
  • 53
5
votes
4 answers

Zend Framework: How to check an additional column while using DbTable Auth Adapter?

Currently, I'm getting a regular DbTable Auth Adapter: protected function _getAuthAdapter($formData) { $dbAdapter = Zend_Db_Table::getDefaultAdapter(); $authAdapter = new Zend_Auth_Adapter_DbTable($dbAdapter); …
Andrew
  • 227,796
  • 193
  • 515
  • 708
5
votes
3 answers

Zend_Auth checking if user is logged in

I tried using: // do login if request is posted if (isset($_POST) && !empty($_POST)) { // do authencation ... } else { // request not posted // see if already logged in if (Zend_Auth::getInstance()->hasIdentity()) { echo…
iceangel89
  • 6,113
  • 8
  • 40
  • 55
5
votes
3 answers

How does Zend_Auth storage work?

This is very simple. I write $auth->getStorage()->write($user); And then I want, in a separate process to load this $user, but I can't because $user = $auth->getIdentity(); is empty. Didn't I just... SET it? Why does it not work? Halp? [EDIT…
John
  • 261
  • 1
  • 3
  • 16
4
votes
2 answers

how to Use zend_auth as a plugin

I'm working on my first user login in Zend Framework, 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 as a plugin What do you guys think?
aattia
  • 39
  • 1
  • 3
1
2 3
13 14