Search Results :

×

SAML Single Sign-On (SSO) For Laravel Using PingFederate As IDP


Laravel SAML Single Sign-On (SSO) plugin gives the ability to enable SAML Single Sign-On for your laravel applications. Using Single Sign-On you can use only one password to access your laravel application and services. Our plugin is compatible with all the SAML compliant Identity providers. Here we will go through a step-by-step guide to configure Single Sign-On (SSO) between Laravel and PingFederate considering PingFederate as IdP.

   

Pre-requisites : Download And Installation

  • Open a Command Prompt window and change the working directory to your Laravel app's main directory.
  • Enter the below command.
    composer require miniorange/saml-laravel-free
  • Laravel Single Sign On SSO enter commond
  • Note: If you are using Laravel 5.4 or below, you will need to add the following value to the 'providers' array in your app.php file which can be found in the project\config folder :provider\ssoServiceProvider::class (You can check your current Laravel version by using the command php artisan --version.)

  • Laravel Single Sign On SSO add following value
  • After successful installation of package, go to your Laravel app in the browser and enter https://<your-host>/mo_admin in the address bar.
  • The package will start setting up your database for you and then redirect you to the admin registration page.
  • Register or log in with your account by clicking the Register button to configure the plugin.
  • Laravel Single Sign On SSO plugin settings
  • After login, you will see the Service Provider Settings option, where you will get the service provider metadata. Keep the metadata handy as it will be required later to configure step 1.
  • Laravel Single Sign On SSO Service Provider Settings

Steps to configure PingFederate Single Sign-On (SSO) Login into Laravel

1. Configure PingFederate as Identity Provider

  • Login to your Ping Federate User Admin dashboard.
  • Click on the Identity Provider in the left navigation menu.
  • Under SP CONNECTION, click on Create New button.
  • Configure PingFederate as IDP - SAML Single Sign-On(SSO) for  Laravel - PingFederate SSO Login ping federate sso-1
  • Select the Browser SSO Profiles connection template on the Connection Type tab and click Next.
  • Configure PingFederate as IDP - SAML Single Sign-On(SSO) for  Laravel - PingFederate SSO Login ping federate sso-2
  • Select Browser SSO on the Connection Options tab and click Next.
  • Configure PingFederate as IDP - SAML Single Sign-On(SSO) for  Laravel - PingFederate SSO Login ping federate sso-3
  • Select File as the method for importing metadata and click Choose file to choose the miniOrange SSO plugin’s metadata on the Import Metadata tab. Click Next.
  • Configure PingFederate as IDP - SAML Single Sign-On(SSO) for  Laravel - PingFederate SSO Login ping federate sso-4
  • Review the information on the Metadata Summary tab and click Next.
  • In the General Info tab ensure that the Service Provider’s Entity ID, Connection Name, and Base URL fields pre-populate based on the metadata. Click Next.
  • Navigate to the Browser SSO tab and click on the Configure Browser SSO. You will be redirected to Browser SSO Setup wizard.
    • 1) Select the IdP-Initiated SSO and SP-Initiated SSO options on the SAML Profiles tab and click Next.
    • Configure PingFederate as IDP - SAML Single Sign-On(SSO) for  Laravel - PingFederate SSO Login ping federate sso-5
    • 2) Enter your desired assertion validity time from on the Assertion Lifetime tab and click Next. By default, it is configured 5 minutes for both.
    • 3) Navigate to the Assertion Creation and click on the Configure Assertion Creation. You will be redirected to the assertion creation setup wizard.
      • I. In the Identity Mapping tab select STANDARD and click Next.
      • II. Select a Subject Name Format for the SAML_SUBJECT on the Attribute Contract tab and click Next.
      • III. Click Map New Adapter Instance on the Authentication Source Mapping.
      • Configure PingFederate as IDP - SAML Single Sign-On(SSO) for  Laravel - PingFederate SSO Login ping federate sso-6
      • IV. Select an Adapter Instance and click Next. The adapter must include the user’s email address.
      • Configure PingFederate as IDP - SAML Single Sign-On(SSO) for  Laravel - PingFederate SSO Login ping federate sso-7
      • V. Select the Use only the adapter contract values in the SAML assertion option on the Mapping Method tab and click Next.
      • VI. Select your adapter instance as the Source and the email as the Value on the Attribute Contract Fulfilment tab and click Next.
      • Configure PingFederate as IDP - SAML Single Sign-On(SSO) for  Laravel - PingFederate SSO Login ping federate sso-8
      • VII. (Optional): Select any authorization conditions you would like on the Issuance Criteria tab and click Next.
      • VIII. Click Done on the Summary.
      • IX. Click Next on the Authentication Source Mapping tab.
      • X. Click Done on the Summary tab.
      • XI. Click Next on the Assertion Creation.
    • Navigate to the Protocol Settings tab of the Browser SSO wizard and click on the Configure Protocol settings.
      • 1) Select POST for Binding and specify the single sign-on endpoint URL in the Endpoint URL field on the Assertion Consumer Service URL Click Next.
      • Configure PingFederate as IDP - SAML Single Sign-On(SSO) for  Laravel - PingFederate SSO Login ping federate sso-9
      • 2) Select POST on the Allowable SAML Bindings tab and click Next.
      • 3) Select your desired signature policies for assertions on the Signature Policy tab and click Next.
      • Configure PingFederate as IDP - SAML Single Sign-On(SSO) for  Laravel - PingFederate SSO Login ping federate sso-10
      • 4) Select your desired encryption policy for assertions on the Encryption Policy tab and click Next.
      • 5) Click Done on the Protocol Settings Summary tab.
      • 6) Click Done on the Browser SSO Summary.
  • Navigate to the Credentials and click on the Configure Credentials. You will be redirected to the Credentials setup wizard.
    • 1) Select the Signing Certificate to use with the Single Sign-On service and select Include the certificate in the signature element in the Digital Signature Settings tab. Click Done.
    • Configure PingFederate as IDP - SAML Single Sign-On(SSO) for  Laravel - PingFederate SSO Login ping federate sso-11
    • 2) Click Done on the Summary.
    • 3) Click Next on the Credentials.
  • Select Active for the Connection Status on the Activation & Summary tab and click Save.
  • Now, navigate to the Ping Federate User Admin dashboardè Identity Provide.
  • Click Manage All under SP Connections.
  • Click Export Metadata for the desired service provider connection.
  • Click Export on the Export & Summary tab and click Done.
  • You have successfully configured PingFederate as SAML IdP (Identity Provider) for achieving PingFederate SSO login into your Laravel Site.

2. Configure Laravel SAML plugin as Service Provider

  • Go to the miniOrange Laravel SAML 2.0 SSO plugin and click on Choose File button next to the Upload Meatadata option.
  • Select the metadata file we downloaded from your IDP and click on Upload button.
  • Laravel Single Sign On SSO Identity Provider Settings
  • Click on Test Configuration button to test whether the SAML Configuration you've done is correct. On successful test configuration, you will get the different user attributes returned by your identity Provider in a test configuration table.
  • Laravel Single Sign On SSO Test Configuration Laravel Single Sign On SSO Test Result

3. SSO Options

  • Your users can initiate the Single Sign On flow by clicking on the Single Sign On button generated on your login page. If you do not have this page yet, run php artisan make:auth & php artisan migrate to generate the authentication module.

  • Laravel Single Sign On SSO Single Sign On button

In this Guide, you have successfully configured PingFederate SAML Single Sign-On (PingFederate SSO Login) choosing PingFederate as IdP and Laravel as SP using miniOrange plugin-SAML Single Sign On – SSO Login. This solution ensures that you are ready to roll out secure access to your Laravel site using PingFederate login credentials within minutes.

Additional Resources

Hello there!

Need Help? We are right here!

support
Contact miniOrange Support
success

Thanks for your inquiry.

If you dont hear from us within 24 hours, please feel free to send a follow up email to info@xecurify.com