Download presentation
Presentation is loading. Please wait.
Published byScott King Modified over 8 years ago
1
Advanced Alfresco Authentication from a Drupal Website Cristophe Pepe ECM Consultant @ Amplexor, Belgium
2
DEVCON 2012… Ian Norton was presenting “Alfresco.com – Farewell AVM, Hello Alfresco DM & Drupal”.
3
Connecting trough CMIS… Alfresco is CMIS compliant. “Drupal CMIS API” module can be used. Current version: 7.x-1.6
4
Drupal CMIS API module Problematic: authentication. Configuration accepts a single user only. $conf['cmis_repositories'] = array( 'default' => array( 'user' => 'cmis_user', 'password' => ’password', 'url' => 'http://localhost:8080/alfresco/s/cmis', ) );
5
CMIS API CMIS API module is useful when we want to show “public” Alfresco documents. But what if we want to display only documents an authenticated user has access to ?
6
CMIS external authentication Drupal module that allows authentication of an Alfresco user through a Drupal website. “/api/login” webscript Ticket
7
CMIS external authentication Drupal module that allows authentication of an Alfresco user through a Drupal website. “/api/login” webscript Ticket
8
CMIS external authentication CMIS External auth. Ticket Calls Alfresco with: User name: ROLE_TICKET Password: {Ticket} Overrides the “single user configuration”
9
CMIS external authentication CMIS External auth. Ticket Calls Alfresco with: User name: ROLE_TICKET Password: {Ticket} Overrides the “single user configuration”
10
CMIS ext. auth. - Configuration Drupal administration page
11
12 Drupal user login form Default Drupal login form is Overridden. An extra validation function is added: contains logic to get Alfresco ticket + Drupal user sync.
12
Drupal user synchronization When connecting for the first time with an Alfresco user… Drupal Alfresco … Drupal user is automatically created.
13
Drupal user synchronization When connecting for the first time with an Alfresco user… Drupal Alfresco … Drupal user is automatically created.
14
Login failure options Login Option 1Option 2 Login with Drupal user only ? No CMIS repo access Use default “single user” config From CMIS API module ? “Public” access only. Combine ?
15
Login failure options Login Option 1Option 2 Login with Drupal user only ? No CMIS repo access Use default “single user” config From CMIS API module ? “Public” access only. Combine ?
16
Demo Cristophe Pepe manager Drupal user contributor CMIS Consumer Default CMIS API module configuration 14
17
Demo 5 documents: “test 1” - “test 2”: public “test 3” - “test 4”: contributors “test 5”: managers
18
Demo Manager access
19
Demo Public access Contributor access
20
Alternatives CMIS API CMIS_headerswing sub-module Demo module demonstrating how to pass user authentication from Drupal to the CMIS repository, providing SSO, via header-based authentication such as Basic Auth or NTLM. SSO osCaddie “osCaddie Drupal Alfresco is an integrated solution providing seamless communication between Drupal and Alfresco. Contents are synced with Alfresco whenever there is an update to content in Drupal, Alfresco will be updated. New content is created on Alfresco as soon as it is created on Drupal.” Does it solve auth. problem ? … to be investigated…
21
Alternatives CMIS API CMIS_headerswing sub-module Demo module demonstrating how to pass user authentication from Drupal to the CMIS repository, providing SSO, via header-based authentication such as Basic Auth or NTLM. SSO osCaddie “osCaddie Drupal Alfresco is an integrated solution providing seamless communication between Drupal and Alfresco. Contents are synced with Alfresco whenever there is an update to content in Drupal, Alfresco will be updated. New content is created on Alfresco as soon as it is created on Drupal.” Does it solve auth. problem ? … to be investigated…
22
Resources CMIS External Authentication Sandbox on Drupal.org https://www.drupal.org/sandbox/cp4w/2338635 https://www.drupal.org/sandbox/cp4w/2338635 CMIS API https://www.drupal.org/projects/https://www.drupal.org/projects/cmis osCaddie http://www.appnovation.com/solutions/oscaddie http://www.appnovation.com/webinars/oscaddie
Similar presentations
© 2025 SlidePlayer.com. Inc.
All rights reserved.