You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@wicket.apache.org by Melinda Dweer <me...@gmail.com> on 2010/10/08 11:44:40 UTC

page over HTTP with sign in panel over HTTPs

Hi,

I has the following use case: I have some public pages (should be served
over HTTP)  containing a sign in "panel" which must be submitted over HTTPs.
I have though of doing this as follows:

-use an iframe to host the sign in "panel": actually it would be a page
served over HTTPs to the iframe.
-once the user signs in serve a page to the iframe that contains JavaScript
to get parent page to be redirected to the private area (served over HTTPs).

I do not tried the above but I assume it might work. My question is if there
is a cleaner/cleverer way to do this in wicket?

Thanks in advance,

Melinda

Re: page over HTTP with sign in panel over HTTPs

Posted by Melinda Dweer <me...@gmail.com>.
I will give it a try. Thanks!

Melinda

On Fri, Oct 8, 2010 at 5:51 PM, Igor Vaynberg <ig...@gmail.com>wrote:

> you can try tweaking the form so that its action is https, so
>
> class httpsform extens form {
>  oncomponenttag(tag) {
>     super.oncomponenttag(tag);
>     string action=tag.get("action");
>     action=requestutils.toabsoluteurl(action);
>     action="https"+action.substring(4);
>     tag.put("action", action);
>  }}
>
> -igor
>
> On Fri, Oct 8, 2010 at 2:44 AM, Melinda Dweer <me...@gmail.com>
> wrote:
> > Hi,
> >
> > I has the following use case: I have some public pages (should be served
> > over HTTP)  containing a sign in "panel" which must be submitted over
> HTTPs.
> > I have though of doing this as follows:
> >
> > -use an iframe to host the sign in "panel": actually it would be a page
> > served over HTTPs to the iframe.
> > -once the user signs in serve a page to the iframe that contains
> JavaScript
> > to get parent page to be redirected to the private area (served over
> HTTPs).
> >
> > I do not tried the above but I assume it might work. My question is if
> there
> > is a cleaner/cleverer way to do this in wicket?
> >
> > Thanks in advance,
> >
> > Melinda
> >
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
> For additional commands, e-mail: users-help@wicket.apache.org
>
>

Re: page over HTTP with sign in panel over HTTPs

Posted by Igor Vaynberg <ig...@gmail.com>.
you can try tweaking the form so that its action is https, so

class httpsform extens form {
  oncomponenttag(tag) {
     super.oncomponenttag(tag);
     string action=tag.get("action");
     action=requestutils.toabsoluteurl(action);
     action="https"+action.substring(4);
     tag.put("action", action);
  }}

-igor

On Fri, Oct 8, 2010 at 2:44 AM, Melinda Dweer <me...@gmail.com> wrote:
> Hi,
>
> I has the following use case: I have some public pages (should be served
> over HTTP)  containing a sign in "panel" which must be submitted over HTTPs.
> I have though of doing this as follows:
>
> -use an iframe to host the sign in "panel": actually it would be a page
> served over HTTPs to the iframe.
> -once the user signs in serve a page to the iframe that contains JavaScript
> to get parent page to be redirected to the private area (served over HTTPs).
>
> I do not tried the above but I assume it might work. My question is if there
> is a cleaner/cleverer way to do this in wicket?
>
> Thanks in advance,
>
> Melinda
>

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org


Re: page over HTTP with sign in panel over HTTPs

Posted by Melinda Dweer <me...@gmail.com>.
Martin,

Thanks for your answer! Yes, I know about that class: my questions was more
how to have a form submitted over HTTPs on a page served over HTTP.

Regards,

Ernesto

On Fri, Oct 8, 2010 at 5:34 PM, Martin Grigorov <mg...@apache.org>wrote:

> See org.apache.wicket.protocol.https.HttpsRequestCycleProcessor
>
> On Fri, Oct 8, 2010 at 11:44 AM, Melinda Dweer <melinda.dweer@gmail.com
> >wrote:
>
> > Hi,
> >
> > I has the following use case: I have some public pages (should be served
> > over HTTP)  containing a sign in "panel" which must be submitted over
> > HTTPs.
> > I have though of doing this as follows:
> >
> > -use an iframe to host the sign in "panel": actually it would be a page
> > served over HTTPs to the iframe.
> > -once the user signs in serve a page to the iframe that contains
> JavaScript
> > to get parent page to be redirected to the private area (served over
> > HTTPs).
> >
> > I do not tried the above but I assume it might work. My question is if
> > there
> > is a cleaner/cleverer way to do this in wicket?
> >
> > Thanks in advance,
> >
> > Melinda
> >
>

Re: page over HTTP with sign in panel over HTTPs

Posted by Martin Grigorov <mg...@apache.org>.
See org.apache.wicket.protocol.https.HttpsRequestCycleProcessor

On Fri, Oct 8, 2010 at 11:44 AM, Melinda Dweer <me...@gmail.com>wrote:

> Hi,
>
> I has the following use case: I have some public pages (should be served
> over HTTP)  containing a sign in "panel" which must be submitted over
> HTTPs.
> I have though of doing this as follows:
>
> -use an iframe to host the sign in "panel": actually it would be a page
> served over HTTPs to the iframe.
> -once the user signs in serve a page to the iframe that contains JavaScript
> to get parent page to be redirected to the private area (served over
> HTTPs).
>
> I do not tried the above but I assume it might work. My question is if
> there
> is a cleaner/cleverer way to do this in wicket?
>
> Thanks in advance,
>
> Melinda
>