Search Results :

×

PHP SAML 2.0 Connector Setup Guide | SAML SSO for PHP Applications

miniOrange PHP SAML 2.0 Connector acts as a SAML Service Provider which can be configured to establish the trust between the connector and a SAML capable Identity Provider to securely authenticate the users into your application. The connector uses the SAML protocol for exchanging authentication and authorization data with the Identity Provider.

To configure PHP SAML Single Sign-On (SSO) with your SAML Identity Provider as IDP and the miniOrange PHP SAML 2.0 Connector as SP.

  • Install miniOrange PHP SAML 2.0 Connector ( to get plugin Contact us ).
  • Setup the connector on the same domain where you have PHP application running.
  • Access SSO connector from your browser with URL https://<connector-path>/sso
  • Register into SSO connector by providing a valid email address and password.
  • After registration, log in to the dashboard using the credentials you provided during registration.
  • In Plugin Settings, use your Identity Provider details to configure the plugin.
php saml 2.0 authentication connector identity provider settings

  • You can configure the SP base url or leave this option as it is.
php saml 2.0 authentication connector service provider settings

  • You need to provide these SP Entity ID and ACS URL values while configuring your Identity Provider.
  • Click on the Submit button to save your settings.
  • You can test if the plugin is configured properly or not by clicking on the Test Configuration button.
php saml 2.0 authentication connector test configuration settings

  • You should see a Test Successful screen as shown below along with the user's attribute values.
php saml 2.0 authentication connector successful authentication

Once the SSO test was successful, you can provide an Application URL, to where the users will be redirected after logging in.

  • To do so, click on the How to Setup? menu in SSO connector.
  • Look for an option called Application URL and provide the url of your application(where you want the users to redirect after logging in).
Note and Contact Us - SSO between two WordPress sites

Note: The domain of the application URL and the domain where you have setup the miniOrange PHP SAML 2.0 Connector should be same.


  • On this Application Endpoint you need to read Session attributes set by SSO connector and use that to login user into your application.
if(session_status() === PHP_SESSION_NONE)
{
session_start();
}
$email = $_SESSION['email'];
$username = $_SESSION['username'];
// Use $email and $username variables to find user in your PHP application and start session for the user.

These Variables contain the mapped attribute values. After receiving these values using the above code, you can use the $email and $username variables in your application.

  • Now that the plugin is configured, you're ready to use it in your application.
  • Use the following URL as a link in your application from where you want to perform SSO:
    http://<your-domain>/sso/login.php
  • For Example, you can use it as:
    <a href="http://<your-domain>/sso/login.php">Log in</a>
  • Your users will be able to SSO in your application by clicking on the Log in link.


 Thank you for your response. We will get back to you soon.

Something went wrong. Please submit your query again

We'll Reach Out to You at the Earliest!



ADFS_sso ×
Hello there!

Need Help? We are right here!

support