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

How to make Zend_Auth case insensitive to username?

Is there a way to make Zend_Auth to accept case-insensetive identities(i.e. usernames)? Zend_Auth seems to provide a way to add special treatment to a credential field, but not to identity field. PS: I am using Zend_Auth_Adapter_DbTable that points…
Alex N.
  • 14,805
  • 10
  • 46
  • 54
2
votes
1 answer

Zend_Auth getidentity always returns null

Experts, I just found a weird behavior of Zend_Auth whereby it's not able to store session in the server. This happens just suddenly to all of my existing applications that use Zend_Auth for authentication purpose, so I'm sure it's not a problem…
ronanray
  • 577
  • 3
  • 12
  • 24
2
votes
1 answer

setCredentialTreatment is not available in SQLite

I ran into a strange error, I want to share it with you. I had to convert my MySQL database to SQLite, which was actually a piece of cake with the program called DBConvert. So I changed in my application.ini: resources.db.adapter =…
DelphiLynx
  • 911
  • 1
  • 16
  • 41
2
votes
2 answers

Zend_Auth identity versioning

There is a situation: I store some structured data (e.g. array or object, or even string) as a Zend_Auth identity. From version to version the structure of identity could be changed thus identity from one version could (or could not) be compatible…
Sergei Morozov
  • 602
  • 1
  • 7
  • 17
2
votes
1 answer

Zend_Auth using Zend_Session instead of default storage?

I was reading through this tutorial, and at one point in the code, the user info is retrieved from the database and a session is created for the user: // the default storage is a session with namespace Zend_Auth $authStorage = $auth->getStorage();…
user393964
2
votes
4 answers

Multiple Instances (2) of Zend_Auth

I have a CMS built on the Zend Framework. It uses Zend_Auth for "CMS User" authentication. CMS users have roles and permissions that are enforced with Zend_Acl. I am now trying to create "Site Users" for things like an online store. For…
Sonny
  • 8,204
  • 7
  • 63
  • 134
2
votes
0 answers

Action is not executed

Guys am creating an Auth module and inside my AuthController I have three methods: 1. loginAction() 2. autheticateAction() 3. logoutAction() Problem is when I submit the form the autheticate() method is not executed : $form->setAttribute('action',…
Ivan
  • 5,139
  • 11
  • 53
  • 86
2
votes
1 answer

Is there any way to force authentication with Zend_Auth?

I am working with Zend_Auth and cookie/session persistence. I can't seem to figure out how to force an authentication with this class. Is there any way to force Zend_Auth to believe it has authenticated as a user?
Ben Dauphinee
  • 4,061
  • 8
  • 40
  • 59
2
votes
2 answers

Android save user session

I'm new in android I'm trying to save login session and send it with every time I send request to server, My web service is PHP (Zend framework 2). This code to identify user: $auth = Zend_Auth::getInstance(); $IdentityObj =…
user3560669
2
votes
1 answer

Zf2 layout and authentication

I am building a ZF2 based site, and it has 2 different layouts. It has some public pages and some internal pages which require user authentication, each set of pages have their layouts. I was initially thinking of creating a controller plugin and…
2
votes
2 answers

Validate credentials against Active Directory with Zend\Authentication\Adapter\Ldap (ZF2)

I want to check username/password against our active directory within my ZF2-Application. I use Zend\Authentication\Adapter\Ldap for this and it works partly. This is my code: use Zend\Authentication\AuthenticationService; use…
Stephan
  • 1,246
  • 8
  • 16
2
votes
2 answers

Zend_Auth and Firebird DB

A short question for the PROs. Is it possible to use Zend_Auth_Adapter_DbTable with ZendX_Db_Adapter? I've tried this: $adapter = new Zend_Auth_Adapter_DbTable( Zend_Registry::get('db') ); $adapter->setTableName('USERS') …
chmoelders
  • 18,584
  • 6
  • 22
  • 24
2
votes
2 answers

zend framework 2 autentification using DbTable failure

I have followed the zend instructions for implement my web Authentication using a database table. It's exactly the same code, but when render the page, the following exceptions appears: Zend\Authentication\Adapter\Exception\RuntimeException …
josepmra
  • 617
  • 9
  • 25
2
votes
1 answer

How to get the Session ID from a Zend_Auth session?

Using the default Zend_Auth session storage (PHP Sessions), it creates a session ID and puts it in a cookie. If I want to get at the authenticated user's username (identity), the Zend_Auth::getInstance()->getIdentity() method gets that. However, I…
MidnightLightning
  • 6,715
  • 5
  • 44
  • 68
2
votes
3 answers

In Zend authentication how do i check additional column along with authentication?

I have a scenario where i need to check some additional columns while doing the authentication. This is because, the application stores some usernames in database and some in LDAP. the authentication precedence is for usernames in database. If…
codlib
  • 618
  • 1
  • 11
  • 28
1 2
3
13 14