On 12/16/15 11:35, ankit sharma wrote:
Reto,

Thanks a lot. Now the page isn't accessible (it shows 500 error) and I am still being able to run NER queries (which is exactly what i wanted).

Another thing that I would like to ask is whether it is possible to show some other page to an unauthorized user that tries to open this page.
*/
/*
*/For e.g./*//is it possible to redirect the user to home page of the website when he tries to open xyz.com:8080/ ?
It's not possible by default, also I'm not sure if and how HTTP supports redirection together with BASIC AUTH. But it easy quite easy to write your own "WeightedAuthenticationMethod" to customize the authentication process. Just take commons/security/authentication.basic/src/main/java/org/apache/stanbol/commons/authentication/basic/BasicAuthentication.java as an example.

Cheers,
Reto


Thanks a lot,
Ankit

> Subject: Re: Fwd: BASIC AUTHENTICATION
> To: dev@stanbol.apache.org
> From: r...@apache.org
> Date: Wed, 16 Dec 2015 10:36:59 +0000
>
> I think this should be achievable by removing an essential permission
> from the anonymous user. In this case authentication would be required
> for all requests.
>
> Cheers,
> Reto
>
> On 12/15/15 20:52, Tommaso Teofili wrote:
> > this had to go to dev@ list ...
> >
> > ---------- Forwarded message ----------
> > From: ankit sharma <ankitsharma...@hotmail.com>
> > Date: 2015-12-15 19:46 GMT+01:00
> > Subject: BASIC AUTHENTICATION
> > To: "dev-ow...@stanbol.apache.org" <dev-ow...@stanbol.apache.org>
> >
> >
> > Hi all,
> >
> > I have setup NER component of stanbol and it is working well. Thanks for > > all the hard work that you guys have put in. [image: Emoji] [image: Emoji] > > Just one thing that still remains is that I don't know how to setup basic > > authentication for stanbol. I want to block any access to stanbol from a
> > person who visits my website.
> >
> > Just so I am clear, i will state my requirement with an example. Lets say
> > my stanbol instance is running on 8080 port so my address is
> > www.xyz.com:8080/. Now, I would like to have an authentication in place to > > avoid unauthorized users from checking out the content. Please let me know
> > how can I do it.
> >
> > Thanks,
> > Ankit
> >
>

Reply via email to