Closed akoebbe closed 10 years ago
Hi ! You can't make CAS work on localhost (except if your cas server is on the same host or if your localhost has a domain name that can be reached by the CAS server). But anyway, the service URL should be the one you send your request with. And if you get any problem, this is unfortunately more a phpCAS library problem... I'm going on vacation tomorrow, so I won't be able to help you the next few days. So I encourage you to go and see the exemples of how to use phpCAS on their site. But I'll try to check my email on monday so if you're still stuck, try and post a new comment.
Xavier
Found the problem. It was my web server set up. It was reporting localhost for that domain. Just a simple config change. Sorry for the false alarm.
Let's say my local laravel dev environment is set up to http://abc.localhost/ and the cas server is cas.abc.com. When I get redirect to cas to login the service url is just localhost and not abc.localhost...
eg. the cas login url in the browser ends up being https://cas.abc.com/cas/login?service=http%3A%2F%2Flocalhost%2F
Where is it pulling the service url from?