I’m wondering if anyone can help me with this problem. Basically i need to use SimpleSAML to enable SSO with one of our systems for one of our Yii2 based portals.
I have SimpleSAML set up and working ok, however the problem comes when trying to use it with Yii2. The SimpleSAML documentation states i should be doing the following to use it from my framework:
We start off with loading a file which registers the simpleSAMLphp classes with the autoloader. require_once('../../lib/_autoload.php'); We select our authentication source: $as = new SimpleSAML_Auth_Simple('default-sp'); We then require authentication: $as->requireAuth();
I assume that the problem is with the Yii autoloader clashing in some way, as i’ve read mention of this exact issue on old Yii being solved by unregistering the yii autoloader before using SimpleSAML, the registering it again.
This doesn’t seem a nice way of doing it, and in any case doesn’t seem to work with Yii2.
I’d appreciate any help or pointers on this!