You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@stanbol.apache.org by Tommaso Teofili <to...@gmail.com> on 2015/12/15 21:52:16 UTC

Fwd: BASIC AUTHENTICATION

this had to go to dev@ list ...

---------- Forwarded message ----------
From: ankit sharma <an...@hotmail.com>
Date: 2015-12-15 19:46 GMT+01:00
Subject: BASIC AUTHENTICATION
To: "dev-owner@stanbol.apache.org" <de...@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

Re: BASIC AUTHENTICATION

Posted by Reto Gmür <re...@apache.org>.

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: reto@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 <an...@hotmail.com>
> > > Date: 2015-12-15 19:46 GMT+01:00
> > > Subject: BASIC AUTHENTICATION
> > > To: "dev-owner@stanbol.apache.org" <de...@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
> > >
> >


RE: BASIC AUTHENTICATION

Posted by ankit sharma <an...@hotmail.com>.
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/ ?
Thanks a lot,Ankit
> Subject: Re: Fwd: BASIC AUTHENTICATION
> To: dev@stanbol.apache.org
> From: reto@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 <an...@hotmail.com>
> > Date: 2015-12-15 19:46 GMT+01:00
> > Subject: BASIC AUTHENTICATION
> > To: "dev-owner@stanbol.apache.org" <de...@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
> >
> 
 		 	   		  

Re: Fwd: BASIC AUTHENTICATION

Posted by Reto Gmür <re...@apache.org>.
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 <an...@hotmail.com>
> Date: 2015-12-15 19:46 GMT+01:00
> Subject: BASIC AUTHENTICATION
> To: "dev-owner@stanbol.apache.org" <de...@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
>


Re: BASIC AUTHENTICATION

Posted by Rupert Westenthaler <ru...@gmail.com>.
Hi Ankit,

Apache Stanbol has support for authentication, but I must admit I have
never used this feature. Reto would be in a much better place to
explain this.

We typically use setups where Stanbol runs as Web Application in a
Apache Tomcat server that is only reachable from local host combined
with a Apache HTTP server that is used as a reverse proxy.  But the
same setup also works when using the Apache Stanbol runnable jars that
run an embedded Jetty server.

All the access control things are done on the Apache server.

best
Rupert



On Tue, Dec 15, 2015 at 9:52 PM, Tommaso Teofili
<to...@gmail.com> wrote:
> this had to go to dev@ list ...
>
> ---------- Forwarded message ----------
> From: ankit sharma <an...@hotmail.com>
> Date: 2015-12-15 19:46 GMT+01:00
> Subject: BASIC AUTHENTICATION
> To: "dev-owner@stanbol.apache.org" <de...@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



-- 
| Rupert Westenthaler             rupert.westenthaler@gmail.com
| Bodenlehenstraße 11                              ++43-699-11108907
| A-5500 Bischofshofen
| REDLINK.CO ..........................................................................
| http://redlink.co/