Wednesday, July 1, 2015

Re: Diable basic auth on some pages

Hi,

We are using 'deploy.middleware.basicauth.BasicAuthMiddleware' right now. If I remove that line, I will be able to access the api page. However if it's included, when I access the api page, even after I have typed in the username and password, the api page will show that I am not authenticated to view the page. I am using django_rest_framework by the way, maybe it's some sort of restriction on their side?

Cheers,
Cherie

On Tuesday, 30 June 2015 18:12:30 UTC+1, Alex Heyden wrote:
Cherie,

By default, there are no authentication controls in Django. Barring some custom middleware, authentication checks are performed within the views themselves or through something like the @login_required or @user_passes_test decorators. Are you certain that authentication is what's blocking your requests?

On Tue, Jun 30, 2015 at 9:43 AM, Cherie Pun <cherie...@gmail.com> wrote:
Hi,

In the dev version of the website, we are using basic auth to limit access. However, we are currently developing an api for the website and I would like to use the api without going through the basic auth. Is it possible to disable basic auth for all the api urls?

Cheers,
Cherie

--
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...@googlegroups.com.
To post to this group, send email to django...@googlegroups.com.
Visit this group at http://groups.google.com/group/django-users.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/0d9a681e-74c4-4b74-9648-e0e6c74beeb6%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

--
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+unsubscribe@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at http://groups.google.com/group/django-users.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/4381311c-34c9-42ca-9069-30853f5a1fde%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

No comments:

Post a Comment