Skip to content
This repository has been archived by the owner on Jan 11, 2021. It is now read-only.

Authorizations Object #415

Closed
davidrenne opened this issue Mar 1, 2016 · 1 comment
Closed

Authorizations Object #415

davidrenne opened this issue Mar 1, 2016 · 1 comment

Comments

@davidrenne
Copy link
Contributor

https://github.com/OAI/OpenAPI-Specification/blob/master/versions/1.2.md#514-authorizations-object

Any ideas on how I can change the code base to support this?

Ideally somehow I could express certain methods in my YAML which do not need authentication. Such as methods which are to create new authTokens.

Any ideas on where in the code I can play with this to add this and how I might design this to add new keys to YAML would be appreciated.

It would add value to my project because I use restunited.com and when I import my DRF swagger doc url into their system, I always have to manually create the authentication record and assign to all my methods and then remove the authentication association for my authTokenCreate method.

@marcgibbons
Copy link
Owner

This can now be achieved in v2 by configuring the securityDefinitions setting.
http://marcgibbons.github.io/django-rest-swagger/settings/#authentication

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants