phppro / sso
This package is abandoned and no longer maintained.
No replacement package was suggested.
There is no license information available for the latest version (1.0.0) of this package.
PHPPRO Sso Service
1.0.0
2015-12-08 20:34 UTC
Requires
- php: >=5.5
- symfony/framework-bundle: ~2.3|~3.0
- symfony/security-bundle: ~2.3|~3.0
Requires (Dev)
- phpunit/phpunit: ~4.0
This package is not auto-updated.
Last update: 2017-12-29 15:27:13 UTC
README
Installation
composer require phppro/sso
Enable the bundle inside your AppKernel.php
$bundles[] = new Phppro\Bundle\SsoBundle\PhpproSsoBundle();
Configure the bundle (in config.yml)
phppro_sso: token_repository: tokenRepository.serviceId application_repository: applicationRepository.serviceId
Server side
Add the route inside the routing.yml file
phppro_sso_server: resource: "@PhpproSsoBundle/Resources/config/routing.yml" prefix: sso
Client side
Configure the bundle (in config.yml)
phppro_sso: ... client: application_name: <application name> login_url: http://<sso server>/app_dev.php/sso/login authenticate_url: http://<sso server>/app_dev.php/sso/authenticate
Enable the security (in security.yml)
firewallName: simple_preauth: authenticator: phppro_sso.client.entry_point.pre_authenticator # extends the form_login configuration sso_form_login: success_handler: phppro_sso.client.success_handler
You should create 2 service
- a token repository that implement \Phppro\Bundle\SsoBundle\Model\TokenRepositoryInterface
- an application repository that implement \Phppro\Bundle\SsoBundle\Model\ApplicationRepositoryInterface