author | durandn |
Tue, 13 Sep 2016 17:06:44 +0200 | |
changeset 199 | fe88e9c5dd60 |
parent 8 | 5a0cbbe0922a |
permissions | -rw-r--r-- |
0 | 1 |
<?php namespace TestCAS\Providers; |
2 |
||
3 |
use Illuminate\Support\ServiceProvider; |
|
8
5a0cbbe0922a
CAS Authentication (normal and proxy) + local Homestead vm
durandn
parents:
0
diff
changeset
|
4 |
use Cas; |
5a0cbbe0922a
CAS Authentication (normal and proxy) + local Homestead vm
durandn
parents:
0
diff
changeset
|
5 |
use phpCAS; |
0 | 6 |
|
7 |
class AppServiceProvider extends ServiceProvider |
|
8 |
{ |
|
9 |
/** |
|
10 |
* Bootstrap any application services. |
|
11 |
* |
|
12 |
* @return void |
|
13 |
*/ |
|
14 |
public function boot() |
|
15 |
{ |
|
8
5a0cbbe0922a
CAS Authentication (normal and proxy) + local Homestead vm
durandn
parents:
0
diff
changeset
|
16 |
Cas::connection(); |
5a0cbbe0922a
CAS Authentication (normal and proxy) + local Homestead vm
durandn
parents:
0
diff
changeset
|
17 |
phpCAS::setExtraCurlOption(CURLOPT_SSL_VERIFYHOST, 0); |
5a0cbbe0922a
CAS Authentication (normal and proxy) + local Homestead vm
durandn
parents:
0
diff
changeset
|
18 |
phpCAS::setFixedCallbackURL("https://homestead.app/pgtcallback"); |
5a0cbbe0922a
CAS Authentication (normal and proxy) + local Homestead vm
durandn
parents:
0
diff
changeset
|
19 |
phpCAS::setPGTStorageFile(env("TICKET_STORAGE_PATH")); |
0 | 20 |
} |
21 |
||
22 |
/** |
|
23 |
* Register any application services. |
|
24 |
* |
|
25 |
* @return void |
|
26 |
*/ |
|
27 |
public function register() |
|
28 |
{ |
|
8
5a0cbbe0922a
CAS Authentication (normal and proxy) + local Homestead vm
durandn
parents:
0
diff
changeset
|
29 |
|
0 | 30 |
} |
31 |
} |