proper use of drupalauth4ssp

66 views
Skip to first unread message

Julio Castillo

unread,
Apr 9, 2013, 4:26:55 PM4/9/13
to drupa...@googlegroups.com
I have a setup using Drupal 6 and SimpleSAMLphp
 
I have configured the following:
- Drupal 6.0 (will be my ID provider)
- SimpleSAMLphp library
- drupalauth (both as a SimpleSAML module and drupal module)
 
Prior to installing drupalauth as a Drupal module I was able to do the following:
- login into Drupal
- initiate login request to new remote App and have it be redirected to SimpleSAML login page
- successfully login into SimpleSAML and redirect to my new remote App
 
I have a couple of questions:
 
Question 1. What is the role of the drupalauth Drupal module (drupalauth4ssp) ?
I later added it (drupalauth4ssp) and I can see and administer from Drupal. I configured it, but it didn't change the behavior.
 
Question 2.
What I'm really looking for is to "share" the Drupal session and SimpleSAML session so that a user that is already logged into Drupal doesn't have to login again into SimpleSAML. Is there a way to piggy back on the Drupal session? Or is there a way to start a SimpleSAML session every time a Drupal session is created?
 
Thanks
 
 
Message has been deleted

steve_...@sil.org

unread,
Apr 15, 2013, 12:14:39 PM4/15/13
to drupa...@googlegroups.com
Yes, that is what drupalauth4ssp does. However, you need to change the
authsource type from drupalauth:UserPass to drupalauth:External, then
you need to specify the following configuration parameters:

// the URL of the Drupal logout page
'drupal_logout_url' => 'https://www.example.com/drupal7/user/logout',

// the URL of the Drupal login page
'drupal_login_url' => 'https://www.example.com/drupal7/user',

This will cause SimpleSAMLphp to send the user to the Drupal login or
logout pages (depending upon what they're doing) instead of seeing the
SimpleSAMLphp login page.

steve_...@sil.org

unread,
Apr 15, 2013, 12:27:27 PM4/15/13
to drupa...@googlegroups.com
I've updated the INSTALLATION wiki page to reflect the
drupalauth:External and drupal4ssp approach.
http://code.google.com/p/drupalauth/wiki/INSTALLATION

On 04/09/2013 04:26 PM, Julio Castillo wrote:

Omo Oaiya

unread,
Sep 16, 2013, 4:45:16 PM9/16/13
to drupa...@googlegroups.com
Installation wiki page is quite clear and I have similar setup using the drupalauth:External and drupal4ssp approach with Drupal 6 but getting whitescreen when I test the authentication source

SimpleSAML_Error_Exception: Error 2 - require_once(./includes/cache.inc): failed to open stream: No such file or directory in SSP logs and similar in Apache logs 

PHP Fatal error:  require_once(): Failed opening required './includes/cache.inc' (include_path='.:/usr/share/php:/usr/local/ZendGdata-1.12.3/library') in /home/drupal/includes/bootstrap.inc on line 1133, referer: https://example.com/simplesamlphp/module.php/core/authenticate.php

Any ideas what I am doing wrong?

Thanks
Reply all
Reply to author
Forward
0 new messages