You can use OneLogin’s open-source SAML toolkit for PHP to enable single sign-on (SSO) for your app via any identity provider that offers SAML authentication. Use this document to learn how to set up the SSO connection between your app and OneLogin, specifically. We’ll use the demo1 app (php-saml-master/demo1) delivered in the toolkit to demonstrate how to perform the setup tasks. The demo1 app is a simple app that demonstrates the SSO and single logout (SLO) flow enabled by the SAML toolkit. For important information about prerequisites and installing and developing an app with the SAML Toolkit for PHP, see OneLogin’s SAML PHP Toolkit.
Note that the downloadable toolkit also includes documentation of the OneLogin SAML Toolkit PHP library. See /php-saml-master/docs/Saml2/index.html.
Task 1: Prepare demo1 files
- Download the [SAML Toolkit for PHP](https://github.com/onelogin/php-saml/archive/master.zip).
- Copy the entire `php-saml-master` folder into a location where its contents can be processed as PHP by your web server.
- Rename `settings_example.php` located in `php-saml-master/demo1` to `settings.php`.
Have a Question?
Found a problem or a bug? Submit a support ticket.
Looking for walkthroughs or how-to guides? Check out our Knowledge Base.
Have a product idea or request? Share it in our Ideas Portal.