Laravel demo application showing implementation of SAML authentication as a Service Provider.
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
app
bootstrap
config First commit Mar 18, 2017
database First commit Mar 18, 2017
public
resources First commit Mar 18, 2017
routes Initial Commit Mar 18, 2017
storage
tests
.env.example First commit Mar 18, 2017
.gitattributes
.gitignore
artisan
composer.json
composer.lock
package.json
phpunit.xml
readme.md Initial Commit Mar 18, 2017
server.php First commit Mar 18, 2017
webpack.mix.js

readme.md

Laravel SAML SP Demo

Demo - https://laravel-saml-sp-demo.herokuapp.com

Overview

Laravel 5.4 application showing implementation of SAML authentication as a Service Provider.

This demo uses the aacotroneo/laravel-saml2 package and SSOCircle as Identity Provider.

Installation

Clone Project

git clone https://github.com/taiyeoguns/laravel-saml-sp-demo.git laravelsamlspdemo

Install Composer dependencies

cd laravelsamlspdemo
composer install

Maintain database details in .env file

cp .env.example .env

Migrate tables

php artisan migrate

Generate app key and start server

php artisan key:generate && php artisan serve

IdP Setup

  • Login to SSOCircle or create an account.
  • Click on Manage Metadata and select Add new Service Provider.
  • For FQDN, enter:
    http://localhost:8000
  • Select all Assertion attributes, FirstName, LastName, EmailAddress
  • In the Laravel application, browse to: http://localhost:8000/saml2/metadata and copy the xml
  • Back in SSOCircle metadata, paste the copied xml in Insert your metadata information
  • Click Submit to save metadata.

Test

  • Browse to http://localhost:8000
  • Click on Login link.
  • You will be forwarded to the SSOCircle. After successful authentication at the IdP, it will redirect to the Laravel application and user will be logged in.

Further Information