2017 © Pedro Peláez
 

library drupal-login-bundle

Bundle to login into symfony with your drupal username and password. requires on the drupal side the service 3.x module

image

civicoop/drupal-login-bundle

Bundle to login into symfony with your drupal username and password. requires on the drupal side the service 3.x module

  • Monday, July 29, 2013
  • by jaapjansma
  • Repository
  • 1 Watchers
  • 0 Stars
  • 19 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 1 Versions
  • 0 % Grown

The README.md

DrupalLoginBundle

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)

Configuration

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: ~

Requirements on 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)

The Versions

29/07 2013

dev-master

9999999-dev

Bundle to login into symfony with your drupal username and password. requires on the drupal side the service 3.x module

  Sources   Download

The Requires

  • php >=5.3.0
  • ext-curl *

 

by Jaap Jansma