Account Service

This commit is contained in:
Michael RICOIS 2016-06-02 10:20:18 +02:00
parent c8789d4a98
commit 1e6845f1f5
7 changed files with 48 additions and 9 deletions

View File

@ -3,7 +3,7 @@ class Admin_ClientController extends Zend_Controller_Action
{ {
public function indexAction() public function indexAction()
{ {
$ws = new Scores_Ws_Client('gestion', '0.4'); $ws = new Scores_Ws_Client('account', '0.1');
$responses = $ws->getClient(); $responses = $ws->getClient();
$this->view->Info = $responses; $this->view->Info = $responses;
} }

View File

@ -3,7 +3,7 @@ class Admin_ServiceController extends Zend_Controller_Action
{ {
public function indexAction() public function indexAction()
{ {
$ws = new Scores_Ws_Client('gestion', '0.4'); $ws = new Scores_Ws_Client('account', '0.1');
$responses = $ws->getServiceList(); $responses = $ws->getServiceList();
$this->view->List = $responses->item; $this->view->List = $responses->item;
} }
@ -13,7 +13,7 @@ class Admin_ServiceController extends Zend_Controller_Action
$request = $this->getRequest(); $request = $this->getRequest();
$code = $request->getParam('code'); $code = $request->getParam('code');
$ws = new Scores_Ws_Client('gestion', '0.4'); $ws = new Scores_Ws_Client('account', '0.1');
$params = new stdClass(); $params = new stdClass();
$params->code = $code; $params->code = $code;
$responses = $ws->getService($params); $responses = $ws->getService($params);

View File

@ -8,14 +8,14 @@ class Admin_UserController extends Zend_Controller_Action
// Get Service Name // Get Service Name
// Ne pas créer d'utilisateur lorsque Service Editable = 0 // Ne pas créer d'utilisateur lorsque Service Editable = 0
$ws = new Scores_Ws_Client('gestion', '0.4'); $ws = new Scores_Ws_Client('account', '0.1');
$params = new stdClass(); $params = new stdClass();
$params->code = $code; $params->code = $code;
$serviceResponse = $ws->getService($params); $serviceResponse = $ws->getService($params);
$this->view->Service = $serviceResponse; $this->view->Service = $serviceResponse;
// Get Users // Get Users
$ws = new Scores_Ws_Client('gestion', '0.4'); $ws = new Scores_Ws_Client('account', '0.1');
$params = new stdClass(); $params = new stdClass();
$params->actif = 1; $params->actif = 1;
$params->service = $code; $params->service = $code;

View File

@ -61,7 +61,7 @@ class Auth_SsoController extends Zend_Controller_Action
$token = $params[$config['token']]; $token = $params[$config['token']];
try { try {
$ws = new Scores_Ws_Client('gestion', '0.4'); $ws = new Scores_Ws_Client('account', '0.1');
$parameters = new stdClass(); $parameters = new stdClass();
$parameters->client = $config['clientId']; $parameters->client = $config['clientId'];
$parameters->login = $login; $parameters->login = $login;
@ -208,7 +208,7 @@ class Auth_SsoController extends Zend_Controller_Action
); );
try { try {
$ws = new Scores_Ws_Client('gestion', '0.4'); $ws = new Scores_Ws_Client('account', '0.1');
$parameters = new stdClass(); $parameters = new stdClass();
$parameters->data = json_encode($data); $parameters->data = json_encode($data);
$created = $ws->setUserSSO($parameters); $created = $ws->setUserSSO($parameters);

View File

@ -39,7 +39,7 @@ class User_IdentityController extends Zend_Controller_Action
*/ */
public function indexAction() public function indexAction()
{ {
$ws = new Scores_Ws_Client('gestion', '0.4'); $ws = new Scores_Ws_Client('account', '0.1');
$responses = $ws->getUser(); $responses = $ws->getUser();
$this->view->Item = $responses; $this->view->Item = $responses;

View File

@ -38,7 +38,7 @@ class Application_Controller_Plugin_Histo extends Zend_Controller_Plugin_Abstrac
// --- Get Log // --- Get Log
if ($getLogs) { if ($getLogs) {
$view->UserHisto = array(); $view->UserHisto = array();
$ws = new Scores_Ws_Client('gestion', '0.4'); $ws = new Scores_Ws_Client('account', '0.1');
try { try {
$result = $ws->getUserHistory(); $result = $ws->getUserHistory();
if ($result !== false) { if ($result !== false) {

View File

@ -0,0 +1,39 @@
<?php
return array(
'0.1' => array(
'getCategory' => null,
'getAccess' => null,
'getClient' => null,
'getClientServices' => null,
'getClients' => null,
'getService' => array(
'debug' => true,
),
'getServiceList' => array(
'debug' => true,
),
'getUser' => null,
'getUserEmail' => null,
'getUserHistory' => array(
'debug' => true,
),
'getUserList' => array(
'debug' => true,
),
'loginAuthenticate' => null,
'setCGU' => null,
'setService' => null,
'setServiceParam' => null,
'setUser' => null,
'setUserEmail' => null,
'setUserPassword' => null,
'setUserSSO' => array(
'debug' => true,
'errorMsg' => array('SSO'),
),
'ssoAuthenticate' => array(
'debug' => true,
'errorMsg' => array('SSO'),
),
),
);