XavRsl / Cas

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

Too many redirects problem #23

Closed wangyi717 closed 9 years ago

wangyi717 commented 9 years ago

Hi, I stuck in with the trouble of "ERR_TOO_MANY_REDIRECTS". When I type an url in Chrome, the browser show me this message. I don't know how to deal with it. I write "Cas::authenticate" in the constructor of the controller, is this right? Could you please give me some examples to show how to use the Cas correctly? THX and forgive my poor English.

XavRsl commented 9 years ago

Hello, You could put your Cas::authenticate() call in a filter called before your controller, or in a middleware if you're using Laravel 5. Anyway, your problem could also come from your CAS setup, having nothing to do with this plugin. What version of the plugin are you using ? What version of CAS server are you using ? Is your application allowed to use the CAS server ?

Xavier

wangyi717 commented 9 years ago

I've solved this problem. I lost "$" of "$query_string" in my nginx.conf, so phpCAS can't read the ticket in the URI. Anyway, thanks a lot.

XavRsl commented 9 years ago

Ok. That's the problem with CAS. It involves a lot more than just a plugin which makes it really complex.

See you Le 14 juil. 2015 06:41, "wangyi717" notifications@github.com a écrit :

Closed #23 https://github.com/XavRsl/Cas/issues/23.

— Reply to this email directly or view it on GitHub https://github.com/XavRsl/Cas/issues/23#event-355019891.