Hi,
On 09 Jun 2014, at 21:54 pm, Nicholas Amon <
nichol...@gmail.com> wrote:
> Crap you are correct!!! I'm feeling very frustrated and annoyed with myself at the moment. When installing simplesamlphp, part of the instructions were to include the www directory in the webroot. While doing so I noticed the initSSO.php, metadata.php, and AssertionConsumerService.php classes in the saml2 and shib13 directories and integrated using those set of files as my starting point. After reading your responses, I just noticed that there is similar functionality in the modules/saml directory which what I should have been using.
No prob, that kind of things just happen :-)
You don’t have to use either the files in www/ or the modules. Both are intended for SimpleSAMLphp to accomplish specific things, but in your case you have to use the public API as stated in the documentation, which means basically using the SimpleSAML_Auth_Simple class.
> I was in the phase of creating the config UI and test SSO buttons on our product page and actually hadn't reached the step of actually kicking off the SSO when a user tries to access a protected resource and therefore hadn't thought much of the integration step in the documentation. Totally my fault. I will now switch over to using the proper set of classes.
>
> Btw, what is the difference between the two set of files, I assume one set is deprecated but I'm curious why (everything seems to work w/ it except what I mentioned earlier in my posts)?
Well, no easy answer to that. Some of the files in www/ are indeed deprecated, but not all of them. In general, files in www/ are part of the old interface/implementation, while those in the modules directory are new. Some files are deprecated now because there’s a replacement in a module for them, but not all of them have a new implementation in a module. Those deprecated will most probably go in 2.0.
> I'm also trying to harden the integration. Using the new method, i.e. modules.php, would I be able to remove all the remaining files in the www directory except that file? I don't want to use any of the UI features of simplesampl, just the metadata generation and the SSO features.
No, as I said, some of the files are still required. What you can do indeed is to set an administrator password (‘auth.adminpassword’ in config/config.php) and protect with that password the main pages in the web UI (‘admin.protectindexpage’ in config/config.php). We expect the web interface to be more configurable and a bit more detached to the main functionality in 2.0, but there’s still a long road ahead until we reach that point.
> Nice code btw!!
Thanks! I’ll make sure to forward your compliments to the main “perpetrators” of the code :-)