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
0
votes
2 answers

How to implement a custom authentication storage class in ZF2?

I've been trying to implement Zend\Authentication following the instructions on http://framework.zend.com/manual/current/en/modules/zend.authentication.intro.html, but I seem to be missing a piece of the puzzle. I've built a custom adapter, and…
Marco
  • 2,329
  • 1
  • 21
  • 25
0
votes
1 answer

Doctrine proxy serialization issue with Zend

I have a problem with zf2 authentication. The problem occurs when zend try to serialize Doctrine entity which has attribute defined as Doctrine Proxy. I got PHP Warning: unserialize(): Function spl_autoload_call() hasn't defined the class it was…
finder
  • 125
  • 1
  • 12
0
votes
1 answer

Zend Navigation Multiple ACL roles

I am trying to create an ACL where users may have different roles in different departments. The user is given a role in the form of role::guest or role::user depending if they are logged in. This is their userRole. (There is also a role::superuser…
Gavin
  • 2,123
  • 1
  • 15
  • 19
0
votes
1 answer

Zend framework 1 login slow

Generally my application response times are good and pages load quickly. However login, using Zend_Auth with mysql db, takes an age compared to other tasks. I'm wondering has anyone else encountered this? If not can anyone suggest a good way to…
Stewart Megaw
  • 311
  • 2
  • 14
0
votes
1 answer

Zf2 + Doctrine 2 Authentication Adapter restrict to fetch delete flag is equal to true row

I have an issue like, in my account table delete flag column is there. So if I delete a user it will set as 1. And i can create new user with same mail id. At that time this code fails, there are two records with same mail id. Is there any way to…
Pramod
  • 1,031
  • 3
  • 13
  • 26
0
votes
2 answers

ZF2 LDAP SSL certificate untrusted

I am leveraging the Zend Framework 2 Zend\Authentication\Adapter\Ldap to authenticate against Windows Active Directory. It all works perfectly when I do not attempt to use SSL. With SSL I cam getting the following error: 0x51 (Can't contact LDAP…
Eva Donaldson
  • 385
  • 4
  • 18
0
votes
1 answer

Get all session data in zend 1.12

Hi good morning to everyone here, I have the following code which always returns me the value 'direccion' on the view, but I would like to retrieve all the values ​​of the vase of data and put it to the meeting, as I can do that, they are thank you…
user3680708
  • 117
  • 2
  • 9
0
votes
1 answer

Problem with zend_acl zend_auth and helper url (Zend Framework)

Friends. I put together a site with Zend_Acl and Zend_Auth and works perfect. The problem comes when I enter a page is not permitted and the site returns to the index page, here are the urls that armed with the helper url zend framework are…
daniel
  • 1
  • 1
0
votes
1 answer

Integration of Zend_Auth and Zend_Acl with Zend_Amf_Server

Has anyone succesfully integrated Zend_Auth and Zend_Acl with Zend_Amf_Server? I'am looking for a working example.
user269474
0
votes
1 answer

Zend_Auth - Forced to use Zend_DB for quick installation/use?

i am thinking of using Zend_Auth as the Authentication "mechanism" (component) for a web site. After a quick look a realized that for Database Table Authentication i will also have to use the Zend_Db component. Has anyone tried this approach? Am i…
Andreas
  • 5,305
  • 4
  • 41
  • 60
0
votes
2 answers

Empty Zend_Auth::getInstance()->hasIdentity()

i have a LoginController like this: public function loginAction(){ $db = $this->_getParam('db'); $this->_helper->viewRenderer->setNoRender(); $this->_helper->getHelper('layout')->disableLayout(); $adapter = new…
user2683906
  • 65
  • 1
  • 6
0
votes
2 answers

How to use Zend Auth to make values globally available in each action & layout.phtml

I have implemented Zend Auth by creating a getServiceConfig()-like AuthenticationService Object in Module.php: 'AuthService' => function($sm) { $dbAdapter = $sm->get('Zend\Db\Adapter\Adapter'); …
Bhuvi
  • 48
  • 5
0
votes
1 answer

Zend_ACL guest roles overide Adminstrator roles?

I have created Zend_ACL with three roles :'administrator, guest, *edito*r'. I want guest cannot access /album/index after login. Administrator, editor can access /album/index. All other pages are accessible by all. I created the access list below…
huy
  • 1
0
votes
1 answer

Zend 1.12: auth adapter using doctrine 2

how to getting auth adapter using doctrine 2 instead of zend_db: private function getAuthAdapter() { $authAdapter= new Zend_Auth_Adapter_DbTable( Zend_Db_Table::getDefaultAdapter() ); $authAdapter->setTableName('users') …
0
votes
1 answer

remember me with zend_auth

I use Zend_Auth to log in a user with username and password credentials. But upon closing the browser tab, and opening the website in a new tab, the authentication is remembered by Zend Auth. I need this to happen only if the user checks remember me…
Sonu Jha
  • 719
  • 3
  • 13
  • 23