How to install simpleSAMLphp framework with Zend framework 1

447 views
Skip to first unread message

Martyn Bissett

unread,
Sep 29, 2014, 5:26:23 AM9/29/14
to simple...@googlegroups.com
I am working on an application that was built in Zend framework 1. I want to install simpleSAMLphp as a service provider for it and trying to figure how best to do this.

I'm considering a couple of options:

Install it outside the application
(e.g. /var/www/myapp/simplesamlphp where my app's files are at /var/www/myapp/simplesamlphp). This is how it seems it's done in the installation tutorials. I guess this would work with some adjustments to the autoloading so it can pickup the SimpleSamlphp classes. I'm using composer to install dependencies so I can perhaps add the SimpleSAML folder to the class tree - not tried this yet. Or should I use the SimpleSAMLphp autoload file?

simplesamlphp-composer
I sees there is an option install with composer? So, if so, it will go within my application folder and files. However, I've tried this and not sure how to get composer to pick up the SimpleSAML classes. Anyone had much use of this method? I tried doing composer dump-autoload but it didn't add them. I guess I need to do more.

Can anyone give me some advice on how to use simpleSAMLphp with ZF1. Even just a point in the correct direction regarding where best to put files. We want to role this installation out to all our websites eventually so something that is easy to setup would be best I guess. I do like the composer approach but didn't have much luck with it. Previously the project used CAS with a phpCAS client - that was installed using composer which was quite convenient.

Any help would be much appreciated, thanks

Christian Gijtenbeek

unread,
Sep 29, 2014, 8:49:21 AM9/29/14
to simple...@googlegroups.com
Martyn,

I am not sure as to your exact requirements but when building our Conference tool CORE, I had to solve this exact issue as follows:

* extend the Zend_Auth_Adapter_Interface
* extend Zend_Auth_Result
* Set up an authentication service that uses the concrete implementations
* In a controller action (in my case userController/login action) load/instantiate the service
* Authenticate a user on the service

You can view a working copy of the code here:


The specific authentication pieces you are looking for are located in:


Let me know if you have any more questions,
Christian Gijtenbeek
    

--
You received this message because you are subscribed to the Google Groups "simpleSAMLphp" group.
To unsubscribe from this group and stop receiving emails from it, send an email to simplesamlph...@googlegroups.com.
To post to this group, send email to simple...@googlegroups.com.
Visit this group at http://groups.google.com/group/simplesamlphp.
For more options, visit https://groups.google.com/d/optout.



--
Christian Gijtenbeek
Sr. Software Engineer
TERENA Secretariat
Singel 468 D, 1017 AW Amsterdam
The Netherlands

Ian Chan

unread,
Sep 9, 2022, 8:45:12 PM9/9/22
to SimpleSAMLphp
Hi,

Is this example still available at another location? Or are there others out there? I'm also trying to extend the Zend_Auth_Adapter_Interface to work with simpleSAMLphp.

Thank you,
Ian

Dick Visser

unread,
Sep 10, 2022, 2:01:42 AM9/10/22
to simple...@googlegroups.com
Hi

That source code repository died a long time ago.
But I see we did create a new repo for it on Github:
https://github.com/GEANT/CORE

Hope this is still useful after 8 years :)

Dick
> --
> This is a mailing list for users of SimpleSAMLphp, not a support service. If you are willing to buy commercial support, please take a look here:
>
> https://simplesamlphp.org/support
>
> Before sending your question, make sure it is related to SimpleSAMLphp, and not your web server's configuration or any other third-party software. This mailing list cannot help with software that uses SimpleSAMLphp, only regarding SimpleSAMLphp itself.
>
> Make sure to read the documentation:
>
> https://simplesamlphp.org/docs/stable/
>
> If you have an issue with SimpleSAMLphp that you cannot resolve and reading the documentation doesn't help, you are more than welcome to ask here for help. Subscribe to the list and send an email with your question. However, you will be expected to comply with some minimum, common sense standards in your questions. Please read this carefully:
>
> http://catb.org/~esr/faqs/smart-questions.html
> ---
> You received this message because you are subscribed to the Google Groups "SimpleSAMLphp" group.
> To unsubscribe from this group and stop receiving emails from it, send an email to simplesamlph...@googlegroups.com.
> To view this discussion on the web visit https://groups.google.com/d/msgid/simplesamlphp/56736962-424e-449a-8696-7c7a5f05cdcdn%40googlegroups.com.
Reply all
Reply to author
Forward
0 new messages