|
|
<?php |
|
|
|
|
|
use siu\bootstrap; |
|
|
|
|
|
return [ |
|
|
|
|
|
'ofrecidos' => [ |
|
|
//por el momento solo se puede ofrecer 1 solo servicio |
|
|
'rest' => [ //cualquier id |
|
|
'activo' => false, |
|
|
//'tipo' => 'rest', //no se usa, son los unicos tipos que se ofrecen |
|
|
//'clase' => '\\modelo\\rest\\ConfiguracionRest', //Si se provee, se usa esta en lugar de la del nucleo (extenderla) |
|
|
'parametros' => [ |
|
|
'autenticacion' => [ //obtiene los user/pass de un archivo y usa http-basic |
|
|
'tipo' =>'basic', |
|
|
'parametros' => [ //parametro para el tipo basic |
|
|
'archivo_usuarios' => bootstrap::get_dir_instalacion()."/servicios_web/ofrecidos/usuarios.php" |
|
|
] |
|
|
], |
|
|
/*'autenticacion' => [ //para personalizar completamente la autenticacion |
|
|
'clase' => '\\modelo\\rest\\autenticacion', |
|
|
'parametros' => [ ) |
|
|
), |
|
|
'autenticacion' => [ //saca los usuarios de la bd del proyecto. Usa basic-http. |
|
|
'tipo' =>'proyecto' |
|
|
),*/ |
|
|
|
|
|
'settings' => ['formato_respuesta' => 'json'] //settings que se pasan a la libreria |
|
|
] |
|
|
], |
|
|
|
|
|
], |
|
|
|
|
|
|
|
|
'consumidos' => [ |
|
|
|
|
|
/*'kolla' => [ |
|
|
'tipo' => 'soap', |
|
|
'url' => "http://localhost/kolla/3.2/servicios.php/habilitaciones", |
|
|
'seguro' => true, //usa o no los certificados. Por omision es Verdadero! |
|
|
'clave_publica' => bootstrap::get_dir_instalacion() . "/servicios_web/publica.crt", //local |
|
|
'clave_privada' => bootstrap::get_dir_instalacion() . "/servicios_web/privada.pkey", //local |
|
|
'certificado_servicio' => bootstrap::get_dir_instalacion() . "/servicios_web/consumidos/kolla.crt", //server externo |
|
|
), |
|
|
|
|
|
'renaper' => [ |
|
|
'tipo' => 'rest', |
|
|
'parametros' => [ |
|
|
'base_uri' => '<BASE-URI-RENAPER-API>',//EJEMPLO: https://URL_RENAPER.gob.ar/ |
|
|
'url_header' => '<URL-HEADER-RENAPER-API>',//EJEMPLO: URL-Method/personData |
|
|
'apiKey_personData' => '<API-KEY-RENAPER>',//EJEMPLO: 12345678-1234-4321-1234-9s8e6g57h3f4 |
|
|
] |
|
|
],*/ |
|
|
|
|
|
'test' => [ |
|
|
'tipo' => 'rest', |
|
|
'parametros' => [//usa cliente Guzzle, son opciones en formato guzzle |
|
|
'base_uri' => "http://url-api/rest/", |
|
|
'auth' => ['usuario', 'password', 'tipo-autenticaci<EFBFBD>n'], //user, password, tipo-autenticaci<EFBFBD>n 'basic' o 'digest' seg<EFBFBD>n guzzle |
|
|
] |
|
|
], |
|
|
|
|
|
'boleto_estudiantil' => [ |
|
|
'tipo' => 'rest', |
|
|
'parametros' => [ |
|
|
'base_uri' => "https://boletoeducativo.gba.gob.ar/ws/", |
|
|
'auth' => ['usuario', 'password', 'basic'], |
|
|
'auth_ua' => 'XXXXX', |
|
|
'verify' => true, |
|
|
] |
|
|
] |
|
|
|
|
|
] |
|
|
]; |