{"action":"closed","issue":{"url":"https://api.github.com/repos/marcgibbons/django-rest-swagger/issues/535","repository_url":"https://api.github.com/repos/marcgibbons/django-rest-swagger","labels_url":"https://api.github.com/repos/marcgibbons/django-rest-swagger/issues/535/labels{/name}","comments_url":"https://api.github.com/repos/marcgibbons/django-rest-swagger/issues/535/comments","events_url":"https://api.github.com/repos/marcgibbons/django-rest-swagger/issues/535/events","html_url":"https://github.com/marcgibbons/django-rest-swagger/issues/535","id":172731664,"number":535,"title":"How to use the new version (2+) with TokenAuthentication?","user":{"login":"duduklein","id":2512289,"avatar_url":"https://avatars.githubusercontent.com/u/2512289?v=3","gravatar_id":"","url":"https://api.github.com/users/duduklein","html_url":"https://github.com/duduklein","followers_url":"https://api.github.com/users/duduklein/followers","following_url":"https://api.github.com/users/duduklein/following{/other_user}","gists_url":"https://api.github.com/users/duduklein/gists{/gist_id}","starred_url":"https://api.github.com/users/duduklein/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/duduklein/subscriptions","organizations_url":"https://api.github.com/users/duduklein/orgs","repos_url":"https://api.github.com/users/duduklein/repos","events_url":"https://api.github.com/users/duduklein/events{/privacy}","received_events_url":"https://api.github.com/users/duduklein/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":15,"created_at":"2016-08-23T15:31:56Z","updated_at":"2016-09-22T13:29:40Z","closed_at":"2016-09-22T13:29:40Z","body":"As far as I understand, the way to include the TokenAuthentication is use the SECURITY_DEFINITIONS settings.\r\n\r\nIn the [OpenAPI Docs](https://github.com/OAI/OpenAPI-Specification/blob/master/versions/2.0.md#security-definitions-object), in the \"api_key\" type, there are 3 keys: \"type\", \"name\", \"in\".\r\n\r\nI guess that \"in\" should be \"header\", name \"Authorization\" and type should be left \"apiKey\". Where should I put the value \"Token MYTOKEN\"?\r\n\r\nThis ticket may be related to #497 , but I'm not sure.\r\n\r\nThanks in advance"}}
{"actor":{"display_login":"marcgibbons"}}