XavRsl / Cas

CAS server SSO authentication in Laravel 4.x & 5.x
MIT License
77 stars 36 forks source link

Error in Sso construct #4

Closed newbro closed 10 years ago

newbro commented 10 years ago

First of all I appreciate your works on this package. I follow the instructions and install the package to my laravel starter site, but when I add the filter to the routes.php and attempt to access the cas protected page, it gives the following error:

Argument 2 passed to Xavrsl\Cas\Sso::__construct() must be an instance of Illuminate\Auth\AuthManager, none given, called in /app_data/co/ep_supplier/vendor/xavrsl/cas/src/Xavrsl/Cas/CasManager.php on line 40 and defined

Looking at the CasManager.php, line 40 gives the following:

$connection = new Sso($config);

Did i miss a step or there's something wrong with the codes?

XavRsl commented 10 years ago

Hi ! For the time being, you should use the release instead of the dev-master. require : "xavrsl/cas": "v1.0" in your composer.json. I'm in the process of updating the master branch and it could generate some bugs from time to time.

Xavier

2014-06-25 10:27 GMT+02:00 newbro notifications@github.com:

First of all I appreciate your works on this package. I follow the instructions and install the package to my laravel starter site, but when I add the filter to the routes.php and attempt to access the cas protected page, it gives the following error:

Argument 2 passed to Xavrsl\Cas\Sso::__construct() must be an instance of Illuminate\Auth\AuthManager, none given, called in /app_data/co/ep_supplier/vendor/xavrsl/cas/src/Xavrsl/Cas/CasManager.php on line 40 and defined

Looking at the CasManager.php, line 40 gives the following:

$connection = new Sso($config);

Did i miss a step or there's something wrong with the codes?

— Reply to this email directly or view it on GitHub https://github.com/XavRsl/Cas/issues/4.

Xavier

newbro commented 10 years ago

I see I'll give it a try tmr. Thanks for your quick reply!