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, Zend_Acl and Cron Jobs/Scheduled Tasks

I have implemented Zend_Auth & Zend_Acl into a project here at work and its working great. However, previously I had sceduled tasks running at various times of the day which now no longer work correctly due to the login process. These are called via…
Alistair
  • 17
  • 3
0
votes
1 answer

Problem defining what to do with 'guest' user in Zend_Acl

I'm getting the following error on every view available for the 'guest' user: Notice: Trying to get property of non-object in /home/fiodorovich/public_html/gisele/library/Federico/Plugin/Acl.php on line 35 the line it's referring to is '$role =…
la_f0ka
  • 1,773
  • 3
  • 23
  • 44
0
votes
1 answer

Zend - getting all logged users

I am working on Zend Framework. I have a problem with Zend_Auth. I must get all logged users. How can I do this?
Sardor
  • 157
  • 1
  • 8
0
votes
1 answer

Check if non-current user is logged in on a Zend Application project

Possible Duplicate: How to check logged in online users using Zend Framework I know how to check if the current user is logged in: Zend_Auth::getInstance ()->hasIdentity () But how do I check if another user is logged in or not? So if I wanted…
bluedaniel
  • 2,079
  • 5
  • 31
  • 49
0
votes
2 answers

I can't get my login form working in pimcore

Posts: I can't seem to get my auth controller working. I'm not sure what I am doing wrong. Basically I'm implementing zend_auth and using a pimcore object adapter that I found on this forum (http://pastebin.com/wzEPE1yk) You can preview my code…
Jason
  • 15,064
  • 15
  • 65
  • 105
0
votes
1 answer

Zend Session Identity losing object parameters

I have a strange problem I can't seem to track down. I have a custom class ("Person") extending Zend_Db_Table_Row_Abstract that represents a user. Among other things, this class has custom variables that are set in the init() method, for…
Niko Efimov
  • 2,183
  • 3
  • 20
  • 30
0
votes
1 answer

Database Specific Functions in Zend_Db and Zend_Auth

I am using Zend_Db to connect to a postgres database. I want to use some functions in the database, one is built in (the digest() function) and others are one's that are non-core. Is there a way to allow Zend_Db and/or Zend_Auth to use them? Current…
0
votes
4 answers

back button takes the user back to protected page after logout -zend framework

I have created a pages login , logout to access a control panel scenario goes like this: user logs in and accesss the cpanel page and them logs out Problem : when login is done if user click on browser back button user goes back to login page even…
Amir s
  • 136
  • 1
  • 1
  • 9
0
votes
1 answer

How do I combine Zend_Session and Zend_Oauth

I'm having a problem with Zend_Auth and Zend_Session. I recently broke my bootstrap file down into modular bootstraps. Since then, whenever I login using Zend_Auth I get an error that the session has already been started. So I changed my…
codeetcetera
  • 3,213
  • 4
  • 37
  • 62
0
votes
2 answers

Zend framework ACL question

I'm new to Zend framework and currently looking at Zend_Acl . There are multiple examples online. In a lot of these example you would see code like this one: class My_Acl extends Zend_Acl { public function __construct() { //Add a new role…
Stann
  • 13,518
  • 19
  • 65
  • 73
0
votes
1 answer

zend-authentication - setting identity to custom object with rbac roles loaded

In a ZF2 project i am using the AuthenticationService to validate a users log in credentials. This is working fine, except it only stores in the session a string containing the users name. What i would like would be for subsequent calls to…
John Crest
  • 201
  • 1
  • 4
  • 24
0
votes
1 answer

Zend_Auth / Zend_Session error and storing objects in Auth Storage

I have been having a bit of a problem with Zend_Auth and keep getting an error within my Acl. Within my Login Controller I setup my Zend_Auth storage as follows $auth = Zend_Auth::getInstance(); $result = $auth->authenticate($adapter); if…
Martin
  • 235
  • 5
  • 16
0
votes
1 answer

routing after authentication doesn't work properly

I probably have an understanding issue how the routing works. I tried a bit with zend-authentication, you can see the controllercode below. If the authentication is valide I want a routing to another controller index action. Should be quite simple,…
pia-sophie
  • 505
  • 4
  • 21
0
votes
1 answer

Authenticationservice in Zend framework 3

Is the authenticationservice in ZF3 still available? If not, what is the name of the new one? Does it work the same? I get the error message: Class 'Import\AuthenticationService' not found I asked composer to grab it: I also searched for it at…
pia-sophie
  • 505
  • 4
  • 21
0
votes
1 answer

zend_auth cookies?

I've created a simple login system and it works so far but I want the sessions to be remembered even after the browser is closed. Does Zend have something for this? I can't seem to find it. What would be the best way to do this? With XSS in mind…
user393964