Re: basic auth in T5
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.tapes...@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 wrote: > > > Not yet, but that seems not the http basic auth. > > > > > > On Thu, May 2, 2013 at 12:31 PM, Taha Hafeez Siddiqi < > > tawus.tapes...@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 > 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
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.tapes...@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 wrote: > > > Not yet, but that seems not the http basic auth. > > > > > > On Thu, May 2, 2013 at 12:31 PM, Taha Hafeez Siddiqi < > > tawus.tapes...@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 > 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
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 wrote: > Not yet, but that seems not the http basic auth. > > > On Thu, May 2, 2013 at 12:31 PM, Taha Hafeez Siddiqi < > tawus.tapes...@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 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
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 wrote: > Not yet, but that seems not the http basic auth. > > > On Thu, May 2, 2013 at 12:31 PM, Taha Hafeez Siddiqi < > tawus.tapes...@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 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
Not yet, but that seems not the http basic auth. On Thu, May 2, 2013 at 12:31 PM, Taha Hafeez Siddiqi < tawus.tapes...@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 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
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 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
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