Wallogit.com
2017 © Pedro Peláez
Bundle to login into symfony with your drupal username and password. requires on the drupal side the service 3.x module
Symfony bundle to login with your Drupal username and password. Requires the Service 3.x module within Drupal, (*1)
This bundle works together with the form_login secuirty configuration of Symfony, (*2)
After you have installed the bundle update your AppKernel with, (*3)
$bundles = array(
...
new CiviCoop\DrupalLoginBundle\CiviCoopDrupalLoginBundle(),
)
Set the drupal url in app/config/config.yml, (*4)
civicoop:
drupal:
login:
url: http://mydrupalsite.org/rest/user/login
Secure your site by adding the drupal key to app/config/security.yml, (*5)
security:
...
providers:
...
drupal:
id: drupal.security.authentication.userprovider
firewalls:
secured_area:
pattern: ^/secured
form_login:
check_path: acme_demo_login_check
login_path: acme_demo_login
always_use_default_target_path: true
default_target_path: /
logout:
path: acme_demo_logout
target: /
drupal: ~
This module requires the Drupal Services 3.x module installed and enabled. Also the user login path and JSON/rest should be configured on that module., (*6)