"[EMAIL PROTECTED]" <[EMAIL PROTECTED]> writes:

> Hi,
> I'm trying to implement a REST service with django and I have a
> problem in authentication.
> My current approach is with .htaccess with apache password(Basic
> Authentication), simple and straight.
> But I want to validate users in django, with roles etc.
> I've tryed:
>
> <Location "/georss/">
>         AuthType basic
>         AuthName "example.com"
>         Require valid-user
> </Location>
>
> but the 'AUTH_TYPE' in request.META is None, so I can't get the user
> and password from user.

Can't you just read the base64 data from the auth header and decode
it?


-- 
Nic Ferrier
http://www.tapsellferrier.co.uk   

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-users@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to