Skip to content

Commit 5281635

Browse files
committed
Change config paths
1 parent e4a994b commit 5281635

File tree

5 files changed

+7
-7
lines changed

5 files changed

+7
-7
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ To install Saml2 as a Composer package to be used with Laravel 4, simply add thi
2020
)
2121
```
2222

23-
Then publish the config file with `php artisan config:publish kn4ppster/laravel-saml2`. This will add the file `app/config/packages/kn4ppster/laravel-saml2/saml_settings.php`. This config is handled almost directly by [one login](https://github.com/onelogin/php-saml) so you may get further references there, but will cover here what's really necessary.
23+
Then publish the config file with `php artisan config:publish kn4ppster/laravel4-saml2`. This will add the file `app/config/packages/kn4ppster/laravel4-saml2/saml_settings.php`. This config is handled almost directly by [one login](https://github.com/onelogin/php-saml) so you may get further references there, but will cover here what's really necessary.
2424

2525
### Configuration
2626

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"name": "kn4ppster/laravel4-saml2",
33
"description": "A Laravel 4.2 package for Saml2 integration as a SP (service provider) based on OneLogin toolkit, which is much lightweight than simplesamlphp",
44
"keywords": ["laravel","saml", "saml2", "onelogin"],
5-
"homepage": "https://github.com/Kn4ppster/laravel-saml2/tree/laravel-4.2",
5+
"homepage": "https://github.com/Kn4ppster/laravel4-saml2/",
66
"license": "MIT",
77
"authors": [
88
{

src/Kn4ppster/Saml2/Saml2ServiceProvider.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ public function boot()
3636
public function register()
3737
{
3838
$this->app['saml2auth'] = $this->app->share(function ($app) {
39-
$config = Config::get('saml2::saml_settings');
39+
$config = Config::get('laravel4-saml2::saml_settings');
4040

4141
$config['sp']['entityId'] = URL::route('saml_metadata');
4242

src/controllers/Saml2Controller.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ public function acs()
4444
return Redirect::to($redirectUrl);
4545
}else {
4646

47-
return Redirect::to(Config::get('saml2::settings.loginRoute')); //may be set a configurable default
47+
return Redirect::to(Config::get('laravel4-saml2::settings.loginRoute')); //may be set a configurable default
4848
}
4949
}
5050

@@ -55,12 +55,12 @@ public function acs()
5555
*/
5656
public function sls()
5757
{
58-
$errors = Saml2Auth::sls(Config::get('saml2::settings.retrieveParametersFromServer'));
58+
$errors = Saml2Auth::sls(Config::get('laravel4-saml2::settings.retrieveParametersFromServer'));
5959
if (!empty($errors)) {
6060
Log::error("Could not log out", $errors);
6161
throw new \Exception("Could not log out");
6262
}
63-
return Redirect::to(Config::get('saml2::settings.logoutRoute')); //may be set a configurable default
63+
return Redirect::to(Config::get('laravel4-saml2::settings.logoutRoute')); //may be set a configurable default
6464
}
6565

6666
/**

src/routes.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<?php
22

33

4-
Route::group(array('prefix' => Config::get('saml2::settings.routesPrefix')), function () {
4+
Route::group(array('prefix' => Config::get('laravel4-saml2::settings.routesPrefix')), function () {
55

66
Route::get('/logout', array(
77
'as' => 'saml_logout',

0 commit comments

Comments
 (0)