{"repo":"mi-lopez/laravel-sso","free":true,"listed":false,"github":"https://github.com/mi-lopez/laravel-sso","clone":"git clone https://github.com/mi-lopez/laravel-sso.git","description":"Single Sign-On (SSO) integration for Laravel. One central server, multiple broker apps, one shared session.","language":"PHP","stars":63,"topics":["authentication","laravel","laravel-11","laravel-package","php","single-sign-on","sso","laravel-broker"],"license":"MIT","category":"auth-billing-email","readme_excerpt":"Laravel SSO Single Sign-On (SSO) integration for Laravel. One central server authenticates users; multiple broker apps share that login session. Based on zefy/php-simple-sso. Version Compatibility Package Laravel PHP Branch --------- --------- -------- --------------------------------------------------------- 8.x 8.x 7.4+ 8.x 11.x 11.x 8.2+ 11.x Concepts - Server — the central authentication app. Stores credentials and issues sessions. - Broker — a downstream app that delegates login to the server. - Token — a per-broker, per-user value stored in a cookie that links the broker to a server session. How it works 1. A user visits a broker. The broker generates a random token and asks the server to attach it to the user's server session. 2. When the user submits credentials, the broker forwards them to the server. On success, the server marks the linked session as authenticated. 3. The broker (and any other broker) can now ask the server \"who is logged in?\" using its token, and the server returns the user — without re-prompting for credentials. Installation Publish the config: This creates config/laravel-sso.php . Set type to either server or broker depending on the role of the application. --- Server Setup 1. Mark the app as the server In config/laravel-sso.php : 2. Run the migrations The package ships with two migrations ( brokers and broker user ). Run them: 3. Enable sessions on the SSO API routes The server endpoints ( /api/sso/ ) need access to sessions. In bootstrap/app.ph","default_branch":null,"files":null,"tree":[],"storefront":"/r/mi-lopez","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/mi-lopez/laravel-sso/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}