2017 © Pedro Peláez
 

library cas

Add CAS server SSO authentication to laravel 4.x

image

rroslaniec/cas

Add CAS server SSO authentication to laravel 4.x

  • Tuesday, March 31, 2015
  • by rroslaniec
  • Repository
  • 1 Watchers
  • 0 Stars
  • 6 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 35 Forks
  • 0 Open issues
  • 11 Versions
  • 0 % Grown

The README.md

cas

CAS server SSO authentication in laravel 4.x, (*1)

Installation

Require this package in your composer.json and run composer update (or run composer require xavrsl/cas:dev-master directly):, (*2)

"xavrsl/cas": "dev-master"

After updating composer, add the ServiceProvider to the providers array in app/config/app.php, (*3)

'Xavrsl\Cas\CasServiceProvider',

As well as the Facade :, (*4)

'Cas' => 'Xavrsl\Cas\Facades\Cas',

You need to publish the conf so you will ffind it in app/config/packages/xavrsl/cas/, (*5)

$ php artisan config:publish xavrsl/cas

Configuration

Configuration should be pretty straightforward for anyone who's ever used the PHPCas client. However, I've added the possibility to easily turn your application into a CAS Proxy, a CAS Service or both. You only need to set the cas_proxy setting to true (if you need to proxy services) and set the cas_service to whatever proxy you want to allow (this is all explained in the config file)., (*6)

Usage

Authenticate against the CAS server, (*7)

Cas::authenticate();

Exemple of Cas authentication in a route filter :, (*8)

Route::group(array('https', 'before' => 'cas'), function()
{
  Route::controller('toolbar', 'ToolbarController');

  Route::controller('bibsearch', 'BibsearchController');
});

Route::controller('bibimages', 'BibimagesController');

Route::filter('cas', function()
{
  Cas::authenticate();
});

Then get the current user id this way :, (*9)

Cas::getCurrentUser();

The Versions

31/03 2015

dev-master

9999999-dev

Add CAS server SSO authentication to laravel 4.x

  Sources   Download

MIT

The Requires

 

by Xavier Roussel

laravel sso cas phpcas

31/03 2015

v1.1.5

1.1.5.0

Add CAS server SSO authentication to laravel 4.x

  Sources   Download

MIT

The Requires

 

by Xavier Roussel

laravel sso cas phpcas

31/03 2015

v1.1.4

1.1.4.0

Add CAS server SSO authentication to laravel 4.x

  Sources   Download

MIT

The Requires

 

by Xavier Roussel

laravel sso cas phpcas

03/03 2015

dev-develop

dev-develop

Add CAS server SSO authentication to Laravel 4 and 5

  Sources   Download

MIT

The Requires

 

by Xavier Roussel

laravel sso cas phpcas

17/02 2015

v1.2.0

1.2.0.0

Add CAS server SSO authentication to Laravel 4 and 5

  Sources   Download

MIT

The Requires

 

by Xavier Roussel

laravel sso cas phpcas

11/02 2015

v1.1.3

1.1.3.0

Add CAS server SSO authentication to laravel 4.x

  Sources   Download

MIT

The Requires

 

by Xavier Roussel

laravel sso cas phpcas

14/08 2014

v1.1.2

1.1.2.0

Add CAS server SSO authentication to laravel 4.x

  Sources   Download

MIT

The Requires

 

by Xavier Roussel

laravel sso cas phpcas

01/07 2014

v1.1.1

1.1.1.0

Add CAS server SSO authentication to laravel 4.x

  Sources   Download

MIT

The Requires

 

by Xavier Roussel

laravel sso cas phpcas

01/07 2014

v1.1

1.1.0.0

Add CAS server SSO authentication to laravel 4.x

  Sources   Download

MIT

The Requires

 

by Xavier Roussel

laravel sso cas phpcas

25/06 2014

dev-change/ioc

dev-change/ioc

Add CAS server SSO authentication to laravel 4.x

  Sources   Download

MIT

The Requires

 

by Xavier Roussel

laravel sso cas phpcas

12/06 2014

v1.0

1.0.0.0

Add CAS server SSO authentication to laravel 4.x

  Sources   Download

MIT

The Requires

 

by Xavier Roussel

laravel sso cas phpcas