Skip to content

Commit

Permalink
Add Laravel 5 installation notes
Browse files Browse the repository at this point in the history
  • Loading branch information
XavRsl committed Mar 3, 2015
1 parent ebc8631 commit 9328edd
Showing 1 changed file with 24 additions and 10 deletions.
34 changes: 24 additions & 10 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,30 +1,44 @@
cas
CAS
===

CAS server SSO authentication in laravel 4.x
CAS server SSO authentication in Laravel 4.x & 5.x

## Installation

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

"xavrsl/cas": "dev-master"
For Laravel 4 use v1.1.* :

After updating composer, add the ServiceProvider to the providers array in app/config/app.php
"xavrsl/cas": "1.1.*"

'Xavrsl\Cas\CasServiceProvider',
For Laravel 5 use v1.2.* :

As well as the Facade :
"xavrsl/cas": "1.2.*"

After updating composer, add the ServiceProvider to the providers array in app/config/app.php
```php
'Xavrsl\Cas\CasServiceProvider',
```
As well as the Facade :
```php
'Cas' => 'Xavrsl\Cas\Facades\Cas',
```
Then publish the package's config using one of those methods :

You need to publish the conf so you will ffind it in app/config/packages/xavrsl/cas/

For Laravel 4 :
```
$ php artisan config:publish xavrsl/cas
```

For Laravel 5 :
```
$ php artisan vendor:publish
```

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).
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).

Usage
==
Expand Down

0 comments on commit 9328edd

Please sign in to comment.