Hello All,
I am trying to create a single sign on system that will support multiple sites. What I’m trying to do is use Zend_Soap to pass the login credentials back and forth. I am having problems doing this as my Soap Server does not recognized my Zend_Auth instances and does not pass me back my user information.
Here is my server class. This is called from a controller action so the session is started and return stuff in other actions but not from this class.
class IMS_User_SoapService
{
/**
* Is the requesting user logged into this website?
*
* @return boolean
*/
public function isLoggedIn()
{
$auth = Zend_Auth::getInstance();
return $auth->hasIdentity();
}
/**
* Get the identify if they are logged in.
*
* @return mixed|null
*/
public function getLoginCredentials()
{
$auth = Zend_Auth::getInstance();
return $auth->getIdentity();
}
}
Do I need to be doing something else or am I going about this completely wrong by using Soap?
Thanks,
Jon Whitcraft P: (317) 492-8623 - F: (317) 492-6419 |
********************
********************
This E-mail (and attachments) may contain confidential/privileged information intended only for the named addressee(s). If you are not an intended recipient, do not read, copy, disseminate or take any action based on the content of this E-mail. Please notify the sender by reply E-mail and erase this E-mail from your system. Your assistance is appreciated. E-mail transmission may not be secure or error-free. The company is not responsible for any loss/damage arising from any virus transmitted.
********************
********************
没有评论:
发表评论