SimpleSamlphp installation on Drupal (Running on nginx (Posgres db))

Not applicable

Hi, (@rajeshmishra)

Currently I am working on SSO integration via SimpleSAMLphp (OPDK).

I followed the steps on this url

After instalIing SimpleSAMLphp library, I got a error (403 forbidden) when trying to access the

http://<$hostname>/simplesaml/.

Please look at the Steps below:

(Developer portal installed on nginx with posgres as DB)

1. Downloaded SimpleSAMLphp library, extracted it to /opt/apigee/apigee-drupal-7.xx/private.

2. Created a symlink from opt/apigee/apigee-drupal-7.xx/

 ln -s /private/SimpleSAMLphp/www ./simplesaml 

3.Replaced some variables in

opt/apigee/apigee-drupal7.xx/private/SimpleSAMLphp/config/config.php

'baseurlpath' => 'http://<$host>:8079/simplesaml/'
 'auth.adminpassword' => 'xxx'
 'database.dsn' => 'pgsql:host=xxxx;dbname=xxx',
  'database.username' => 'xxx',
   'database.password' => 'xx',
  'tempdir' => '/tmp/simplesaml'		

4. I created an alias in /opt/apigee/data/apigee-lb/conf.d/ apigee-drupal-devportal-nginx.conf.

(added the below code to apigee-drupal-devportal-nginx.conf)

location ^~ /simplesaml {
    alias /opt/apigee/apigee-drupal/private/simplesamlphp/www;
    location ~ ^(?<prefix>/simplesaml)(?<phpfile>.+?\.php)(?<pathinfo>/.*)?$ {
          include /opt/nginx/conf/fastcgi_params;
      fastcgi_param HTTP_PROXY "";
      fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
      fastcgi_param PATH_INFO $fastcgi_path_info;
      fastcgi_intercept_errors on;
      fastcgi_pass 127.xxxxx;
    }
  }


4. I verified permissions on the directories too (FYI).

5. On developer portal UI (http://<hostname>:8079/admin/reports/status), it says that "SimpleSAMLAuth requires SimpleSAMLphp library" even though I Installed it.

5414-capture.png

Hoping some help to resolve this issue.

Thanks for your time and patience.

0 1 787
1 REPLY 1

Did you configure the simplesamphp_auth module and give it the path to the library?