this bundle add a relay party Implementation of FpOpenIdBundle for Google App Federated login
...
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.
Finally, enable the bundle in the kernel:
<?php
// app/AppKernel.php
public function registerBundles()
{
$bundles = array(
// ...
new Manticora\GoogleFederatedLoginBundle\ManticoraGoogleFederatedLoginBundle(),
new Fp\OpenIdBundle\FpOpenIdBundle(),
);
}
manticora_google_federated_login:
domain: example.com
Follow other instructions FpOpenIdBundle
Follow How to Setup OpenID with Google Apps
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 ]
ManticoraGoogleFederatedLoginBundle is released under the MIT License. See the bundled LICENSE file for details.