Skip to content

Allow include_docs_urls to configure Schema View Authentication #5399

Closed

Description

@psychok7

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

Activity

  1. carltongibson commented on Sep 7, 2017

    @carltongibson
    Collaborator

    @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)

  2. changed the title [-]API Docs Authentication[/-] [+]Allow `include_docs_urls` to configure Schema View Authentication[/+] on Sep 7, 2017
  3. added this to the 3.7.0 Release milestone on Sep 7, 2017
  4. psychok7 commented on Sep 7, 2017

    @psychok7
    Author

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

  5. carltongibson commented on Sep 20, 2017

    @carltongibson
    Collaborator

    #5309 sketches this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions