2017 © Pedro Peláez
 

library laravel-saml

saml auth provider for laravel 5.*

image

knight-swarm/laravel-saml

saml auth provider for laravel 5.*

  • Wednesday, April 6, 2016
  • by hernandev
  • Repository
  • 7 Watchers
  • 19 Stars
  • 1,187 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 15 Forks
  • 4 Open issues
  • 1 Versions
  • 3 % Grown

The README.md

laravel-saml

Open Source SAML Auth Support for Laravel using simplesamlphp., (*1)

Requeriments

  • Laravel install, of course
  • Working SimpleSAMLphp instance acting like an Service Provider

Instalation

First, we need this package available on Laravel, update your composer.json dependencies with:, (*2)

"knight-swarm/laravel-saml": "dev-master"

and run composer update, (*3)

After we have this package, we need to load it on Laravel, for this, add this, (*4)

'KnightSwarm\LaravelSaml\LaravelSamlServiceProvider'

service provider on the 'providers' array (app/config/app.php), (*5)

and the, (*6)

'Saml'      => 'KnightSwarm\LaravelSaml\Facades\Saml'

facade on the 'aliases' array., (*7)

Now, we need to configure it, run, (*8)

 php artisan config:publish knight-swarm/laravel-saml

the above command will create a saml.php file inside app/config/packages/knight-swarm/laravel-saml, edit this file and be sure to insert:, (*9)

Your SimpleSamlPHP SP install path, (*10)

 'sp_path' => app_path()."/../../sp",

Your default SP id, (*11)

 'sp_name' => 'saml.dev',

And afther logout, where users, should go,, (*12)

 'logout_target' => 'http://saml.dev'

This Package will trigger /login and /logout, (*13)

@TODO

We need to implement custom attributes bindings on model and database, for PoC it gets only uid and name attribuites and will fail it they does not exists, (*14)

The Versions

06/04 2016

dev-master

9999999-dev

saml auth provider for laravel 5.*

  Sources   Download

MIT

The Requires

 

by KnightSwarm Handelsbolag
by Phil Preston
by Jeremy French
by Tom Mount

laravel saml sso laravel-saml