Laravel Saml2

screenshot of Laravel Saml2

A Laravel 5 package for Saml2 integration as a SP (service provider) based on the simple OneLogin toolkit

Overview

The Laravel SAML2 library provides a streamlined way to integrate SAML2 as a Service Provider (SP) in Laravel applications. With an aim to prioritize simplicity, this package is built on the OneLogin toolkit, boasting a lightweight design that circumvents the need for separate routes or session storage. Although the project is no longer actively maintained, it still presents a practical solution for Laravel users who require SSO (Single Sign-On) functionalities.

The architecture focuses on minimal intervention, making it easier for developers to handle user authentication without encumbering existing Laravel structures. As such, you only have to configure the Identity Providers (IDPs) and let the library handle the rest, which can be particularly appealing for those looking for an efficient SAML2 integration.

Features

  • Lightweight Integration: Built on the OneLogin toolkit, this library is considerably lighter than alternatives like simplesamlphp, making installation and configuration a breeze.

  • No Separate Routes: The package operates without requiring additional routes or session storage, simplifying setup and maintenance for developers.

  • Composer Installation: Easily integrate with your Laravel project using Composer, or manually add it to your composer.json for more control over installation.

  • Automatic Service Provider Registration: For Laravel versions 5.5 and up, the service provider registers automatically, reducing manual configuration steps.

  • Custom Configuration Files: Users can create specific configuration files for each IDP that align with their authentication requirements, enhancing flexibility.

  • Default Values for Easy Setup: If URLs are not specified in the IDP configuration, the library provides sensible defaults, allowing developers to get up and running quickly.

  • Support for Single Logout (SLO): Handles SLO requests alongside user authentication, ensuring a seamless experience for end-users.

  • Minimalistic Approach: The library focuses on performing the specific task of user authentication and SLO while minimizing friction with existing Laravel user management systems.