Re: Every view requires authentication

2013-07-18 Thread Jon Dufresne
Yeah > > that makes sense. As every page will require some different authorization > > anyway, there is no need for extra middleware. Is that right? > > > > No, that's not what he's saying. > > "authentication" -> "who am I?" > &

Re: Every view requires authentication

2013-07-18 Thread Tom Evans
. "authentication" -> "who am I?" "authorization" -> "am I allowed to do this?" His point was, even though every view requires authentication, it will also require authorization - checking that the user has permission to access that specific page. Presu

Re: Every view requires authentication

2013-07-17 Thread Jon Dufresne
On Wed, Jul 17, 2013 at 4:24 PM, Arnold Krille wrote: > Still interesting that you need authentication while not needing any > authorization... Oh, I see what you're saying. The login_required does not need to be added explicitly, because it is added implicitly by the authorization check. Yeah

Re: Every view requires authentication

2013-07-17 Thread Arnold Krille
On Wed, 17 Jul 2013 14:18:54 -0700 Jon Dufresne wrote: > On Wed, Jul 17, 2013 at 1:25 PM, Arnold Krille > wrote: > > > On Wed, 17 Jul 2013 11:22:36 -0700 Jon Dufresne > > wrote:The standard-way depende on your > > views: > > - If its function-based views, use the @login_required-decorator. > >

Re: Every view requires authentication

2013-07-17 Thread Jon Dufresne
On Wed, Jul 17, 2013 at 1:25 PM, Arnold Krille wrote: > On Wed, 17 Jul 2013 11:22:36 -0700 Jon Dufresne > wrote:The standard-way depende on your views: > - If its function-based views, use the @login_required-decorator. > - For class-based views we use the LoginRequiredMixin from >django-b

Re: Every view requires authentication

2013-07-17 Thread Arnold Krille
On Wed, 17 Jul 2013 11:22:36 -0700 Jon Dufresne wrote: > My application requires an authenticated user for every view (with > very few exceptions). Is there a standard correct way to handle this > or should I roll my own middleware? I'm probably not the first have > this requirement. The standard

Every view requires authentication

2013-07-17 Thread Jon Dufresne
My application requires an authenticated user for every view (with very few exceptions). Is there a standard correct way to handle this or should I roll my own middleware? I'm probably not the first have this requirement. -- You received this message because you are subscribed to the Google Group