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

Zend Auth Session Cookie

I'm stuck on a common problem but I don't really know how to get out. The browsers don't keep the auth session. Here is my setup. "application.ini" resources.session.save_path = ROOT_DIR "/public/session" resources.session.gc_maxlifetime =…
mtoninelli
  • 686
  • 1
  • 6
  • 21
0
votes
3 answers

Zend_Auth login using either username or email as identityColumn

I'm using Zend_Auth with a "Database Table Authentication". What I want to do is allow the user to login with either a username or email address as the "identityColumn". How would I allow both. I'm stuck.
user169288
0
votes
2 answers

Where to put auth adapter class file in Zend 1.12

Because I am working with legacy tables, I wrote my own Auth_Adapter, named User_Auth_Adapter_DbTable. I have a module user and I want to have this class there. However, I have no idea where to actually put the file and how to name it so the Zend…
Lanbo
  • 15,118
  • 16
  • 70
  • 147
0
votes
2 answers

Session set for some Actions in Zend framework

I'm working on a website , in CV part users have some articles that only logged in users can download. I want to make changes to the login Action or preDispatch() to set session for guest users to download the articles. Can someone tell me how it…
0
votes
1 answer

zend framework 2 Authentication with mysqli fail

I have followed the zend instructions for implement my web Authentication using a database table with Mysqli driver configured. When render the page, the following exceptions appears after execute authenticate method: …
josepmra
  • 617
  • 9
  • 25
0
votes
1 answer

What is the best way to secure login proccess via ajax

when you post form via ajax, you can read password in plain text there. I thing that is security issue. Which possibilities are to hide password or disallowed to read it in firebug console for example?
tomasr
  • 485
  • 1
  • 8
  • 24
0
votes
1 answer

How to check is authenticated user (Zend FW) authorized in some JQuery function?

There is a user info in the user's area (web app use Zend Framework + Jquery). When I logged in as USER_1, I can edit USER_1 info of course, but when I in the new browser's window logged out as USER_1 and logged in as USER_2 and then back to window…
LIAL
  • 1,624
  • 4
  • 24
  • 30
0
votes
0 answers

how to prevent multiple logins zendframework

I have a website and I want to check if a user is already logged in from another device. I store a session value in the user table and I need some conditions to prevent that from happening. I have this code for the log in process: public static…
alex
  • 77
  • 2
  • 10
0
votes
2 answers

In Zend_Auth, can I get a domain-model User object instead of stdClass?

While working on the login part of an application, I find myself running into an issue: My model is based on Active Record, by extending Zend_Db_Table_Row objects. Whenever I have to deal with a user, I'd want to do this through the User object…
kander
  • 4,226
  • 1
  • 22
  • 43
0
votes
1 answer

Zend_Auth Identity not persisting between controllers

Fairly new to Zend Framework 1.11 with Doctrine 2. I have successfully created a login etc using Doctrine. My current problem though is that the Zend_Auth instance works fine when I stay within the controller that the log in is within. If I try…
John Cogan
  • 1,034
  • 4
  • 16
  • 39
0
votes
1 answer

Zend Force Login

I have my shell application working and I now want to ensure that a user is logged in before anything else occurs. I have a working auth controller and associated database tables, etc. I assumed that the best ay to do this was to put the identity…
Doug Wolfgram
  • 2,064
  • 4
  • 27
  • 42
0
votes
1 answer

Multi database authentication system, where should I store sessions using Zend Framework?

I am writing an ERM application using the Zend Framework in which user accounts are created under a main company account, enabling me to limit the number of user accounts for a company based on the license which the company paid for. Each company…
John Hall
  • 1,346
  • 13
  • 27
0
votes
1 answer

Zend_Auth hasIdentity() with further options

I need your help, knowledge and support :) I know, this is a lot... While writing the procedure for authentification I've found a code snippet as the following: $role = Zend_Auth::getInstance()->hasIdentity() ? 'member' : 'guest'; The hasIdentity()…
ThenO
  • 3
  • 1
0
votes
1 answer

Cross framework authentication zend + codeigniter

Zend_Auth uses PHP Session but, codeigniter has a different approach altogether. The project that I am working on requires that anyone who hasIdentity() in zend, when logs into another system which uses codeigniter, should not have issues to browse…
Keval Domadia
  • 4,768
  • 1
  • 37
  • 64
0
votes
5 answers

Difference between Zend_auth & Zend_acl?

I am using Zend Framework for one of my projects and I am very new to Zend Framework. Can you please tell me the difference between Aend_Auth and Zend_Acl?
1 2 3
13
14