Account Service
This commit is contained in:
parent
c8789d4a98
commit
1e6845f1f5
@ -3,7 +3,7 @@ class Admin_ClientController extends Zend_Controller_Action
|
||||
{
|
||||
public function indexAction()
|
||||
{
|
||||
$ws = new Scores_Ws_Client('gestion', '0.4');
|
||||
$ws = new Scores_Ws_Client('account', '0.1');
|
||||
$responses = $ws->getClient();
|
||||
$this->view->Info = $responses;
|
||||
}
|
||||
|
@ -3,7 +3,7 @@ class Admin_ServiceController extends Zend_Controller_Action
|
||||
{
|
||||
public function indexAction()
|
||||
{
|
||||
$ws = new Scores_Ws_Client('gestion', '0.4');
|
||||
$ws = new Scores_Ws_Client('account', '0.1');
|
||||
$responses = $ws->getServiceList();
|
||||
$this->view->List = $responses->item;
|
||||
}
|
||||
@ -13,7 +13,7 @@ class Admin_ServiceController extends Zend_Controller_Action
|
||||
$request = $this->getRequest();
|
||||
$code = $request->getParam('code');
|
||||
|
||||
$ws = new Scores_Ws_Client('gestion', '0.4');
|
||||
$ws = new Scores_Ws_Client('account', '0.1');
|
||||
$params = new stdClass();
|
||||
$params->code = $code;
|
||||
$responses = $ws->getService($params);
|
||||
|
@ -8,14 +8,14 @@ class Admin_UserController extends Zend_Controller_Action
|
||||
|
||||
// Get Service Name
|
||||
// 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->code = $code;
|
||||
$serviceResponse = $ws->getService($params);
|
||||
$this->view->Service = $serviceResponse;
|
||||
|
||||
// Get Users
|
||||
$ws = new Scores_Ws_Client('gestion', '0.4');
|
||||
$ws = new Scores_Ws_Client('account', '0.1');
|
||||
$params = new stdClass();
|
||||
$params->actif = 1;
|
||||
$params->service = $code;
|
||||
|
@ -61,7 +61,7 @@ class Auth_SsoController extends Zend_Controller_Action
|
||||
$token = $params[$config['token']];
|
||||
|
||||
try {
|
||||
$ws = new Scores_Ws_Client('gestion', '0.4');
|
||||
$ws = new Scores_Ws_Client('account', '0.1');
|
||||
$parameters = new stdClass();
|
||||
$parameters->client = $config['clientId'];
|
||||
$parameters->login = $login;
|
||||
@ -208,7 +208,7 @@ class Auth_SsoController extends Zend_Controller_Action
|
||||
);
|
||||
|
||||
try {
|
||||
$ws = new Scores_Ws_Client('gestion', '0.4');
|
||||
$ws = new Scores_Ws_Client('account', '0.1');
|
||||
$parameters = new stdClass();
|
||||
$parameters->data = json_encode($data);
|
||||
$created = $ws->setUserSSO($parameters);
|
||||
|
@ -39,7 +39,7 @@ class User_IdentityController extends Zend_Controller_Action
|
||||
*/
|
||||
public function indexAction()
|
||||
{
|
||||
$ws = new Scores_Ws_Client('gestion', '0.4');
|
||||
$ws = new Scores_Ws_Client('account', '0.1');
|
||||
$responses = $ws->getUser();
|
||||
$this->view->Item = $responses;
|
||||
|
||||
|
@ -38,7 +38,7 @@ class Application_Controller_Plugin_Histo extends Zend_Controller_Plugin_Abstrac
|
||||
// --- Get Log
|
||||
if ($getLogs) {
|
||||
$view->UserHisto = array();
|
||||
$ws = new Scores_Ws_Client('gestion', '0.4');
|
||||
$ws = new Scores_Ws_Client('account', '0.1');
|
||||
try {
|
||||
$result = $ws->getUserHistory();
|
||||
if ($result !== false) {
|
||||
|
39
library/Scores/Ws/Client/Account.php
Normal file
39
library/Scores/Ws/Client/Account.php
Normal 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'),
|
||||
),
|
||||
),
|
||||
);
|
Loading…
Reference in New Issue
Block a user