Re: IP Authentication

2018-04-11 Thread Martin Grigorov
On Wed, Apr 11, 2018 at 7:53 PM, Lon Varscsak wrote: > Perfect, this is what I was looking for. So if I wanted to hijack the > whole response (for other purposes), I would do the same thing, but with a > custom request handler? > Yes! > > On Tue, Apr 10, 2018 at 11:24 PM, Martin Grigorov > w

Re: IP Authentication

2018-04-11 Thread Lon Varscsak
Perfect, this is what I was looking for. So if I wanted to hijack the whole response (for other purposes), I would do the same thing, but with a custom request handler? On Tue, Apr 10, 2018 at 11:24 PM, Martin Grigorov wrote: > Hi, > > On Tue, Apr 10, 2018 at 11:49 PM, Lon Varscsak > wrote: >

AW: IP Authentication

2018-04-11 Thread Thomas Rohde
whitelist. In the example only requests from localhost are accepted. Regards, Thomas -Ursprüngliche Nachricht- Von: Lon Varscsak [mailto:lon.varsc...@gmail.com] Gesendet: Dienstag, 10. April 2018 22:49 An: users@wicket.apache.org Betreff: IP Authentication I have a need to build some apps

Re: IP Authentication

2018-04-10 Thread Martin Grigorov
On Wed, Apr 11, 2018 at 9:26 AM, Maxim Solodovnik wrote: > Martin, > > Will > throw new AbortWithHttpErrorCodeException(410, "Unauthorized"); > also do the job? > Probably. But I remember a ticket saying that throwing (WicketRuntime?!)Exception doesn't work well in IRequestCycleListener#onBeginR

Re: IP Authentication

2018-04-10 Thread Maxim Solodovnik
Martin, Will throw new AbortWithHttpErrorCodeException(410, "Unauthorized"); also do the job? On Wed, Apr 11, 2018 at 1:24 PM, Martin Grigorov wrote: > Hi, > > On Tue, Apr 10, 2018 at 11:49 PM, Lon Varscsak > wrote: > > > I have a need to build some apps (or mount points) to check if the sourc

Re: IP Authentication

2018-04-10 Thread Martin Grigorov
Hi, On Tue, Apr 10, 2018 at 11:49 PM, Lon Varscsak wrote: > I have a need to build some apps (or mount points) to check if the source > is coming from an internal IP and if not, present the user with an > "unauthorized" request. I know how to check client IP and what not, but > I'm not sure how

IP Authentication

2018-04-10 Thread Lon Varscsak
I have a need to build some apps (or mount points) to check if the source is coming from an internal IP and if not, present the user with an "unauthorized" request. I know how to check client IP and what not, but I'm not sure how to generate programmatically a simple WebResponse that is just some