manticora / google-federated-login-bundle
This package is abandoned and no longer maintained.
No replacement package was suggested.
Google Federated Login
0.1
2013-11-30 12:47 UTC
Requires
- fp/openid-bundle: dev-master
This package is not auto-updated.
Last update: 2021-02-01 08:24:16 UTC
README
this bundle add a relay party Implementation of FpOpenIdBundle for Google App Federated login
Usage
...
Installation
Download Packages
Add the following lines in your composer.json
file:
{ "require": { "manticora/google-federated-login-bundle": "dev-master" } }
Now, run composer.phar to download the bundle:
$ php composer.phar install
Note: You can immediately start using it. The autoloading files have been generated by composer and already included to the app autoload file.
Step 2: Enable the bundle
Finally, enable the bundle in the kernel:
<?php // app/AppKernel.php public function registerBundles() { $bundles = array( // ... new Manticora\GoogleFederatedLoginBundle\ManticoraGoogleFederatedLoginBundle(), new Fp\OpenIdBundle\FpOpenIdBundle(), ); }
Step 3: Configure app/config/config.yml
manticora_google_federated_login: domain: example.com
Step4: Configure FpOpenId
Follow other instructions FpOpenIdBundle
Step5: Configure OpenId for your domain
Follow How to Setup OpenID with Google Apps
Step6: Add RelayParty in FpOpenId security.yml config
add relying_party:
security: ... firewalls: ... secured_area: pattern: ^/admin #example path fp_openid: ... relying_party: manticora_google_federated_login.relying_party
add required_attributes:
security: ... firewalls: ... secured_area: pattern: ^/admin #example path fp_openid: ... required_attributes: [ contact/email, namePerson/first, namePerson/last, namePerson ]
see example
security: ... firewalls: ... secured_area: pattern: ^/admin #example path fp_openid: create_user_if_not_exists: true # so createUserFromIdentity method will be called provider: openid_user_manager # cf below login_path: /admin/login_openid check_path: /admin/login_check_openid relying_party: manticora_google_federated_login.relying_party required_attributes: [ contact/email, namePerson/first, namePerson/last, namePerson ]
License
ManticoraGoogleFederatedLoginBundle is released under the MIT License. See the bundled LICENSE file for details.