Django-jwt use cookie instead of Authorization header

2019-10-18 Thread Suraj Thapa FC
Django-jwt use cookie instead of Authorization header I want to build the SPA application using Django Rest Framework as a back-end. The application will use JsonWebToken authentication. For maximum security, I want to store the authentication token inside of httpOnly cookie, so it will not be

Re: Get authorization and list users in auth via http request

2019-09-12 Thread Ezequias Rocha
Thank you Ronit. Now I implemented the create_user via web request. Django Rocks! Ezequias. On Thursday, September 12, 2019 at 4:27:03 AM UTC-3, Ronit Mishra wrote: > > Hi, > > Its possible. And from what I am able to understand you're looking to > create restful services for authentication a

Re: Get authorization and list users in auth via http request

2019-09-12 Thread Ronit Mishra
Hi, Its possible. And from what I am able to understand you're looking to create restful services for authentication and registration. Your solution: Django Rest Framework Its a very detailed procedure so I can't point out all the points here, but you can follow any decent tutorial and get it ac

Re: Get authorization and list users in auth via http request

2019-09-11 Thread Ezequias Rocha
Dear Gabriel I have already access to the get method but not the creation service. I will have a creation of thousands of users from another system I am integrating. Would be nice if I have an easy way to create this creation way by loading from a list. Have you any idea how could I perform th

Re: Get authorization and list users in auth via http request

2019-09-09 Thread Gabriel Araya Garcia
...and why you don't use the Django admin app ? El lun., 9 sept. 2019 a las 15:00, Ezequias Rocha () escribió: > Hi everyone > > Could someone tell me if Django encourages the community to implement > auth/user authentication and user creation via http requests? > > I would like to *create *new

Get authorization and list users in auth via http request

2019-09-09 Thread Ezequias Rocha
Hi everyone Could someone tell me if Django encourages the community to implement auth/user authentication and user creation via http requests? I would like to *create *new users and *get users list* via a simple POST/GET http requests. Have someone did it here? Sincerely Ezequias -- You re

Re: Authorization not working on production server

2018-12-07 Thread Sidnei Pereira
Did you log in? Em sexta-feira, 7 de dezembro de 2018 09:21:51 UTC-2, Akash utreja escreveu: > > Hi, > I am building authorization in django framework using python.. The problem > is that my code is working fine on local server but when I run the same in > production it returns

Authorization not working on production server

2018-12-07 Thread Akash utreja
Hi, I am building authorization in django framework using python.. The problem is that my code is working fine on local server but when I run the same in production it returns "Anonymous User" Am I doing it right? if request.user.has_perm('auth.access_admin')

Authorization in Django

2018-04-17 Thread Amar Savalagi
Hey every on please visit my blog on authorization in django <https://medium.com/@amarsavalagi/authorization-in-django-webapp-cbd0b6ea18ce> -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group an

Talos - alternative authentication, authorization and accounting application

2017-09-15 Thread Roman Akopov
Hi, Not to offend anyone, but django.contrib.auth is quite limited. At some point I have decided that something should be done with that. Here is my attempt to change something - Talos application. I tried to implement as much as I considered reasonable, but not everything I ever saw in real w

Re: Need help in calling dispatch on custom mixin for authorization

2017-06-15 Thread Ajat Prabha
I was able to resolve the issue. In mixins.py, .get_object() was unresolvable so I inherited from SingleObjectMixin also I had to use the id to check equality. from django.contrib.auth.mixins import LoginRequiredMixin from django.core.exceptions import PermissionDenied from django.views.generic.d

Re: Need help in calling dispatch on custom mixin for authorization

2017-06-15 Thread Ajat Prabha
There's a typo in > if request.user.is_authenticated() and request.user is not > self.get_object().owner.user: It is > if request.user.is_authenticated() and request.user is not > self.get_object().author.user: But still, it doesn't work. Same issue persists. -- You received this message b

Re: Need help in calling dispatch on custom mixin for authorization

2017-06-14 Thread Ajat Prabha
Can someone point out what is wrong in the code? -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscr...@googlegroups.com. To post to this group

Need help in calling dispatch on custom mixin for authorization

2017-06-12 Thread Ajat Prabha
dMixin and for Topic authorization, I'm trying to create custom mixin UserAuthorMixin, but I'm having trouble to get it working. The implementation below works same for author's own topics and other author's post. views.py from django.views import generic > from

Re: Curl PUT Request With JWT Authorization Header

2016-08-23 Thread Ricardo Daniel Quiroga
JWT Token to be passed with every call. The > request I am attempting to pass is PUT request and my question is where to > place the header for the JWT token authorization. I have tried the > following format and I get a error Could not resolve host: —H curl: (6) > Could not resolv

Curl PUT Request With JWT Authorization Header

2016-08-23 Thread Peter Boyles
to place the header for the JWT token authorization. I have tried the following format and I get a error Could not resolve host: —H curl: (6) Could not resolve host: Authorization: curl -X PUT -H "Authorization: JWT " -d "field=value" "https://url/update_record/

Re: Preferred way of adding social authorization to a Django / REST app?

2015-06-19 Thread aRkadeFR
I like JWT authentication coupled with AngularJS: https://github.com/GetBlimp/django-rest-framework-jwt On 06/18/2015 08:00 PM, Daniel Grace wrote: What is the preferred way of adding social authorization to a Django / REST app? I see that there are at least two packages: django-rest

Re: Preferred way of adding social authorization to a Django / REST app?

2015-06-18 Thread Vijay Khemlani
ed way of adding social authorization to a Django / > REST app? > > I see that there are at least two packages: > django-rest-framework-social-oauth2 (see > https://pypi.python.org/pypi/django-rest-framework-social-oauth2/0.0.4) > and django-rest-auth (see > http:

Preferred way of adding social authorization to a Django / REST app?

2015-06-18 Thread Daniel Grace
What is the preferred way of adding social authorization to a Django / REST app? I see that there are at least two packages: django-rest-framework-social-oauth2 (see https://pypi.python.org/pypi/django-rest-framework-social-oauth2/0.0.4) and django-rest-auth (see http://django-rest

Tasty pie reutrns 401 unauthorized even when i commented out authorization and authentication

2015-05-07 Thread Anubhav Kaushik
i added v1_api.register(ArtistResource()) in my main url and this is the code in meta class class Meta: queryset = Artist.objects.all() resource_name = 'artist' #authentication = Authentication() # authorization = Authorization() excludes

Re: OperationalError happening after giving authorization to the class based view

2014-06-08 Thread yutaka kobayashi
ter terminal or console i see you > use sqlite3 > > i recomended install this addons in firefox for managed database sqlite3 > if you no like use console > https://addons.mozilla.org/es/firefox/addon/sqlite-manager/ > > Cheers > > > On Fri, Jun 6, 2014 at 1:57 AM,

Re: OperationalError happening after giving authorization to the class based view

2014-06-06 Thread carlos
a few things to match for django1.6) > > It goes perfectly well untill making login page and giving authentication > to the user. > But when it comes to giving authorization like below it gives an error > > from django.contrib.auth.decorators import login_require

What kind of authorization I should use for my Django facebook app

2012-06-30 Thread surya
I am building a facebook application using Django where I am using Google Data API (Blogger API) to read website's content. So, what kind of authorization I should use in Google Data API to read the website.. To be specific, what kind of OAuth authorization I should use and how? (I wa

Re: Authorization workflow model

2011-09-07 Thread Mario8k
On 6 sep, 06:31, Julien Castets wrote: > Hi, > > I faced to the same problem than you a few weeks ago, and I found this > :https://github.com/dominno/django-moderation#readme > It seems to be what you're searching. > This reusable app seems to work for me. I will try it. Thanks. > Julien Caste

Re: Authorization workflow model

2011-09-07 Thread Mario8k
On 6 sep, 00:55, Mike Dewhirst wrote: > On 6/09/2011 5:46am, Mario8k wrote: > > > Hello, > > > Does anyone knows some solution (reusable app, snippet or any idea) to > > model an authorization workflow of data? > > > That is... supose that a user have restric

Re: Authorization workflow model

2011-09-07 Thread Mario8k
the user (assuming the > person making the authorization will base their decision on who's > making the request). Also, it'll get a little more complicated if you > want to store values for different field types (boolean vs. string, > for example), and maybe a boolean or a

Re: Authorization workflow model

2011-09-06 Thread Julien Castets
o, >> >> Does anyone knows some solution (reusable app, snippet or any idea) to >> model an authorization workflow of data? >> >> That is... supose that a user have restricted some model field, ie, >> cannot edit directly this field. And now supose that he could reque

Re: Authorization workflow model

2011-09-05 Thread Mike Dewhirst
On 6/09/2011 5:46am, Mario8k wrote: Hello, Does anyone knows some solution (reusable app, snippet or any idea) to model an authorization workflow of data? That is... supose that a user have restricted some model field, ie, cannot edit directly this field. And now supose that he could request

Re: Authorization workflow model

2011-09-05 Thread Shawn Milochik
You could use a model with three fields: A generic foreign key to the instance to be modified. A char field containing the fieldname on that instance. The new value. Of course you'd need another field to store the user (assuming the person making the authorization will base

Authorization workflow model

2011-09-05 Thread Mario8k
Hello, Does anyone knows some solution (reusable app, snippet or any idea) to model an authorization workflow of data? That is... supose that a user have restricted some model field, ie, cannot edit directly this field. And now supose that he could request to change that field, seeing the real

Re: Authorization of static content

2011-02-23 Thread Sam Lai
On 23 February 2011 19:03, Joakim Hove wrote: > Hello, > > I am using Django to create an album application. I was planning to > use djangos user system for authorization, however the final image > viewing will be like: > >     > > Where image.url should resolv

Re: Authorization of static content

2011-02-23 Thread Joakim Hove
Thank you; that was a very good starting point - I will hopefully find a solution from this. Joakim On 23 Feb, 09:18, Mike Ramirez wrote: > On Wednesday, February 23, 2011 12:03:12 am Joakim Hove wrote: > > > Hello, > > Any suggestions of how to combine django based

Re: Authorization of static content

2011-02-23 Thread Mike Ramirez
On Wednesday, February 23, 2011 12:03:12 am Joakim Hove wrote: > Hello, > Any suggestions of how to combine django based authorization with > serving of static content? I am the owner of the box in question and > can modify the apache setup way beyond my competence. > > Reg

Authorization of static content

2011-02-23 Thread Joakim Hove
Hello, I am using Django to create an album application. I was planning to use djangos user system for authorization, however the final image viewing will be like: Where image.url should resolve to something like http://static-images.com/path/to/image.jpg Here http://static-images.com

Re: authentication through http authorization header

2010-08-29 Thread Sævar Öfjörð
Djangoer: > > I am new to Django. Please excuse me if the question is naive. > > I am trying to figure out if I could integrate my company's "access > manager" with Django's authorization. > > Every time a user try to login my Django application, he/she go

authentication through http authorization header

2010-08-28 Thread yupu
Dear Djangoer: I am new to Django. Please excuse me if the question is naive. I am trying to figure out if I could integrate my company's "access manager" with Django's authorization. Every time a user try to login my Django application, he/she got redirect to "a

Re: App for Registration/Authorization which is Email & Password based (not username)

2010-08-28 Thread Alexandre González
on is very good documented > > > > > > > > > > > > On Fri, Aug 27, 2010 at 18:59, Eric Chamberlain wrote: > > > > > On Aug 26, 2010, at 9:31 PM, nobosh wrote: > > > > > > Hello, I'm on day 7 learning Django and would apprec

Re: App for Registration/Authorization which is Email & Password based (not username)

2010-08-27 Thread nobosh
mberlain wrote: > > > On Aug 26, 2010, at 9:31 PM, nobosh wrote: > > > > Hello, I'm on day 7 learning Django and would appreciate any info > > > around getting my Django app started with a Registration/Authorization > > > which is Email & Password based

Re: App for Registration/Authorization which is Email & Password based (not username)

2010-08-27 Thread Alexandre González
te: > > On Aug 26, 2010, at 9:31 PM, nobosh wrote: > > > Hello, I'm on day 7 learning Django and would appreciate any info > > around getting my Django app started with a Registration/Authorization > > which is Email & Password based (not username). I'll don'

Re: App for Registration/Authorization which is Email & Password based (not username)

2010-08-27 Thread Eric Chamberlain
On Aug 26, 2010, at 9:31 PM, nobosh wrote: > Hello, I'm on day 7 learning Django and would appreciate any info > around getting my Django app started with a Registration/Authorization > which is Email & Password based (not username). I'll don't currently > have a

Re: App for Registration/Authorization which is Email & Password based (not username)

2010-08-26 Thread nobosh
Thanks for the reply. The learning curve to get started has been harder than I expected. I found this: http://github.com/redvasily/django-emailauth Which seems to handle things well but it's still a hack (it's adding IDs in front of the email to create a username. I ran the setup.py and loaded th

Re: App for Registration/Authorization which is Email & Password based (not username)

2010-08-26 Thread Shawn Milochik
If you still want to use the contrib.auth app, you can just add your own backend to the user authentication. It's very easy to do. http://docs.djangoproject.com/en/dev/topics/auth/#writing-an-authentication-backend There are some very smart people who prefer not to use contrib.auth for a variety

App for Registration/Authorization which is Email & Password based (not username)

2010-08-26 Thread nobosh
Hello, I'm on day 7 learning Django and would appreciate any info around getting my Django app started with a Registration/Authorization which is Email & Password based (not username). I'll don't currently have a need for usernames. Is there an app or a clean/smart way to imple

Re: need help with custom authorization Backend

2010-05-06 Thread lray
resolved by adding has_perm and get_all_permisions methods to my backend class. Looks all methods should defined in backend, not just the one I want to change. On May 6, 1:53 pm, lray wrote: > I am writing an authorization backend to get some permissions from > custom tables. I added

need help with custom authorization Backend

2010-05-06 Thread lray
I am writing an authorization backend to get some permissions from custom tables. I added it to settings.py, It does not appear Django is calling get_group_permissions(self) from this backend. I had print statements and nothing got printed in Please help. class MyBackend(object

Re: authorization

2009-10-13 Thread Arthur Metasov
2009/10/13 elminio > > Hi, > > By admin I can choose what users can do with model objects. And what > about certain pages. Do I have to write if in everyone view method (to > check is current user may access given view ? > > Or is there any built in tool that makes it possible to restrict > acces

Re: authorization

2009-10-13 Thread nabucosound
And specifically the @login_required decorator... On Oct 13, 12:51 pm, Daniel Roseman wrote: > On Oct 13, 11:42 am, elminio wrote: > > > Hi, > > > By admin I can choose what users can do with model objects. And what > > about certain pages. Do I have to write if in everyone view method (to > >

Re: authorization

2009-10-13 Thread Daniel Roseman
On Oct 13, 11:42 am, elminio wrote: > Hi, > > By admin I can choose what users can do with model objects. And what > about certain pages. Do I have to write if in everyone view method (to > check is current user may access given view ? > > Or is there any built in tool that makes it possible to r

authorization

2009-10-13 Thread elminio
Hi, By admin I can choose what users can do with model objects. And what about certain pages. Do I have to write if in everyone view method (to check is current user may access given view ? Or is there any built in tool that makes it possible to restrict access to given pages. thanks for help -

Re: Multiple implementations of django's authentication/authorization system

2009-09-16 Thread Dan06
On Sep 16, 1:55 pm, Chris Babcock wrote: > Is there any particular reason to maintain two distinct authentication > databases? You could sub-class the Django auth models and deploy your > subclass in parallel, but that is not a trivial deployment task. It > would be easier to just authorize th

Re: Multiple implementations of django's authentication/authorization system

2009-09-16 Thread Chris Babcock
On Wed, 16 Sep 2009 10:26:15 -0700 (PDT) Dan06 wrote: > Is there a way to have multiple implementations of django's > authentication/authorization system? In my practice blog-type site, > I've implemented django's auth/auth system as is. I'd like to use the > d

Multiple implementations of django's authentication/authorization system

2009-09-16 Thread Dan06
Hi, Is there a way to have multiple implementations of django's authentication/authorization system? In my practice blog-type site, I've implemented django's auth/auth system as is. I'd like to use the default implementation solely for administrators of the site. For users

Re: How to add a customized validation/authorization to django.contrib.admin

2009-05-05 Thread Zain Memon
ystem time > and/or the field she/he attempts to edit. > > When user who has no authority attempts to edit something, she/he > should received a user-friendly error message just like she/he entered > invalid email address or leaved required field empty. > > How to hook thi

How to add a customized validation/authorization to django.contrib.admin

2009-05-05 Thread topcoder...@gmail.com
hook this customized validation/authorization feature into admin site? Thanks a lot. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to dj

Re: Can I just put user id in session for authorization purpose?

2009-04-06 Thread Zeal
Hi Malcolm, Thanks for your clear explanation. I've already done the authorization function by myself, if you are interesting in it, you could refer to following coding. After analysising django's auth module, I just gave it up for some integration reason. However, I copied some usefu

Re: Can I just put user id in session for authorization purpose?

2009-04-05 Thread Malcolm Tredinnick
uth model. Thanks! I think you're misunderstanding something here, due to some lazy naming practices in Django's past. The "auth" in django.contrib.auth is for authentication, not authorization. It has all the utility pieces needed to authenticate a user and store any related user

Re: Can I just put user id in session for authorization purpose?

2009-04-05 Thread Zeal
Django's auth is pretty good, however, I need some row-level authorziation mechnism, like in which department and function that the certain user could access, so my needs on authrization are pretty different than default auth model. Thanks! --~--~-~--~~~---~--~~ You

Re: Can I just put user id in session for authorization purpose?

2009-04-03 Thread Malcolm Tredinnick
On Fri, 2009-04-03 at 01:41 -0700, Zeal wrote: > I'm a newbie, I've been using Django to develop an application. The > entire application need to be based on an authorization mechnism. As > of my current programe, I just put user's id in session when they log > in, a

Can I just put user id in session for authorization purpose?

2009-04-03 Thread Zeal
I'm a newbie, I've been using Django to develop an application. The entire application need to be based on an authorization mechnism. As of my current programe, I just put user's id in session when they log in, and there is a authorization decorater to judge whether a request obje

Re: Authorization on data level in django admin

2009-04-02 Thread Malcolm Tredinnick
1.2 feature now) > > Hi Malcolm. > > First of all thank you for the brief explanation. > > So you reckon I shouldn't use django admin for row level > authorization? It would be possible, as I wrote, but it would require a fair bit of work on your side to customise things. It&#

Re: Authorization on data level in django admin

2009-04-02 Thread Joshua Partogi
classes and the like (although it > might require the ChangeList class to be over-ridable, which I believe > is a Django 1.2 feature now) Hi Malcolm. First of all thank you for the brief explanation. So you reckon I shouldn't use django admin for row level authorization? Thanks in adva

Re: Authorization on data level in django admin

2009-04-02 Thread Malcolm Tredinnick
On Fri, 2009-04-03 at 00:26 +1100, Joshua Partogi wrote: > Dear all, > > In django admin we can give permission to user to edit, delete or > create certain model. But what I want to do now is a user can only > edit or delete the data that he/she created. > > Is there any way we can do this in dj

Authorization on data level in django admin

2009-04-02 Thread Joshua Partogi
Dear all, In django admin we can give permission to user to edit, delete or create certain model. But what I want to do now is a user can only edit or delete the data that he/she created. Is there any way we can do this in django admin? Thank you very much in advance -- If you can't believe i

Decoupling authorization from view

2008-09-11 Thread Thomas Guettler
Hi, The auth-decorators to check for permission are nice, but it would be better, if the authorization could be decoupled from calling the view. My goal: Check if a user can access a view without calling it, because I want to disable/hide a link if the user must not call it. I implemented it

Re: Authorization from ssl certificate data

2007-11-12 Thread Graham Dumpleton
On Nov 13, 3:34 am, "James Bennett" <[EMAIL PROTECTED]> wrote: > On 11/12/07, Malcolm Tredinnick <[EMAIL PROTECTED]> wrote: > > > So, without having tested it, you might be able to access > > request._req.subprocess_env to get the information (although read the > >mod_pythondocs first, particularl

Re: Authorization from ssl certificate data

2007-11-12 Thread James Bennett
On 11/12/07, Malcolm Tredinnick <[EMAIL PROTECTED]> wrote: > So, without having tested it, you might be able to access > request._req.subprocess_env to get the information (although read the > mod_python docs first, particularly about add_common_vars(), since > that's certainly tripped me up in th

Re: Authorization from ssl certificate data

2007-11-12 Thread Malcolm Tredinnick
On Mon, 2007-11-12 at 15:55 +, Krzysztof Ciesielski wrote: > Hi, I've got a problem with django used with mod_ssl and mod_python. I > wanted to use environmental variables from mod_ssl in order to > automaticly log in users but it appears that those variables are not > accessible trough requ

Re: Authorization from ssl certificate data

2007-11-12 Thread James Bennett
On 11/12/07, Krzysztof Ciesielski <[EMAIL PROTECTED]> wrote: > Hi, I've got a problem with django used with mod_ssl and mod_python. I > wanted to use environmental variables from mod_ssl in order to > automaticly log in users but it appears that those variables are not > accessible trough request

Authorization from ssl certificate data

2007-11-12 Thread Krzysztof Ciesielski
Hi, I've got a problem with django used with mod_ssl and mod_python. I wanted to use environmental variables from mod_ssl in order to automaticly log in users but it appears that those variables are not accessible trough request.META Has anyone met this problem before. and has any idea how to sol

Re: Authorization Model at the Field Level

2007-11-06 Thread Marcin Mierzejewski
Hi Manakel, On Nov 6, 11:53 am, Manakel <[EMAIL PROTECTED]> wrote: > This web application had a Authorization model at the Field level. > [] > TASK has a progress status field and a due date field > realisator user can only change the status field > owner can change

Authorization Model at the Field Level

2007-11-06 Thread Manakel
Hello Everybody, I'm kind of new to Django (less than 1week now). I have the task to migrate an existing web application to django. This web application had a Authorization model at the Field level. If i take a TASK model for demonstration. TASK has a progress status field and

Re: apache authorization with django

2007-09-20 Thread Robin Becker
Graham Dumpleton wrote: .. >> >> I for one am not sure; are we saying that even if I'm using flup / fastcgi as >> the transport I'm not able to use that for authorization? > > That depends on whether flup supports the backend side of the FASTC

Re: apache authorization with django

2007-09-20 Thread Graham Dumpleton
going to be happy with something that requires mod_python > > 3.3.1? > > > Graham > > .. > > I for one am not sure; are we saying that even if I'm using flup / fastcgi as > the transport I'm not able to use that for authorization? That depends

Re: apache authorization with django

2007-09-20 Thread Robin Becker
pport, then maybe > I'll have a brainwave and come up with something that might also work > on mod_python (to a degree). > > Are you going to be happy with something that requires mod_python > 3.3.1? > > Graham .. I for one am not sure; are we saying that even if

Re: apache authorization with django

2007-09-19 Thread Graham Dumpleton
On Sep 20, 8:39 am, "Jacob Kaplan-Moss" <[EMAIL PROTECTED]> wrote: > On 9/19/07, Graham Dumpleton <[EMAIL PROTECTED]> wrote: > > > Not properly though. > > Indeed -- the auth handler has always been of "works-for-me" quality; > I don't know nearly enough about Apache to write a proper one. I would

Re: apache authorization with django

2007-09-19 Thread Jacob Kaplan-Moss
On 9/19/07, Graham Dumpleton <[EMAIL PROTECTED]> wrote: > Not properly though. Indeed -- the auth handler has always been of "works-for-me" quality; I don't know nearly enough about Apache to write a proper one. I would be thrilled and delighted if someone who did would step forward and write som

Re: apache authorization with django

2007-09-19 Thread Graham Dumpleton
On Sep 19, 10:46 pm, Robin Becker <[EMAIL PROTECTED]> wrote: > Graham Dumpleton wrote: > > . > > >>> In 2.0 there seems no way to provide another > >>> authorizer without writing an apache module. > >> Correct. > > > Whoops. Not strictly true. You can write one with mod_python by > > imple

Re: apache authorization with django

2007-09-19 Thread Graham Dumpleton
On Sep 19, 10:18 pm, Graham Dumpleton <[EMAIL PROTECTED]> wrote: > > OK my code looks like the standard django/contrib/auth/modpython.py the > > patch is > > > *** > > *** 39,44 > > --- 38,54 > > ># check the password and any permission given > >if

Re: apache authorization with django

2007-09-19 Thread Graham Dumpleton
pp > >> which only does user/groups. I think this is less desirable because of the > >> possibility of permission leakage. I can imagine exporting changes into > >> some > >> other project's db so this doesn't seem impossible. > > > Can you perhaps

Re: apache authorization with django

2007-09-19 Thread Robin Becker
Graham Dumpleton wrote: . >> >>> In 2.0 there seems no way to provide another >>> authorizer without writing an apache module. >> Correct. > > Whoops. Not strictly true. You can write one with mod_python by > implementing a authzhandler(). You just need to know what you are > doing. ;-) >

Re: apache authorization with django

2007-09-19 Thread Robin Becker
ct's db so this doesn't seem impossible. > > Can you perhaps gives some code examples of what your authn/authz code > looks like now so I can see how you are using groups. > > The reason I am curious is that I am currently working on implementing > a solution in mod_wsgi

Re: apache authorization with django

2007-09-19 Thread Graham Dumpleton
e how you are using groups. The reason I am curious is that I am currently working on implementing a solution in mod_wsgi for better using Python to support Apache authentication and authorization. Also, the other way around, providing hooks so a Python application can use an Apache auth provider for

apache authorization with django

2007-09-18 Thread Robin Becker
I find I can use django users and groups to authorize apache locations and directories using a modified version of modpython.py(I just hacked it to check for required groups). I have some difficulties with this simple scheme. First off it seems to be completely separate from the normal django

Re: django authorization of apache

2007-06-29 Thread Robin Becker
Steven Armstrong wrote: > > You could then pass the groups, or whatever else you need, to the > handler using PythonOption directives. > > e.g. > > AuthType basic > AuthName "djauth test" > Require valid-user > SetEnv DJANGO_SETTINGS_MODULE djauth.settings > PythonOption DjangoGroups XX

Re: django authorization of apache

2007-06-28 Thread Graham Dumpleton
gt; I see from this documentation > > http://www.djangoproject.com/documentation/apache_auth/#configuring-a... > > that it is conceptually possible to configure apache authorization using > django. > > However, we have recently decided to de-couple django frommod_pythonby using

Re: django authorization of apache

2007-06-28 Thread Steven Armstrong
Robin Becker wrote on 06/28/07 19:44: > Steven Armstrong wrote: >> Robin Becker wrote on 06/28/07 16:13: >>> I see from this documentation >>> >>> http://www.djangoproject.com/documentation/apache_auth/#configuring-apache >>> >>> that it is c

Re: django authorization of apache

2007-06-28 Thread Robin Becker
Steven Armstrong wrote: > Robin Becker wrote on 06/28/07 16:13: >> I see from this documentation >> >> http://www.djangoproject.com/documentation/apache_auth/#configuring-apache >> >> that it is conceptually possible to configure apache authorization using

Re: django authorization of apache

2007-06-28 Thread Steven Armstrong
Robin Becker wrote on 06/28/07 16:13: > I see from this documentation > > http://www.djangoproject.com/documentation/apache_auth/#configuring-apache > > that it is conceptually possible to configure apache authorization using > django. > > However, we have recently dec

django authorization of apache

2007-06-28 Thread Robin Becker
I see from this documentation http://www.djangoproject.com/documentation/apache_auth/#configuring-apache that it is conceptually possible to configure apache authorization using django. However, we have recently decided to de-couple django from mod_python by using fastcgi. This is because we

User authorization using apache

2007-04-16 Thread jeffhg58
I am sure this question has been asked before but haven't been able to find the answer. I am using the django decorator for user authentication. My views has the line @login_required And my urls.py has the line (r'^accounts/login/$', 'django.contrib.auth.views.login'), It works fine in the dj

Re: Generic Authorization vs per-object-permissions branch

2007-02-06 Thread Frédéric Roland
I would like to see these branches merged with the trunk too but lack sufficient experience with working with trunk/branches. What are the steps needed to merge the last change from the trunk into the branches to keep the branches up to date ? How would you do it ? Start with the patch committed

Re: Generic Authorization vs per-object-permissions branch

2007-02-06 Thread Ramdas S
rovide object level > > permissions or column level permissions at least. > > > > There are two branches which I see being **inactively**. being > > developed. 1) Per-object-permissions which I feel is stable enough > > though I have not tried nothing really significa

Re: Generic Authorization vs per-object-permissions branch

2007-02-06 Thread Edward Muller
branches which I see being **inactively**. being > developed. 1) Per-object-permissions which I feel is stable enough > though I have not tried nothing really significant on that 2) > Generic Authorization. > > Can someone advise the future of these two branches? Will they be

Generic Authorization vs per-object-permissions branch

2007-01-26 Thread Ramdas S
significant on that 2) Generic Authorization. Can someone advise the future of these two branches? Will they be merged with the main trunk? I hear on and off that users are not testing these branches well enough, and hence they are not being merged. IMHO, I feel we must merge these branches into the main