Carlos, I am actually a bit surprised that CAS /login accepts POST, but when I re-read the protocol, I didn't see that GET was required, which I had previously assumed.
When you POST to the CAS /login, is does the `action` of your form contain the service parameter, or the is it included in your form? If the latter, I am assuming CAS is assuming these parameters to be request parameters rather than part of a POST payload. You could try updating your form's action to include the parameters. I would guess that would work even though you are hitting /login with a POST. Thanks, Carl ----- Original Message ----- From: "Carlos Olivera" <carlosroliv...@gmail.com> To: jasig-cas-u...@googlegroups.com Cc: cas-user@lists.jasig.org, cas-user@lists.jasig.org, cas-user@lists.jasig.org, waldb...@lafayette.edu Sent: Monday, February 2, 2015 3:10:52 PM Subject: Re: [cas-user] Cas client gateway mode No, I don't get to see the login page because I'm using "gateway = true" in the client configuration. I'm saying that it all works fine when I submit my form with GET method, because the parameters travel in the URL, when I try to use POST, I lost all parameters after the redirection, somehow it doesn't preserve post parameters. Maybe that's the way it is supposed to work, but if that is the case, I need to know how to submit with POST method without losing the form data. El lunes, 2 de febrero de 2015, 17:54:19 (UTC-2), Waldbieser, Carl escribió: > > Carlos, > > Are you saying that when you hit the login page with something like this: > > > https://cas.example.org/cas/login?service=https%3A%2F%2Fservice.example.net%2Flogin%3Fmyparam%3Dextra > > > If you view the source on the form, the hidden "service" input does not > have the encoded "myparam=extra" part of the URL (i.e. the query)? > > Thanks, > Carl > > ----- Original Message ----- > From: "Carlos Olivera" <carlosr...@gmail.com <javascript:>> > To: jasig-c...@googlegroups.com <javascript:> > Cc: cas-...@lists.jasig.org <javascript:>, cas-...@lists.jasig.org > <javascript:>, wald...@lafayette.edu <javascript:> > Sent: Monday, February 2, 2015 2:34:38 PM > Subject: Re: [cas-user] Cas client gateway mode > > No, it doesn't have the extra parameters, if I change the form to submit > data by GET method, then it works OK, but when I do it by POST, extra > parameters are discarded. > > El lunes, 2 de febrero de 2015, 16:24:40 (UTC-2), Waldbieser, Carl > escribió: > > > > Carlos, > > > > When the user's browser is redirected to CAS for authentication, does > the > > `service` parameter already have the extra parameters embedded and > properly > > encoded in it? > > > > I.e., can you use something like [developer tools] -> [network] in > Chrome > > and show us what the HTTP request parameters were, and then show the > > `Location` from the HTTP response? > > > > Thanks, > > Carl Waldbieser > > ITS System Programmer > > Lafayette College > > > > ----- Original Message ----- > > From: "Carlos Olivera" <carlosr...@gmail.com <javascript:>> > > To: cas-...@lists.jasig.org <javascript:> > > Sent: Monday, February 2, 2015 1:14:23 PM > > Subject: [cas-user] Cas client gateway mode > > > > Hi everyone, maybe I'm wrong about this but I want you to tell me if > what > > is happening to me, it's the normal operation of gateway mode. > > > > My site has a public and a private section, in the public section I'm > > running an authentication filter in gateway mode. I think that in order > to > > get the ticket information, the CAS client (java client 3.3.2) redirects > to > > CAS Server and when it comes back follows the filter chain depending if > one > > ticket was found or not. My problems is that I'm losing my post > parameters > > in that redirection, when it comes back struts2 filter has all > parameters > > in null. Is this a common problem or I'm doing something wrong? > > > > Thanks in advance. > > -- > > You are currently subscribed to cas-...@lists.jasig.org <javascript:> > as: > > wald...@lafayette.edu <javascript:> > > To unsubscribe, change settings or access archives, see > > http://www.ja-sig.org/wiki/display/JSG/cas-user > > > > -- > > You are currently subscribed to cas-...@lists.jasig.org <javascript:> > as: > > jasig-cas-user...@googlegroups.com <javascript:> > > To unsubscribe, change settings or access archives, see > > http://www.ja-sig.org/wiki/display/JSG/cas-user > > > > -- > You are currently subscribed to cas-...@lists.jasig.org <javascript:> as: > jasig-cas-user...@googlegroups.com <javascript:> > To unsubscribe, change settings or access archives, see > http://www.ja-sig.org/wiki/display/JSG/cas-user > > -- You are currently subscribed to cas-user@lists.jasig.org as: arch...@mail-archive.com To unsubscribe, change settings or access archives, see http://www.ja-sig.org/wiki/display/JSG/cas-user