throw new org.apache.wicket.request.http.flow.AbortWithHttpErrorCodeException(401, "Not authorized")
On Mon, Aug 19, 2013 at 9:32 PM, robianmcd <[email protected]> wrote: > Is it possible to send an HTTP 401 response when an unauthenticated user > sends a GET/POST/etc to a specific url. I'm using > wicketstuff-security-swarm > and the default behavior is to redirect to the login page. I'm trying to > create a REST endpoint from wicket so it doesn't make sense to respond with > the HTML for the login page when an unauthenticated user hits the url. > > I'm new to wicket security so any pointers would be greatly appreciated. > > Thanks, > Rob > > > > -- > View this message in context: > http://apache-wicket.1842946.n4.nabble.com/Send-HTTP-401-for-unauthenticated-user-tp4660957.html > Sent from the Users forum mailing list archive at Nabble.com. > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [email protected] > For additional commands, e-mail: [email protected] > >
