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

Simple authentication that uses zend_auth independent of the rest of the Zend framework

I'm working on the login system for a php web app. I'm aware of the dangers of rolling your own system, so I'm hoping to use a pre-built library of some kind. I have seen zend_auth recommended in several places. I have also heard that zend_auth…
Travis
  • 433
  • 1
  • 5
  • 9
1
vote
3 answers

Zend_Auth multiple credentials?

Login Form: $authAdapter = Zend_Registry::get('authAdapter'); $authAdapter ->setIdentity($formData['email']) ->setCredential($password) ->setCredential(1); Bootstrap: protected function _initAuth(){ $this->bootstrap('db'); …
azz0r
  • 3,283
  • 7
  • 42
  • 85
1
vote
1 answer

Zf2 + Doctrine 2 Authentication Adapter with Multiple or Alternate Columns

I am working on a site in which user can enter two email address(primary and secondary) along with password. If user enters his primary email and password, he gets logged in successfully. But, what I am trying to provide is if user enters his…
1
vote
1 answer

Registration with Zend Framework 1.12 Confirmation email mechanism

I have used email verification for user login and authentication. I have written a code so that the status becomes status=1 when he clicks on the link sent to his email. And then he is redirected to login page. He needs to login with the same…
1
vote
1 answer

Zend Framework 2 (ZF2) auth session refresh using storage

I have looked all over and I can see where people have created the initial session for ZF2 auth, remember me's, etc, but I can't find where people are updating the session when there is activity. Basically, I already have an authentication (with…
1
vote
2 answers

Zend Auth With Two Identity Columns

I am using Zend_Auth to validate user credentials and ran into an issue. I need to have a dual column identity. The the two columns are user name and customer identifier. The identityColumn setting and setIdentity() methods don't allow for this…
Sonny
  • 8,204
  • 7
  • 63
  • 134
1
vote
1 answer

Zend_Auth_Adapter_DbTable to authenticate users

I'm starting with the Zend framework and I wanted to use Zend_Auth_Adapter_DbTable to authenticate my users ... I looked at the docs, which seem quite straight forward, but I'm getting an error. Here's my code snippet : $adapter = new…
just_a_dude
  • 2,745
  • 2
  • 26
  • 30
1
vote
2 answers

How to use php 5.5 password api with Zend_Auth_Adapter_DbTable

Until now I have stored all passwords in plain text because the site is not live and I decided to wait for the new password api. I have this code working for passwords in plain text:
adamnyberg
  • 58
  • 1
  • 8
1
vote
0 answers

Zend_Auth: Join Query Issue

I'm a new guy for zendframework. i am facing zend auth join query issue.. Here I attach my zend_auth login sample code. My login information's are stored in two tables. I mean email address in separate table and password separate. Here I was try to…
1
vote
0 answers

Understanding the Session Manager and Zend\Authenticate in ZF2

In the login action I'm having the following code: public function login($sEmail, $sEncryptedPassword, $bIsClear = true) { $manager = $this->getServiceLocator()->get('session_manager'); $manager->start(); …
sica07
  • 4,896
  • 8
  • 35
  • 54
1
vote
2 answers

Zend_Auth->getStorage->write() data object lost

i'm getting crazy with my authentication data. When my in my app someone logs in, my authcontroller stores the user data in the Zend_Auth storage class AuthController extends Zend_Controller_Action { ... public function loginAction() { ... …
russanto
  • 21
  • 1
  • 3
1
vote
1 answer

Zend_Auth_Adpter_Ldap to Active Directory - Configuration problems

i am trying to figure out how to configure the Zend_Auth_Adapter_Ldap to authenticate me against our ActiveDirectory. Manually the authentication works without a problem, but i just can't get it to work using the Zend_Auth_Adapter_Ldap. This is the…
Sam
  • 16,435
  • 6
  • 55
  • 89
1
vote
1 answer

setting up OpenID authentication using Zend_Auth_Adapter_OpenId

how do i go abt setting up Zend_Auth_Adapter_OpenId ? in the docs: $auth = Zend_Auth::getInstance(); if ((isset($_POST['openid_action']) && $_POST['openid_action'] == "login" && !empty($_POST['openid_identifier'])) || …
iceangel89
  • 6,113
  • 8
  • 40
  • 55
1
vote
1 answer

Best way to redirect when logged in

I'm looking to create an index page of example.com that shows a login form when an user first goes on the site. Then after logging in, example.com will show a main page of their content. What is the best practice of accomplishing this in Zend…
michael liu
  • 55
  • 1
  • 7
1
vote
1 answer

How translate PHP code to Zend Framework 2

Possible Duplicate: How to use Zend\Session in zf2? I begin with ZF2 but I can't continue because I don't understand the official ZF2 documentation. I run version 2.0.4. How can I simply translate this PHP code into…
Patou
  • 21
  • 6