You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@wicket.apache.org by Leonid Bogdanov <le...@mail.ru> on 2013/02/14 15:34:04 UTC

Forward request to an external filter

Hello!

  I'm trying to add OAuth authentication to a Wicket webapp and as a part of this I need to be able to do server-side forward of a request from Wicket to an external filter.
  So what is the best way to do this in Wicket? Do I need to throw some special exception with an URL to forward to or should do this more traditionally with RequestDispatcher.forward()?

Thank you.


Re: Forward request to an external filter

Posted by Leonid Bogdanov <le...@mail.ru>.
Hello!

    Any comments on this?

Thank you.


Thursday, 14 Feb 2013, 18:34 +04:00 from Leonid Bogdanov:
>
>Hello!
>
>  I'm trying to add OAuth authentication to a Wicket webapp and as a part of this I need to be able to do server-side forward of a request from Wicket to an external filter.
>  So what is the best way to do this in Wicket? Do I need to throw some special exception with an URL to forward to or should do this more traditionally with RequestDispatcher.forward()?
>
>Thank you.
>

Re: Forward request to an external filter

Posted by Martin Grigorov <mg...@apache.org>.
Hi,

Wicket doesn't provide an API for internal forwards. Use the Servlet API
for this.

Also check https://github.com/fernandezpablo85/scribe-java for OAuth. It is
very simple to use it.


On Thu, Feb 14, 2013 at 4:34 PM, Leonid Bogdanov <le...@mail.ru>wrote:

>
> Hello!
>
>   I'm trying to add OAuth authentication to a Wicket webapp and as a part
> of this I need to be able to do server-side forward of a request from
> Wicket to an external filter.
>   So what is the best way to do this in Wicket? Do I need to throw some
> special exception with an URL to forward to or should do this more
> traditionally with RequestDispatcher.forward()?
>
> Thank you.
>
>


-- 
Martin Grigorov
jWeekend
Training, Consulting, Development
http://jWeekend.com <http://jweekend.com/>

Re: Re[4]: Forward request to an external filter

Posted by Martin Grigorov <mg...@apache.org>.
Please subscribe to the RSS of http://wicketinaction.com/  so you are
notified when I'm ready :-)


On Mon, Feb 18, 2013 at 10:51 AM, Leonid Bogdanov
<le...@mail.ru>wrote:

>
> Hello, Martin!
>
>     I think such article would be helpful to many others, so if it's not
> too much trouble, please, write about it.
>
> Thank you.
>
>
> Monday, 18 Feb 2013, 10:25 +02:00 from Martin Grigorov <
> mgrigorov@apache.org>:
> >Hi Leonid,
> >
> >I have no experience with Apache Shiro.
> >I can blog about how to use Scribe directly in Wicket if this will help
> you.
> >
> >
> >On Mon, Feb 18, 2013 at 10:18 AM, Leonid Bogdanov
> >< leonid_bogdanov@mail.ru >wrote:
> >
> >>
> >> Hello, Martin!
> >>
> >>     Thank you for your response! Actually I already use Scribe lib, but
> >> indirectly - through Shiro OAuth plugin.
> >>
> >> Thank you.
> >>
> >>
> >> Monday, 18 Feb 2013, 10:06 +02:00 from Martin Grigorov <
> >>  mgrigorov@apache.org >:
> >> >Hi,
> >> >
> >> >Wicket doesn't provide an API for internal forwards. Use the Servlet
> API
> >> >for this.
> >> >
> >> >Also check  https://github.com/fernandezpablo85/scribe-java for OAuth.
> >> It is
> >> >very simple to use it.
> >> >
> >> >
> >> >On Thu, Feb 14, 2013 at 4:34 PM, Leonid Bogdanov <
> >>  leonid_bogdanov@mail.ru >wrote:
> >> >
> >> >>
> >> >> Hello!
> >> >>
> >> >>   I'm trying to add OAuth authentication to a Wicket webapp and as a
> >> part
> >> >> of this I need to be able to do server-side forward of a request from
> >> >> Wicket to an external filter.
> >> >>   So what is the best way to do this in Wicket? Do I need to throw
> some
> >> >> special exception with an URL to forward to or should do this more
> >> >> traditionally with RequestDispatcher.forward()?
> >> >>
> >> >> Thank you.
> >> >>
> >> >>
> >> >
> >> >
> >> >--
> >> >Martin Grigorov
> >> >jWeekend
> >> >Training, Consulting, Development
> >> > http://jWeekend.com <  http://jweekend.com/ >
> >> >
> >>
> >>
> >
> >
> >--
> >Martin Grigorov
> >jWeekend
> >Training, Consulting, Development
> >http://jWeekend.com < http://jweekend.com/ >
> >
>
>


-- 
Martin Grigorov
jWeekend
Training, Consulting, Development
http://jWeekend.com <http://jweekend.com/>

Re[4]: Forward request to an external filter

Posted by Leonid Bogdanov <le...@mail.ru>.
Hello, Martin!

    I think such article would be helpful to many others, so if it's not too much trouble, please, write about it.

Thank you.


Monday, 18 Feb 2013, 10:25 +02:00 from Martin Grigorov <mg...@apache.org>:
>Hi Leonid,
>
>I have no experience with Apache Shiro.
>I can blog about how to use Scribe directly in Wicket if this will help you.
>
>
>On Mon, Feb 18, 2013 at 10:18 AM, Leonid Bogdanov
>< leonid_bogdanov@mail.ru >wrote:
>
>>
>> Hello, Martin!
>>
>>     Thank you for your response! Actually I already use Scribe lib, but
>> indirectly - through Shiro OAuth plugin.
>>
>> Thank you.
>>
>>
>> Monday, 18 Feb 2013, 10:06 +02:00 from Martin Grigorov <
>>  mgrigorov@apache.org >:
>> >Hi,
>> >
>> >Wicket doesn't provide an API for internal forwards. Use the Servlet API
>> >for this.
>> >
>> >Also check  https://github.com/fernandezpablo85/scribe-java for OAuth.
>> It is
>> >very simple to use it.
>> >
>> >
>> >On Thu, Feb 14, 2013 at 4:34 PM, Leonid Bogdanov <
>>  leonid_bogdanov@mail.ru >wrote:
>> >
>> >>
>> >> Hello!
>> >>
>> >>   I'm trying to add OAuth authentication to a Wicket webapp and as a
>> part
>> >> of this I need to be able to do server-side forward of a request from
>> >> Wicket to an external filter.
>> >>   So what is the best way to do this in Wicket? Do I need to throw some
>> >> special exception with an URL to forward to or should do this more
>> >> traditionally with RequestDispatcher.forward()?
>> >>
>> >> Thank you.
>> >>
>> >>
>> >
>> >
>> >--
>> >Martin Grigorov
>> >jWeekend
>> >Training, Consulting, Development
>> > http://jWeekend.com <  http://jweekend.com/ >
>> >
>>
>>
>
>
>-- 
>Martin Grigorov
>jWeekend
>Training, Consulting, Development
>http://jWeekend.com < http://jweekend.com/ >
>


Re: Re[2]: Forward request to an external filter

Posted by Martin Grigorov <mg...@apache.org>.
Hi Leonid,

I have no experience with Apache Shiro.
I can blog about how to use Scribe directly in Wicket if this will help you.


On Mon, Feb 18, 2013 at 10:18 AM, Leonid Bogdanov
<le...@mail.ru>wrote:

>
> Hello, Martin!
>
>     Thank you for your response! Actually I already use Scribe lib, but
> indirectly - through Shiro OAuth plugin.
>
> Thank you.
>
>
> Monday, 18 Feb 2013, 10:06 +02:00 from Martin Grigorov <
> mgrigorov@apache.org>:
> >Hi,
> >
> >Wicket doesn't provide an API for internal forwards. Use the Servlet API
> >for this.
> >
> >Also check  https://github.com/fernandezpablo85/scribe-java for OAuth.
> It is
> >very simple to use it.
> >
> >
> >On Thu, Feb 14, 2013 at 4:34 PM, Leonid Bogdanov <
> leonid_bogdanov@mail.ru >wrote:
> >
> >>
> >> Hello!
> >>
> >>   I'm trying to add OAuth authentication to a Wicket webapp and as a
> part
> >> of this I need to be able to do server-side forward of a request from
> >> Wicket to an external filter.
> >>   So what is the best way to do this in Wicket? Do I need to throw some
> >> special exception with an URL to forward to or should do this more
> >> traditionally with RequestDispatcher.forward()?
> >>
> >> Thank you.
> >>
> >>
> >
> >
> >--
> >Martin Grigorov
> >jWeekend
> >Training, Consulting, Development
> >http://jWeekend.com < http://jweekend.com/ >
> >
>
>


-- 
Martin Grigorov
jWeekend
Training, Consulting, Development
http://jWeekend.com <http://jweekend.com/>

Re[2]: Forward request to an external filter

Posted by Leonid Bogdanov <le...@mail.ru>.
Hello, Martin!

    Thank you for your response! Actually I already use Scribe lib, but indirectly - through Shiro OAuth plugin.

Thank you.


Monday, 18 Feb 2013, 10:06 +02:00 from Martin Grigorov <mg...@apache.org>:
>Hi,
>
>Wicket doesn't provide an API for internal forwards. Use the Servlet API
>for this.
>
>Also check  https://github.com/fernandezpablo85/scribe-java for OAuth. It is
>very simple to use it.
>
>
>On Thu, Feb 14, 2013 at 4:34 PM, Leonid Bogdanov < leonid_bogdanov@mail.ru >wrote:
>
>>
>> Hello!
>>
>>   I'm trying to add OAuth authentication to a Wicket webapp and as a part
>> of this I need to be able to do server-side forward of a request from
>> Wicket to an external filter.
>>   So what is the best way to do this in Wicket? Do I need to throw some
>> special exception with an URL to forward to or should do this more
>> traditionally with RequestDispatcher.forward()?
>>
>> Thank you.
>>
>>
>
>
>-- 
>Martin Grigorov
>jWeekend
>Training, Consulting, Development
>http://jWeekend.com < http://jweekend.com/ >
>