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

SQL injection in auth adapter setIdentity() and setCredential()

When I set up an auth adapter, to prevent sql injection, do I need to filter or process the user input before giving it to the setIdentity and setCredential methods? This is my code. I use the unprocessed post data from…
samquo
  • 757
  • 7
  • 21
0
votes
2 answers

Zend_ACL how to get role?

after reading the Zend documentation and some posts here I could not figure out how to get my user role out of a user table. At the moment I use Zend_Auth like this in an AuthController: // Set authentication adapter and map ID and Cre. // only…
lony
  • 6,733
  • 11
  • 60
  • 92
0
votes
1 answer

How to implement the relation between an identity and a service?

I'm using Zend Framework to build an application where i make use of SOA for the usual reasons, and i've come across a problem i'm not sure how to solve. The app has an authentication step and i want to get ACL in there as well, but the problem is i…
0
votes
0 answers

zend framework 2 authentication service check multiple conditions in credential treatment

I am using zf2 authentication service where in credential treatment i want to send several messages to user by checking some conditions as following:- If status is false then message as "you need admin permission to login". If email_confirmed is…
Munanshu Madaan
  • 170
  • 1
  • 1
  • 11
0
votes
1 answer

Exception while calling authenticate method of Zend Authentication Service

I'm migrating my ZF2 app to ZF3. While calling the authenticate method, getting this exception An error occurred An error occurred during execution; please try again later. No Exception available This is how I' calling the method, public…
Keyur
  • 1,113
  • 1
  • 23
  • 42
0
votes
2 answers

Zend framework - Pull full user list from my domain controller via LDAP

I've setup a new webserver with Apache 2.4, PHP7 and Zend framework The authentication works with a single user just fine so i know that i have installed the Zend framework correct and it is working. My problem is that i now want to display a full…
Windkin
  • 63
  • 1
  • 4
0
votes
2 answers

problem with site cache when using logout script in zend auth

so I call the zend auth clear identity function through ajax and if the ajax returns true (ie the identity got cleared), i just reload the browser through location.reload() and what usually happens is that the page has the following: if…
kamikaze_pilot
  • 14,304
  • 35
  • 111
  • 171
0
votes
1 answer

Cannot logout with Zend_Auth's clearIdentity()

I authenticate a user with Zend_Auth (LDAP Adapter). now I have tryed doing a logout script: public function logoutAction() { $db = Zend_Registry::Get('DbSrv1'); Zend_Auth::getInstance()->clearIdentity(); $this->view->title =…
Ueli
  • 2,301
  • 5
  • 25
  • 29
0
votes
1 answer

In Zend Framework Zend_Db_Table::getDefaultAdapter() returns Null

after serching up and down the internets, finding no proper answer, I am asking you: I want to implement a getAuthAdapter(array $form) private function getAuthAdapter(array $form) { $authAdapter = new Zend_Auth_Adapter_DbTable( …
0
votes
1 answer

zend_auth causing application to error

i have been following some online screencasts and tutorials about zend_auth. i have a basic zend application created by the zf tool. within the index controller index action i place a little code to test if a user is…
zend novice
  • 53
  • 1
  • 4
0
votes
1 answer

Zend Framework losing sessions at random moments?

Since a few days, I have a strange problem with Zend sessions. It seems that Zend_Auth::getInstance() seems to be empty at random moments, which causes users to be logged out. Sometimes this happens after a few seconds, sometimes a few minutes and…
Roel Jansen
  • 306
  • 2
  • 11
0
votes
1 answer

Read AuthStorage, Zend Framework

on my project website users are able to login and move from page to page on my site by being logged in. so they do not have to log in again for moving to another section on my page. to achieve that I use the storage of Zend_Auth. Following code…
DarkLeafyGreen
  • 69,338
  • 131
  • 383
  • 601
0
votes
1 answer

Zfcuser add register fields

Am trying to add new register fields in zfcuser moudle in register. I have problem bcs new fields not rendered in register.phtml What i do: First i create new User entity in my custom module and extend \ZfcUser\Entity\User, and add new properties…
Ivan
  • 5,139
  • 11
  • 53
  • 86
0
votes
1 answer

Zend\ServiceManager\ServiceManager::get was unable to fetch or create an instance for AuthService

I Logging into a login page and always getting this error. I have used Zend Authentication in my code . Here is my controller for login page :
Adi
  • 43
  • 10
0
votes
2 answers

ZF2 check if user logged in other modules

Guys how can i check in other modules if user is logged or not? Can i do that with sessions or Zend\Auth have better way to do that? I created auth module using Zend \ Authentication component and evrything work fine. I want separate my modules…
Ivan
  • 5,139
  • 11
  • 53
  • 86