{"action":"opened","issue":{"url":"https://api.github.com/repos/swagger-api/swagger-codegen/issues/1158","labels_url":"https://api.github.com/repos/swagger-api/swagger-codegen/issues/1158/labels{/name}","comments_url":"https://api.github.com/repos/swagger-api/swagger-codegen/issues/1158/comments","events_url":"https://api.github.com/repos/swagger-api/swagger-codegen/issues/1158/events","html_url":"https://github.com/swagger-api/swagger-codegen/issues/1158","id":104010629,"number":1158,"title":"basic authentication not listed in generated static HTML","user":{"login":"arnested","id":190005,"avatar_url":"https://avatars.githubusercontent.com/u/190005?v=3","gravatar_id":"","url":"https://api.github.com/users/arnested","html_url":"https://github.com/arnested","followers_url":"https://api.github.com/users/arnested/followers","following_url":"https://api.github.com/users/arnested/following{/other_user}","gists_url":"https://api.github.com/users/arnested/gists{/gist_id}","starred_url":"https://api.github.com/users/arnested/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/arnested/subscriptions","organizations_url":"https://api.github.com/users/arnested/orgs","repos_url":"https://api.github.com/users/arnested/repos","events_url":"https://api.github.com/users/arnested/events{/privacy}","received_events_url":"https://api.github.com/users/arnested/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-08-31T08:35:32Z","updated_at":"2015-08-31T08:35:32Z","closed_at":null,"body":"If I generate static HTML from the \"basic-auth.yaml\" example with:\r\n```sh\r\njava -jar ./swagger-codegen/modules/swagger-codegen-cli/target/swagger-codegen-cli.jar generate -i basic-auth.yaml -o ~/docs\r\n```\r\nThe generated HTML will have a \"Access\" heading but no security definitions will be listed under it and no security requirement will be listed under the path item either.\r\n\r\nbasic-auth.yaml:\r\n```yaml\r\n---\r\nswagger: '2.0'\r\ninfo:\r\n  version: \"1.0.0\"\r\n  title: Basic Auth Example\r\n  description: |\r\n    An example for how to use Basic Auth with Swagger.\r\n    Server code is available [here](https://github.com/mohsen1/basic-auth-server). It's running on Heroku.\r\n\r\n    **User Name and Password**\r\n    * User Name: `user`\r\n    * Password: `pass`\r\nhost: basic-auth-server.herokuapp.com\r\nschemes:\r\n  - http\r\n  - https\r\nsecurityDefinitions:\r\n  basicAuth:\r\n    type: basic\r\n    description: HTTP Basic Authentication. Works over `HTTP` and `HTTPS`\r\npaths:\r\n  /:\r\n    get:\r\n      security:\r\n       - basicAuth: []\r\n      responses:\r\n        200:\r\n          description:  Will send `Authenticated` if authentication is succesful, otherwise it will send `Unauthorized`\r\n```"}}