zl4bv / CakePHP-simpleSAMLphp-Plugin

Adds support for SAML authentication to CakePHP 2.x.
12 stars 8 forks source link

SAML SSO in cakephp application #9

Open ajayjainwebner opened 8 years ago

ajayjainwebner commented 8 years ago

Hi, I want to integrate simpleSAMLphp in my cakephp applicatiob. For this I have read this link: https://github.com/zl4bv/CakePHP-simpleSAMLphp-Plugin, at this link following code is written in Readme file: Configure::write('Saml.SimpleSamlPath', '/path/to/simpleSAMLphp'); Which path I will give here: '/path/to/simpleSAMLphp'. Is this is the path of simpleSAMLphp application that is installed at separate location or this is the path of cakephp simpleSAMLphp plugin?

I do not want to make a separate simpleSAMLphp application instead this I want to put simpleSAMLphp code in my cakephp application, is this is possible?

My simple requirement is : I want to use simplesamlphp as a Library instead of application. Please suggest me steps to follow for this.

zl4bv commented 8 years ago

Hi @ajayjainwebner,

Which path I will give here: '/path/to/simpleSAMLphp'. Is this is the path of simpleSAMLphp application that is installed at separate location or this is the path of cakephp simpleSAMLphp plugin?

This is the path to your simpleSAMLphp installation, not the path to CakePHP-simpleSAMLphp-Plugin, or your CakePHP application.

I do not want to make a separate simpleSAMLphp application instead this I want to put simpleSAMLphp code in my cakephp application, is this is possible?

It does not sound like best practice to include a third-party application or library inside your application codebase but I'm sure it is possible.

My simple requirement is : I want to use simplesamlphp as a Library instead of application. Please suggest me steps to follow for this.

simpleSAMLphp acts as both an application and a library.

I suggest familiarising yourself with the simpleSAMLphp documentation: especially the steps 1-4 on the Service Provider QuickStart page. Step 5 will only work if you use simpleSAMLphp as an application, so since you're using it as a library you can skip this step. Step 6 (Integrating authentication with your own application) is what this plugin does for you.

The install instructions for the example included with this repo may also be useful.