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

How to store and change Zend_Auth session ID?

I've recently started using Zend Framework and I'm still pretty used to session_start, and assigning variables to certain session names (ie: $_SESSION['username'] == $username) I'm trying to figure out how to do something similar to this in Zend.…
Zack Tanner
  • 2,560
  • 1
  • 29
  • 45
2
votes
3 answers

Zend framework common code for all the controllers

I have a login button in the header of the website. This header's html is programmed into Zend framework views/layouts/home.phtml. I have a hidden form in this layout that is triggered by jQuery thickbox inline content display integration. Reason,…
2
votes
2 answers

Admin section in ZendFramework application

I have an application at the moment using Zend_Auth for user access. The site has an admin section where I want one user who has the role of admin in my database to be allowed access when he uses his credentials. Is Zend_Acl the only way to do this?…
Rex89
  • 153
  • 1
  • 3
  • 12
1
vote
1 answer

Redirecting requests form a catch-all controller in Zend Application without looping forever

There are plenty of related posts to what I'm asking, but after some lengthy searches couldn't quite find what I was looking for, my apologies if it exists somewhere. My goal -- ALL requests to my Zend App must go through a preDispatch plugin, then…
Dan
  • 6,022
  • 3
  • 20
  • 28
1
vote
1 answer

Zend_Auth replacement?

Zend_Auth provides an API for authentication and includes concrete authentication adapters for common use case scenarios. I started working with Zend Framework 2.0 beta1 and I noticed that it doesn't not include the Zend_Auth Module that was…
ufk
  • 30,912
  • 70
  • 235
  • 386
1
vote
1 answer

Zend Framework: How best to go about retrieving the first name of an authenticated user?

I can get the username by doing this: public function indexAction() { $this->view->username = Zend_Auth::getInstance()->getIdentity(); } "username" is the column in the table that validates the identity. "firstname" is also a column in that…
Andrew
  • 227,796
  • 193
  • 515
  • 708
1
vote
1 answer

Zend_Acl and Zend_Auth api key approach

What's a good way to implement api keys for accessing specific controller actions using Zend MVC? I currently have Zend_Acl in combination Zend_Auth using session cookies, but I want some actions to be crontabbed, while password protected through…
Jon Skarpeteig
  • 4,118
  • 7
  • 34
  • 53
1
vote
1 answer

Duplicate DB sessions created upon Zend_Auth login

I must be doing something wrong. I can't seem to find the answer to my problem anywhere on the Web, and this generally means that the solution is so simple that no one needs an answer on it. I am using a database to store my session. I set it up…
Wes
  • 399
  • 5
  • 14
1
vote
2 answers

how can we make Zend session storage as persistent among available methods?

I am little bit confused about Zend authentication session storage system. I will try to explain my problem. Please try to express your opinion or anything you know about zend session or my assumptions and questions. By default,…
Guru
  • 419
  • 4
  • 13
1
vote
2 answers

Zend Auth - Indentities

I have an auth resource in my library that is correctly returning one of the various statuses based on whether or not the user exists, wrong password, or correct password. I'm trying to get the identity into my controllers though. So in the auth…
nwalke
  • 3,170
  • 6
  • 35
  • 60
1
vote
2 answers

Zend Framework User Authentication (MVC question)

I'm getting some trouble understanding the MVC concepts. I'm building a User model, you know? Application_Model_Users. They say that the models should only contain the structure... and the business logic should be put in the controller. So, consider…
1
vote
2 answers

Zend_Auth and Zend_Namespace Session Error

I'm developing an application, everything works fine but sometimes i get the following error: Fatal error: Uncaught exception 'Zend_Session_Exception' with message 'session has already been started by session.auto-start or session_start()' in…
dextervip
  • 4,999
  • 16
  • 65
  • 93
1
vote
1 answer

Using Zend_Auth in Pimcore

Im new to Pimcore and I'm trying to use Zend Auth with pimcore objects. I assume this is a wise approach and it seems more or less logical to me. I've done the initial setup of the object within pimcore itself. Now I'm trying to work out how to…
Jason
  • 15,064
  • 15
  • 65
  • 105
1
vote
2 answers

How do I combine Zend_Ath, Zend_Acl and partialview for the authentication and resource control

According to Randomness will get you everywhere. Ryan’s Blog the action stack component of Zend Framework is un-needed and that a partial view can be combined with Zend_Acl and Zend_Auth for the purpose of authenticating and controlling resources.…
Napoleon
  • 879
  • 2
  • 14
  • 36
1
vote
1 answer

Need help with Zend_Auth Storage

Currently I have this code (Fetching user informations from Database then store into Zend_Auth session storage) $auth = Zend_Auth::getInstance(); $storage = $auth->getStorage(); $storage->write($authAdapter->getResultRowObject(array('email',…
user648198
  • 2,004
  • 4
  • 19
  • 26