You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tapestry.apache.org by Angelo Chen <an...@gmail.com> on 2013/05/02 06:29:17 UTC
basic auth in T5
Hi,
I'd like to put http basic authentication in some of page classes, not all,
is there a simple way to do this? probably an annotation approach? Thanks
Angelo
Re: basic auth in T5
Posted by Kalle Korhonen <ka...@gmail.com>.
Come on people - basic authentication is not that old... You can of course
you the standard servlet container managed authentication whether you use
form or basic authentication but it's not a requirement for basic. You can
also use tapestry-security exactly the same way as you otherwise would and
configure SecurityFilterChainFactory.basic() filter to authenticate via
basic authentication headers.
Kalle
On Wed, May 1, 2013 at 11:06 PM, Taha Hafeez Siddiqi <
tawus.tapestry@gmail.com> wrote:
> Oops! Didn't get that (Not used Basic Authentication since a long long
> time).
>
> Http Basic auth is implemented at the container level.
>
> http://docs.oracle.com/cd/E19798-01/821-1841/bncck/index.html
>
>
> Once you are authenticated you can use the details (principal, roles) with
> the annotation approach.
>
> regards
> Taha
>
>
> On 02-May-2013, at 10:55 AM, Angelo Chen <an...@gmail.com> wrote:
>
> > Not yet, but that seems not the http basic auth.
> >
> >
> > On Thu, May 2, 2013 at 12:31 PM, Taha Hafeez Siddiqi <
> > tawus.tapestry@gmail.com> wrote:
> >
> >> Did you try this.
> >>
> >>
> http://tapestryjava.blogspot.in/2009/12/securing-tapestry-pages-with.html
> >>
> >> regards
> >> Taha
> >>
> >> On 02-May-2013, at 9:59 AM, Angelo Chen <an...@gmail.com>
> wrote:
> >>
> >>> Hi,
> >>>
> >>> I'd like to put http basic authentication in some of page classes, not
> >> all,
> >>> is there a simple way to do this? probably an annotation approach?
> Thanks
> >>>
> >>> Angelo
> >>
> >>
>
>
Re: basic auth in T5
Posted by Angelo Chen <an...@gmail.com>.
Hi,
Thanks for the tip, it is in the servlet level, it will be nice if we can
have a simply way to mark a certain route in tapestry5 with http basic
authentication, the use case is, an app might have a very rich javascript
client, and accessing pages with restful api, if those api can be protected
with http basic authentication, development will be easier.
Angelo
On Thu, May 2, 2013 at 2:06 PM, Taha Hafeez Siddiqi <
tawus.tapestry@gmail.com> wrote:
> Oops! Didn't get that (Not used Basic Authentication since a long long
> time).
>
> Http Basic auth is implemented at the container level.
>
> http://docs.oracle.com/cd/E19798-01/821-1841/bncck/index.html
>
>
> Once you are authenticated you can use the details (principal, roles) with
> the annotation approach.
>
> regards
> Taha
>
>
> On 02-May-2013, at 10:55 AM, Angelo Chen <an...@gmail.com> wrote:
>
> > Not yet, but that seems not the http basic auth.
> >
> >
> > On Thu, May 2, 2013 at 12:31 PM, Taha Hafeez Siddiqi <
> > tawus.tapestry@gmail.com> wrote:
> >
> >> Did you try this.
> >>
> >>
> http://tapestryjava.blogspot.in/2009/12/securing-tapestry-pages-with.html
> >>
> >> regards
> >> Taha
> >>
> >> On 02-May-2013, at 9:59 AM, Angelo Chen <an...@gmail.com>
> wrote:
> >>
> >>> Hi,
> >>>
> >>> I'd like to put http basic authentication in some of page classes, not
> >> all,
> >>> is there a simple way to do this? probably an annotation approach?
> Thanks
> >>>
> >>> Angelo
> >>
> >>
>
>
Re: basic auth in T5
Posted by Taha Hafeez Siddiqi <ta...@gmail.com>.
Oops! Didn't get that (Not used Basic Authentication since a long long time).
Http Basic auth is implemented at the container level.
http://docs.oracle.com/cd/E19798-01/821-1841/bncck/index.html
Once you are authenticated you can use the details (principal, roles) with the annotation approach.
regards
Taha
On 02-May-2013, at 10:55 AM, Angelo Chen <an...@gmail.com> wrote:
> Not yet, but that seems not the http basic auth.
>
>
> On Thu, May 2, 2013 at 12:31 PM, Taha Hafeez Siddiqi <
> tawus.tapestry@gmail.com> wrote:
>
>> Did you try this.
>>
>> http://tapestryjava.blogspot.in/2009/12/securing-tapestry-pages-with.html
>>
>> regards
>> Taha
>>
>> On 02-May-2013, at 9:59 AM, Angelo Chen <an...@gmail.com> wrote:
>>
>>> Hi,
>>>
>>> I'd like to put http basic authentication in some of page classes, not
>> all,
>>> is there a simple way to do this? probably an annotation approach? Thanks
>>>
>>> Angelo
>>
>>
Re: basic auth in T5
Posted by Dmitry Gusev <dm...@gmail.com>.
Isn't HTTP Basic Auth is all done in web.xml?
It is not related to Tapestry (or any other web framework) at all.
On Thu, May 2, 2013 at 9:25 AM, Angelo Chen <an...@gmail.com> wrote:
> Not yet, but that seems not the http basic auth.
>
>
> On Thu, May 2, 2013 at 12:31 PM, Taha Hafeez Siddiqi <
> tawus.tapestry@gmail.com> wrote:
>
> > Did you try this.
> >
> >
> http://tapestryjava.blogspot.in/2009/12/securing-tapestry-pages-with.html
> >
> > regards
> > Taha
> >
> > On 02-May-2013, at 9:59 AM, Angelo Chen <an...@gmail.com> wrote:
> >
> > > Hi,
> > >
> > > I'd like to put http basic authentication in some of page classes, not
> > all,
> > > is there a simple way to do this? probably an annotation approach?
> Thanks
> > >
> > > Angelo
> >
> >
>
--
Dmitry Gusev
AnjLab Team
http://anjlab.com
Re: basic auth in T5
Posted by Angelo Chen <an...@gmail.com>.
Not yet, but that seems not the http basic auth.
On Thu, May 2, 2013 at 12:31 PM, Taha Hafeez Siddiqi <
tawus.tapestry@gmail.com> wrote:
> Did you try this.
>
> http://tapestryjava.blogspot.in/2009/12/securing-tapestry-pages-with.html
>
> regards
> Taha
>
> On 02-May-2013, at 9:59 AM, Angelo Chen <an...@gmail.com> wrote:
>
> > Hi,
> >
> > I'd like to put http basic authentication in some of page classes, not
> all,
> > is there a simple way to do this? probably an annotation approach? Thanks
> >
> > Angelo
>
>
Re: basic auth in T5
Posted by Taha Hafeez Siddiqi <ta...@gmail.com>.
Did you try this.
http://tapestryjava.blogspot.in/2009/12/securing-tapestry-pages-with.html
regards
Taha
On 02-May-2013, at 9:59 AM, Angelo Chen <an...@gmail.com> wrote:
> Hi,
>
> I'd like to put http basic authentication in some of page classes, not all,
> is there a simple way to do this? probably an annotation approach? Thanks
>
> Angelo