backdrop-contrib / simplesamlphp_auth

Support SAML for authentication of users. The module will auto-provision user accounts and dynamically assign roles in Backdrop CMS if you want it to.
https://backdropcms.org/project/simplesamlphp_auth
GNU General Public License v2.0
2 stars 3 forks source link

Support for SimpleSAMLphp 2.x? #36

Open MultcoJeremy opened 10 months ago

MultcoJeremy commented 10 months ago

With the release of SimpleSAMLphp 2.x, the 1.x branch will hit EOL at the end of 2023. Will this backdrop compatiable module be upgrade to work with SimpleSAMLphp 2.x?

laryn commented 10 months ago

@MultcoJeremy Yes, we’ll need to. Have you done any testing with this module and 2.x yet?

MultcoJeremy commented 10 months ago

We have D7 site that uses simplesamlphp_auth and just evaluating possible path forwards.

FYI, the watchdog log error we are running into with D7 + SimpleSAMLphp_auth using SimpleSAMLphp 2.0.6 is...

Error: Class 'SimpleSAML_Configuration' not found in _simplesaml_auth_autoload() (line 150 of /app/docroot/sites/all/modules/contrib/simplesamlphp_auth/simplesamlphp_auth.module).

Actually we get a WSOD when trying SSP 2.0.6, it's only after running drush dis simplesamlphp_auth that you can login to D7 as user 1.

MultcoJeremy commented 10 months ago

What I'm guessing is going on is with SimpleSAMLphp (SSP) 2.x, the paths have changed, including you have to login as admin to even see what version of SSP is running. Thus SimpleSAMLphp_auth is getting a null/invalid value for the version number and that somehow results in WSOD.

laryn commented 10 months ago

@MultcoJeremy Got it -- if you have any questions as you evaluate Backdrop, feel free to ping me. The Zulip chat is a good spot to get feedback. I think you'll like Backdrop. https://backdrop.zulipchat.com/

As far as your particular error, it seems likely that the 2.x branch removes some deprecated functionality which is causing that error. In fact, it sounds very similar to this deprecation notice that I fixed here in May: https://github.com/backdrop-contrib/simplesamlphp_auth/issues/19

MultcoJeremy commented 10 months ago

19 backported to the D7 simplesamlphp_auth module did the trick for us.

laryn commented 10 months ago

@MultcoJeremy That's good news! Thanks for reporting back.