simplesaml auth extension for 3.1.x ?

Looking for an Extension? Have an Extension request? Post your request here for help. (Note: This forum is community supported; while there is an Extensions Development Team, said team does not dedicate itself to handling requests in this forum)
Ideas Centre
Post Reply
bujam1
Registered User
Posts: 2
Joined: Sun Jun 26, 2016 11:49 am

simplesaml auth extension for 3.1.x ?

Post by bujam1 »

Hello everyone,

I'm new to the forum and phpBB. I have been searching for a working simplesaml authentication extension for phpBB 3.1.x.

Although there are some old extensions (MODs) that claim to work for 3.0.x versions (https://github.com/anelis/phpbb-saml https://github.com/strandbygaard/phpbb-saml2 and https://github.com/pitbulk/phpbb-onelogin), now with the different management of extensions for 3.1.x I was wondering if anyone has managed to make phpBB work with saml (using any of the above extensions or even by creating a new one) and would like to share the know-how :)

Thanks in advance for your time,
Theodoros
bujam1
Registered User
Posts: 2
Joined: Sun Jun 26, 2016 11:49 am

Re: simplesaml auth extension for 3.1.x ?

Post by bujam1 »

Since I got no replies from the forum of anyone having managed to port/rewrite a simplesaml authentication extension for phpBB 3.1.x, I spent some time reading the simplesamlphp and phpBB3 API (also trying to figure out what is working and what not from the -partially deprecated- examples in Area51) and managed to make this code https://github.com/strandbygaard/phpbb-saml2 work for phpBB3.1.x!

Apart from the necessary reordering of directories and code for the creation of the authentication extension, I made some additions to the code and also managed to make it support custom profiles fields (lastname, firstname, etc provided that they are already created in phpBB and returned by the Idp).

The code is VERY rough since I had very little time to spend on it, but if anyone is really interested, I might be able to find some time to wipe out things that are specific to my case (also write a proper composer.json) and post a .zip file here (or create a gist/repo) for the community to use and enhance.

Kind regards,
Theodoros Theodoropoulos
StarKnight
Registered User
Posts: 7
Joined: Sun Nov 16, 2003 7:24 pm
Location: StarKingdom

Re: simplesaml auth extension for 3.1.x ?

Post by StarKnight »

I'm trying to use SAML authentication in PHP 3.1 (or possibly 3.2) too.
Did you published your porting on GitHub or somewhere?

Thanks.
-+- StarKnight -+-
lakshmi.rajkumar
Registered User
Posts: 1
Joined: Sat Jan 28, 2017 3:50 pm

Re: simplesaml auth extension for 3.1.x ?

Post by lakshmi.rajkumar »

Hi Theodoros,

I was looking for SimpleSAML Auth extension for phpBB latest version. As you have said that you worked out, can you please share the latest code ? It will be really helpful for me

Thanks,
Lakshmi Rajkumar
noud41
Registered User
Posts: 19
Joined: Wed Jul 18, 2018 3:24 pm

Re: simplesaml auth extension for 3.1.x ?

Post by noud41 »

hi all,

i did also update this extension to phpBB 3.2
and i can confirm it does work.
you can find it at https://github.com/noud/phpbb-saml2

greetings,
Noud
noud41
Registered User
Posts: 19
Joined: Wed Jul 18, 2018 3:24 pm

Re: simplesaml auth extension for 3.1.x ?

Post by noud41 »

i did add the plugin to the Customisation Database.
it is at: https://www.phpbb.com/customise/db/exte ... pbb_saml2/

greetings,
Noud
User avatar
kasimi
Former Team Member
Posts: 4900
Joined: Sat Sep 10, 2011 7:12 pm
Location: Germany
Contact:

Re: simplesaml auth extension for 3.1.x ?

Post by kasimi »

Noud, right now your contribution is visible only to you and the extension validators and testers. It can be accessed by anyone once it has at least one approved revision. :)
noud41
Registered User
Posts: 19
Joined: Wed Jul 18, 2018 3:24 pm

Re: simplesaml auth extension for 3.1.x ?

Post by noud41 »

kasimi,

thank you informing me.
I will (try to) fix the validation error and warnings.
And will resubmit the extension when done
and then will post the correct visible link in the Customisation Database.

in the mean time before the validation error and warnings are fixed
the extension can still be fetched from https://github.com/noud/phpbb-saml2

greetings,
Noud
Post Reply

Return to “Extension Requests”