Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow include_docs_urls to configure Schema View Authentication #5399

Closed
psychok7 opened this issue Sep 7, 2017 · 3 comments · Fixed by #5448
Closed

Allow include_docs_urls to configure Schema View Authentication #5399

psychok7 opened this issue Sep 7, 2017 · 3 comments · Fixed by #5448

Comments

@psychok7
Copy link

psychok7 commented Sep 7, 2017

Hi there, i am using the built in api documentation from drf 3.6 http://www.django-rest-framework.org/topics/documenting-your-api/

I am only able to access the API docs if i am logged into Django admin for example (even if my endpoints do not have any authentication).

Is there a way for me to disable the authentication in the API docs?

Thanks

@carltongibson
Copy link
Collaborator

carltongibson commented Sep 7, 2017

@psychok7 What are your DEFAULT_AUTHENTICATION_CLASSES? You're probably requiring Session or Basic auth implicitly.

You can set these to [] as a work around. Either that or you'll need to manually configure the docs view.

include_docs_urls should allow this. (But currently doesn't)

@carltongibson carltongibson changed the title API Docs Authentication Allow include_docs_urls to configure Schema View Authentication Sep 7, 2017
@carltongibson carltongibson added this to the 3.7.0 Release milestone Sep 7, 2017
@psychok7
Copy link
Author

psychok7 commented Sep 7, 2017

@carltongibson your workaround worked, thanks. By the way i also had to set 'DEFAULT_PERMISSION_CLASSES': ()

@carltongibson
Copy link
Collaborator

#5309 sketches this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
2 participants