-
Add to composer.json
"require": { "arcanys/sso-auth-bundle": "dev-master" }, "repositories": [ { "type": "vcs", "url": "[email protected]:djaney/SSO-user-provider-bundle.git" } ]
-
Update Kernel
new Arcanys\SSOAuthBundle\ArcanysSSOAuthBundle(),
-
Add configurations
arcanys_sso_auth: user_provider: class: AppBundle\Entity\User sp: base_url: http://mywebsite.com/sp idp: entity_id: http://example.com/metadata.php single_signon_service: http://myidp.com/SSOService.php single_logout_service: http://myidp.com/SingleLogoutService.php cert: ~
-
Add Routes
sso_endpoint: resource: "@ArcanysSSOAuthBundle/Resources/config/routing.yml" prefix: /sp # service provider path logout: path: /logout
-
Add security configurations
security: ... providers: sso_provider: id: arcanys_sso_auth.user_provider ... firewalls: main: anonymous: ~ pattern: ^(?!/sp/) #exclude service provider path simple_preauth: authenticator: arcanys_sso_auth.sso_authenticator logout: path: /logout success_handler: arcanys_sso_auth.authentication_handler access_control: - { path: ^/sp, roles: IS_AUTHENTICATED_ANONYMOUSLY } # exclude service provider path - { path: ^/, roles: ROLE_USER } # require login on all pages
-
Notifications
You must be signed in to change notification settings - Fork 2
djaney/SSO-user-provider-bundle
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
About
Symfony2 user provider that allows you to connect to an SSO identity provider
Resources
Stars
Watchers
Forks
Packages 0
No packages published