google-code-export / rubycas-client

Automatically exported from code.google.com/p/rubycas-client
1 stars 1 forks source link

Pass params in cas query string #21

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
How can i pass the lang param for example to cas login page?
ex : http://localhost:8080/cas/login?lang=blabla

i want that to be generic
thanks

Original issue reported on code.google.com by khel...@gmail.com on 25 Mar 2008 at 8:25

GoogleCodeExporter commented 9 years ago
You can pass all the parameters you want, but what do you want them to do?

Original comment by matt.zuk...@gmail.com on 25 Mar 2008 at 9:44

GoogleCodeExporter commented 9 years ago
how can i pass these params?
i'll figure out a way in cas to support localization in interfaces :)

Original comment by khel...@gmail.com on 25 Mar 2008 at 9:51

GoogleCodeExporter commented 9 years ago
In the controller your parmas are available in the @input variable. So
http://localhost:8080/cas/login?lang=blabla will make @input['lang'] = 'blabla'.

Note that we're already working on localization support. See:
http://code.google.com/p/rubycas-server/issues/detail?id=6

Also note that this is a CAS server issue. It doesn't have anything to do with 
the
client.

Original comment by matt.zuk...@gmail.com on 25 Mar 2008 at 11:52

GoogleCodeExporter commented 9 years ago
will in fact i think you didn't get me really , cause i want to pass the lang 
param
to cas, not in reverse as u mentioned :

>>In the controller your parmas are available in the @input variable. So
http://localhost:8080/cas/login?lang=blabla will make @input['lang'] = 'blabla'.

and yes i know it's cas issue to handle the localization , but how to send cas 
the
lang param :)
thanks

Original comment by khel...@gmail.com on 26 Mar 2008 at 7:34

GoogleCodeExporter commented 9 years ago
In the redirect_to_cas_for_authentication method in
casclient/frameworks/rails/filter.rb you could trying adding the parameter 
there to
the redirect_url (store the variable in the controller and read it from the
controller in there).

Original comment by matt.zuk...@gmail.com on 26 Mar 2008 at 3:56