2017 © Pedro Peláez
 

library laravel-shibboleth

Enable basic Shibboleth support for Laravel 5.x

image

uabookstores/laravel-shibboleth

Enable basic Shibboleth support for Laravel 5.x

  • Tuesday, May 15, 2018
  • by uabookstores
  • Repository
  • 1 Watchers
  • 0 Stars
  • 115 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 22 Forks
  • 0 Open issues
  • 39 Versions
  • 58 % Grown

The README.md

Laravel Shibboleth Service Provider

This package provides Shibboleth authentication for Laravel., (*1)

For development, it can emulate an IdP (via [mrclay/shibalike][13])., (*2)

[![Build Status][12]][11] Code Climate Code Coverage, (*3)

Installation

Use composer to require the latest release into your project:, (*4)

composer require uabookstores/laravel-shibboleth

If you're running Laravel >= 5.5, then you can skip this step, otherwise you will need to manually register the service provider in your config/app.php file within the Providers array., (*5)

StudentAffairsUwm\Shibboleth\ShibbolethServiceProvider::class,

If you you would like to use the emulated IdP via shibalike, then you will need to manually register it on any version - this is not automatically loaded even in Laravel 5.5., (*6)

StudentAffairsUwm\Shibboleth\ShibalikeServiceProvider::class,

Note that the password is the same as the username for shibalike., (*7)

Publish the default configuration file:, (*8)

php artisan vendor:publish --provider="StudentAffairsUwm\Shibboleth\ShibbolethServiceProvider"

Optionally, you can also publish the views for the shibalike emulated IdP login:, (*9)

php artisan vendor:publish --provider="StudentAffairsUwm\Shibboleth\ShibalikeServiceProvider"

University of Arizona Users:, (*10)

To also logout with the IdP, set the the following in config/shibboleth.php, (*11)

'idp_logout' => '/Shibboleth.sso/Logout?return=https%3A%2F%2Fshibboleth.arizona.edu%2Fcgi-bin%2Flogout.pl',
  

Change the driver to shibboleth in your config/auth.php file., (*12)

'providers' => [
    'users' => [
        'driver' => 'shibboleth',
        'model'  => App\User::class,
    ],
],

Now users may login via Shibboleth by going to https://example.com/shibboleth-login and logout using https://example.com/shibboleth-logout so you can provide a custom link or redirect based on email address in the login form., (*13)

@if (Auth::guest())
    <a href="/shibboleth-login">Login</a>
@else
    <a href="/shibboleth-logout">
        Logout {{ Auth::user()->name }}
    </a>
@endif

You may configure server variable mappings in config/shibboleth.php such as the user's first name, last name, entitlements, etc. You can take a look at them by reading what's been populated into the $_SERVER variable after authentication., (*14)

<?php print_r($_SERVER);

Mapped values will be synced to the user table upon successful authentication., (*15)

Authorization

You can check for an entitlement string of the current user statically:, (*16)

$entitlement = 'urn:mace:uark.edu:ADGroups:Computing Services:Something';

if (Entitlement::has($entitlement)) {
    // authorize something
}

Now you can draft [policies and gates][16] around these entitlements., (*17)

Local Users

This was designed to work side-by-side with the native authentication system for projects where you want to have both Shibboleth and local users. If you would like to allow local registration as well as authenticate Shibboleth users, then use laravel's built-in auth system., (*18)

php artisan make:auth

JWTAuth Tokens

If you're taking advantage of token authentication with tymon/jwt-auth then set this variable in your .env, (*19)

JWTAUTH=true

The Versions

15/05 2018

dev-master

9999999-dev

Enable basic Shibboleth support for Laravel 5.x

  Sources   Download

The Requires

 

The Development Requires

by Jeff Puckett
by Michael Schuett
by Christopher Maio
by Taylor Donald Harvey Smith
by Brandon Williams

15/05 2018

3.0.3

3.0.3.0

Enable basic Shibboleth support for Laravel 5.x

  Sources   Download

The Requires

 

The Development Requires

by Jeff Puckett
by Michael Schuett
by Christopher Maio
by Taylor Donald Harvey Smith
by Brandon Williams

13/02 2018

3.0.2

3.0.2.0

Enable basic Shibboleth support for Laravel 5.x

  Sources   Download

The Requires

 

The Development Requires

by Jeff Puckett
by Michael Schuett
by Christopher Maio
by Taylor Donald Harvey Smith
by Brandon Williams

08/12 2017

3.0.1

3.0.1.0

Enable basic Shibboleth support for Laravel 5.x

  Sources   Download

The Requires

 

The Development Requires

by Jeff Puckett
by Michael Schuett
by Christopher Maio
by Taylor Donald Harvey Smith
by Brandon Williams

30/11 2017

dev-dev

dev-dev

Enable basic Shibboleth support for Laravel 5.x

  Sources   Download

The Requires

 

The Development Requires

by Jeff Puckett
by Michael Schuett
by Christopher Maio
by Taylor Donald Harvey Smith

30/11 2017

dev-revert-symfony-http-foundation

dev-revert-symfony-http-foundation

Enable basic Shibboleth support for Laravel 5.x

  Sources   Download

The Requires

 

The Development Requires

by Jeff Puckett
by Michael Schuett
by Christopher Maio
by Taylor Donald Harvey Smith

15/11 2017

3.0.0

3.0.0.0

Enable basic Shibboleth support for Laravel 5.x

  Sources   Download

The Requires

 

The Development Requires

by Jeff Puckett
by Michael Schuett
by Christopher Maio
by Taylor Donald Harvey Smith

05/10 2017

2.2.6

2.2.6.0

Enable basic Shibboleth support for Laravel 5.x

  Sources   Download

The Requires

 

The Development Requires

by Jeff Puckett
by Michael Schuett
by Christopher Maio
by Taylor Donald Harvey Smith

05/10 2017

2.2.5

2.2.5.0

Enable basic Shibboleth support for Laravel 5.x

  Sources   Download

The Requires

 

The Development Requires

by Jeff Puckett
by Michael Schuett
by Christopher Maio
by Taylor Donald Harvey Smith

03/10 2017

2.2.4

2.2.4.0

Enable basic Shibboleth support for Laravel 5.x

  Sources   Download

The Requires

 

The Development Requires

by Jeff Puckett
by Michael Schuett
by Christopher Maio
by Taylor Donald Harvey Smith

28/08 2017

2.2.3

2.2.3.0

Enable basic Shibboleth support for Laravel 5.x

  Sources   Download

The Requires

 

The Development Requires

by Jeff Puckett
by Michael Schuett
by Christopher Maio
by Taylor Donald Harvey Smith

20/07 2017

2.2.2

2.2.2.0

Enable basic Shibboleth support for Laravel 5.x

  Sources   Download

The Requires

 

The Development Requires

by Jeff Puckett
by Michael Schuett
by Christopher Maio
by Taylor Donald Harvey Smith

30/06 2017

2.2.1

2.2.1.0

Enable basic Shibboleth support for Laravel 5.x

  Sources   Download

The Requires

 

The Development Requires

by Jeff Puckett
by Michael Schuett
by Christopher Maio
by Taylor Donald Harvey Smith

19/06 2017

2.2.0

2.2.0.0

Enable basic Shibboleth support for Laravel 5.x

  Sources   Download

The Requires

 

The Development Requires

by Jeff Puckett
by Michael Schuett
by Christopher Maio
by Taylor Donald Harvey Smith

15/06 2017

2.1.0

2.1.0.0

Enable basic Shibboleth support for Laravel 5.x

  Sources   Download

The Requires

 

The Development Requires

by Jeff Puckett
by Michael Schuett
by Christopher Maio
by Taylor Donald Harvey Smith

06/06 2017

2.0.2

2.0.2.0

Enable basic Shibboleth support for Laravel 5.x

  Sources   Download

The Requires

 

The Development Requires

by Jeff Puckett
by Michael Schuett
by Christopher Maio
by Taylor Donald Harvey Smith

06/06 2017

2.0.1

2.0.1.0

Enable basic Shibboleth support for Laravel 5.x

  Sources   Download

The Requires

 

The Development Requires

by Jeff Puckett
by Michael Schuett
by Christopher Maio
by Taylor Donald Harvey Smith

06/06 2017

2.0.0

2.0.0.0

Enable basic Shibboleth support for Laravel 5.x

  Sources   Download

The Requires

 

The Development Requires

by Jeff Puckett
by Michael Schuett
by Christopher Maio
by Taylor Donald Harvey Smith

02/09 2016

1.1.1

1.1.1.0

Enable basic Shibboleth support for Laravel 5.x

  Sources   Download

The Requires

 

by Michael Schuett
by Christopher Maio
by Taylor Donald Harvey Smith

10/05 2016

1.0.9

1.0.9.0

Enable basic Shibboleth support for Laravel 5.x

  Sources   Download

The Requires

 

by Michael Schuett
by Christopher Maio
by Taylor Donald Harvey Smith

29/01 2016

1.0.8

1.0.8.0

Enable basic Shibboleth support for Laravel 5.x

  Sources   Download

The Requires

 

by Michael Schuett
by Christopher Maio
by Taylor Donald Harvey Smith

29/01 2016

1.0.7

1.0.7.0

Enable basic Shibboleth support for Laravel 5.x

  Sources   Download

The Requires

 

by Michael Schuett
by Christopher Maio
by Taylor Donald Harvey Smith

12/01 2016

1.0.6

1.0.6.0

Enable basic Shibboleth support for Laravel 5.

  Sources   Download

The Requires

 

by Michael Schuett
by Christopher Maio
by Taylor Donald Harvey Smith

12/01 2016

1.0.5

1.0.5.0

Enable basic Shibboleth support for Laravel 5.

  Sources   Download

The Requires

 

by Michael Schuett
by Christopher Maio
by Taylor Donald Harvey Smith

12/01 2016

1.0.4

1.0.4.0

Enable basic Shibboleth support for Laravel 5.

  Sources   Download

The Requires

 

by Michael Schuett
by Christopher Maio
by Taylor Donald Harvey Smith

21/07 2015

1.0.3

1.0.3.0

Enable basic Shibboleth support for Laravel 5.

  Sources   Download

The Requires

 

by Michael Schuett
by Christopher Maio

18/06 2015

1.0.2

1.0.2.0

Enable basic Shibboleth support for Laravel 5.

  Sources   Download

The Requires

 

by Michael Schuett
by Christopher Maio

09/04 2015

0.5.8

0.5.8.0

Enable basic Shibboleth support for Laravel.

  Sources   Download

The Requires

 

by Michael Schuett
by Christopher Maio

09/04 2015

0.5.7

0.5.7.0

Enable basic Shibboleth support for Laravel.

  Sources   Download

The Requires

 

by Michael Schuett
by Christopher Maio

10/03 2015

1.0.0

1.0.0.0

Enable basic Shibboleth support for Laravel 5.

  Sources   Download

The Requires

 

by Michael Schuett
by Christopher Maio

28/01 2015

0.5.6

0.5.6.0

Enable basic Shibboleth support for Laravel.

  Sources   Download

The Requires

 

by Michael Schuett
by Christopher Maio

14/08 2014

0.5.5

0.5.5.0

Enable basic Shibboleth support for Laravel.

  Sources   Download

The Requires

 

by Michael Schuett
by Christopher Maio

01/07 2014

0.5.4

0.5.4.0

Enable basic Shibboleth support for Laravel.

  Sources   Download

The Requires

  • php >=5.3.0

 

by Michael Schuett
by Christopher Maio

30/06 2014

0.5.3

0.5.3.0

Enable basic Shibboleth support for Laravel.

  Sources   Download

The Requires

  • php >=5.3.0

 

by Michael Schuett
by Christopher Maio

17/06 2014

0.5.2

0.5.2.0

Enable basic Shibboleth support for Laravel.

  Sources   Download

The Requires

  • php >=5.3.0

 

by Michael Schuett
by Christopher Maio

03/06 2014

0.5.1

0.5.1.0

Enable basic Shibboleth support for Laravel.

  Sources   Download

The Requires

  • php >=5.3.0

 

by Michael Schuett
by Christopher Maio

20/05 2014

0.5

0.5.0.0

Enable basic Shibboleth support for Laravel.

  Sources   Download

The Requires

 

by Michael Schuett
by Christopher Maio

16/04 2014

0.2

0.2.0.0

Enable basic Shibboleth support for Laravel.

  Sources   Download

The Requires

 

by Michael Schuett
by Christopher Maio

25/03 2014

0.1

0.1.0.0

Enable basic Shibboleth support for Laravel.

  Sources   Download

The Requires

 

by Michael Schuett
by Christopher Maio