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
1
vote
1 answer

Database and File Salt for Zend_Auth

In my application I have a table row salt, and a static salt set in my Zend_Registry. I'm trying to both, without having to write my own Auth_Adapter. Here's what I have right now for just one salting…
tcole
  • 947
  • 6
  • 14
1
vote
1 answer

how to get role from Zend_Auth/Zend_ACL when using a Doctrine adapter? getting all work together

I'm using Zend_Auth with a project using doctrine.I believe every bootstrapping is done correctly and i can log in. my adapter looks like this: class Abra_Auth_Adapter_Doctrine implements Zend_Auth_Adapter_Interface { protected…
black sensei
  • 6,528
  • 22
  • 109
  • 188
1
vote
1 answer

zend acl multiple access lists/levels

I'm building a portal where user and companies can join. Users can either be independent or working under a company. There is some basic access which is available to all users regardless of their type (independent or associated with a company).…
Bryan
  • 645
  • 1
  • 6
  • 18
1
vote
7 answers

The supplied parameters to Zend_Auth_Adapter_DbTable failed to produce a valid sql statement

I have the following exception Caught exception: The supplied parameters to Zend_Auth_Adapter_DbTable failed to produce a valid sql statement, please check table and column names for validity. I have googled and checked my code over and over again…
Napoleon
  • 879
  • 2
  • 14
  • 36
1
vote
1 answer

Make user object available to all Controllers in Zend?

I'm using Zend_Auth to identify a user in my application. This creates a session with the userobject. My question is how do I make this object available to every Controller and action, so I don't have to pull it out of the session every time I need…
user393964
1
vote
1 answer

have zend auth store multiple values of identity

so basically when we use zend auth we can call function $auth->getIdentity() to get the identity of the currently logged in user....the thing is...it would return the value that was set from setIdentity() function during authentication which usually…
kamikaze_pilot
  • 14,304
  • 35
  • 111
  • 171
1
vote
1 answer

Zend_Auth now only works partial

Okay, This is completely a weird situation. When a user logs in, I store some stuff using the following code: $auth->getStorage()->write($authAdapter->getResultRowObject(array( 'username', 'avatar', …
Rick de Graaf
  • 968
  • 1
  • 14
  • 35
1
vote
2 answers

ZF3 MVC Zend\Authentication as a Service Factory

I'm trying to adapt my ZF2 User module to ZF3 MVC. It has an authentication service manager that is called in the onBootsrap function inside the Module class for every request (i.e. page loading) to check if the user is authenticated. As…
l_r
  • 1,060
  • 12
  • 23
1
vote
1 answer

Zend_Auth - When I set a custom storage namespace it does not exist when I redirect to a new controller

In my entry controller I set: This works: $authadapter = new Test_Auth_Adapter_DbTable($db); $auth = Zend_Auth::getInstance(); $result = $auth->authenticate($authadapter); $data = $authadapter->getResultRowObject(null,…
Lothar
  • 3,409
  • 8
  • 43
  • 58
1
vote
1 answer

Refactoring a Zend_Auth implementation

I am working on an existing project that has two areas that can be logged into. An admin section and the front end. Currently the admin section has a login action and the front end has its own login action. Admin logs in using a database table…
rg88
  • 20,742
  • 18
  • 76
  • 110
1
vote
1 answer

What PHP framework provides the most feature-rich authentication and/or access control?

I am currently exploring Zend_Auth, part of Zend Framework, but am dissapointed with the lack of more advanced features such as nonces, authentication tokens, lock-out, etc. In one of my recent projects, I implemented an authentication and ACL…
Chris Laplante
  • 29,338
  • 17
  • 103
  • 134
1
vote
1 answer

Creating a secured rss feed with Zend_Feed

I was wondering if it was at all possible to create a rss(or atom) feed with Zend_Feed that would be on a secured website (With Zend_Auth). How would users be able to subscribe to my feed? How would feedreaders handle authentification? Is there…
Iznogood
  • 12,447
  • 3
  • 26
  • 44
1
vote
2 answers

Sign on several sites

i have 2 sites (example.com, ex2.com). Fisical is a 1 site with 1 db. When user sing in ex2.com, he was sing in example.com too. How do this? P.S. Can do this with ZF? I found a very interesting article on this topic. The author gives some ideas how…
ErgallM
  • 237
  • 3
  • 9
1
vote
1 answer

ZF2 : Zend_Auth with Doctrine how to to bypass setCredentialValue check, ie when Password check is not required

I have Implemented a login module with Zend_Auth & Doctrine , and its working fine as expected, now that I have implemented Social login too in the module, in this case I need to bypass Password check , as Password are not required in such cases…
Dimag Kharab
  • 4,439
  • 1
  • 24
  • 45
1
vote
1 answer

Zend_Auth updating Identity

I'm now sitting here a little bit longer and i want to know the best solution to update the Identity from the Zend_Auth. public function _initLoadSessionData() { if (Zend_Auth::getInstance()->hasIdentity()) { $userTbl = new…
Claicon
  • 11
  • 2