Letractively / rubycas-server

Automatically exported from code.google.com/p/rubycas-server
GNU Lesser General Public License v2.1
0 stars 0 forks source link

No service param was given, so we will not redirect #85

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
I have configured config.example.yml so as to use Google as authenticator.
Its all working well with successfully authenticated by Google.
But the problem is that it doesn't redirect to Ruby CAS client page.
The message in my log file is as 
Successfully authenticated user 'shyamkkhadka@gmail.com' at 'localhost'. No
service param was given, so we will not redirect.

So what I need to give as service param.
I found that text field of ID 'service' has value="" i.e empty in login form.
Do I need to specify explicitly service here?
Please suggest me

Original issue reported on code.google.com by khadkash...@gmail.com on 1 Mar 2010 at 11:00

GoogleCodeExporter commented 8 years ago
Normally when a user tries to access some CAS-protected service (e.g.
http://app1.example.com) the CAS client installed at that service sees that the 
user
is not yet authenticated and forwards them over to your CAS server, 
automatically
attaching the service URL as a parameter (e.g.
https://cas.example.com/login?service=http%3A%2F%2Fapp1.example.com)

So in other words, normally you don't have to manually set a 'service' parameter
value. However, if your users are going directly to the CAS server page -- not
through a service -- then yeah, you'll have to manually attach a 'service' 
parameter
to have them redirected to wherever you want them to go after the login.

Note though that the general practice is to have users automatically sent to the
login page after accessing a service. You don't normally send your users 
directly to
the CAS page.

Original comment by matt.zuk...@gmail.com on 1 Mar 2010 at 7:32

GoogleCodeExporter commented 8 years ago
Thanks for reply.
I realized I was doing silly mistakes in my client application for login URL.
It should be like :
link_to("Login", CASClient::Frameworks::Rails::Filter.login_url(controller))

Original comment by shyamkkh...@gmail.com on 2 Mar 2010 at 4:17