studentaffairsuwm / shibboleth
Enable basic Shibboleth support for Laravel 5.x
Installs: 1 273
Dependents: 0
Suggesters: 0
Security: 0
Stars: 31
Watchers: 6
Forks: 29
Open Issues: 10
Requires
- php: >=5.4.0
- illuminate/support: 5.*
- mrclay/shibalike: 1.0.0
- dev-master
- 1.1.1
- 1.0.9
- 1.0.8
- 1.0.7
- 1.0.6
- 1.0.5
- 1.0.4
- 1.0.3
- 1.0.2
- 1.0.0
- 0.5.8
- 0.5.7
- 0.5.6
- 0.5.5
- 0.5.4
- 0.5.3
- 0.5.2
- 0.5.1
- 0.5
- 0.2
- 0.1
- dev-develop
- dev-hotfix/1.0.9
- dev-hotfix/1.0.8
- dev-hotfix/1.0.7
- dev-hotfix/1.0.6
- dev-hotfix/1.0.5
- dev-release/1.0.4
- dev-feature/jwt-auth-upgrade
- dev-hotfix/1.0.2
- dev-laravel4
This package is not auto-updated.
Last update: 2022-02-01 12:49:36 UTC
README
This package provides an easy way to implement Shibboleth Authentication for Laravel 5.
Features
- Compatibility with Laravel 5
- Includes User and Group model examples
- Ability to emulate an IdP (via https://github.com/mrclay/shibalike)
Pre-Requisites
In order to use this plugin, we assume you already have a pre-existing Shibboleth SP and Shibboleth IdP configured. This does not (and will not) go into explaining how to set that up.
Installation
Include the following in your composer.json
file and run composer update
(or composer install
if it's a new project).
{
"require": {
"studentaffairsuwm/shibboleth": "1.1.1"
}
}
Then, append the following line inside your /config/app.php
file within the Providers
array.
'StudentAffairsUwm\Shibboleth\ShibbolethServiceProvider'
You'll also want to add this to your /config/auth.php
file.
/*
|--------------------------------------------------------------------------
| Group Model
| --------------------------------------------------------------------------
|
| When using the "shibboleth" authentication driver, it requires that a
| group model is supported. Of course, it is often just the "Group" model
| but you may use whatever you like.
|
*/
'group_model' => 'App\Group',
Finally, we just need to publish to include some default models, the database migrations, and the configuration file in your project. We include migrations for a simple user and group table, it is up to you to expand upon those.
Run the following commands to publish and then migrate your database:
$ php artisan vendor:publish
$ php artisan migrate
Once the migrations have run successfully, change the driver to shibboleth
in your /config/auth.php
file.
'driver' => 'shibboleth'
Looking for Laravel 4?
We have stopped development on the Laravel 4 version of this plugin for now. We are welcoming pull requests, however! Feel free to use any tag below 1.0.0 for Laravel 4 compatible versions.