phppro / sso
PHPPRO Sso Service
Installs: 122
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 1
Forks: 0
Open Issues: 0
pkg:composer/phppro/sso
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