ministeriodeindustria / sur-security-bundle
Bundle de seguridad para integracion con el SUR
Installs: 135
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 1
Forks: 0
Open Issues: 0
Type:symfony-bundle
Requires
- php: >=5.3.2
- ass/xmlsecurity: dev-master
- besimple/soap-bundle: dev-master
- besimple/soap-client: dev-master
- besimple/soap-common: dev-master
- knplabs/knp-menu-bundle: dev-master
Requires (Dev)
- symfony/framework-bundle: >=2.1,<2.2-dev
This package is not auto-updated.
Last update: 2025-03-29 18:36:38 UTC
README
Bundle de integracion SUR con aplicaciones Symfony
Pasos para configurar el SURSecurityBundle:
1- Actualizar el composer.json del proyecto con:
"ministeriodeindustria/sur-security-bundle" : "dev-master"
2- Agregarle: "minimum-stability": "dev",
3- En AppKernel agregar:
new Knp\Bundle\MenuBundle\KnpMenuBundle(), new SUR\SecurityBundle\SURSecurityBundle(),
4- En config.yml agregar:
- { resource: '@SURSecurityBundle/Resources/config/security.yml' }
.....
# SUR Configuration
sur_security:
login_url: "%login_url%"
ws_url: "%ws_url%"
sistema_id: "%sistemaId%"
5- En parameters.yml agregar:
login_url: 'http://localhost/sur/intranet/index.php'
ws_url: 'http://localhost/industriaws/web/app_dev.php/ws/SURAuthentication'
sistemaId: 9000
6- En routing.yml agregar:
sur_security:
resource: "@SURSecurityBundle/Controller/"
type: annotation
prefix: /
7- El layout de la aplicación debe extender:
{% extends "SURSecurityBundle::layout.html.twig" %}