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()
|
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;
|
||||||
}
|
}
|
||||||
|
@ -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);
|
||||||
|
@ -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;
|
||||||
|
@ -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);
|
||||||
|
@ -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;
|
||||||
|
|
||||||
|
@ -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) {
|
||||||
|
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