{"action":"created","issue":{"url":"https://api.github.com/repos/swagger-api/swagger-ui/issues/1623","labels_url":"https://api.github.com/repos/swagger-api/swagger-ui/issues/1623/labels{/name}","comments_url":"https://api.github.com/repos/swagger-api/swagger-ui/issues/1623/comments","events_url":"https://api.github.com/repos/swagger-api/swagger-ui/issues/1623/events","html_url":"https://github.com/swagger-api/swagger-ui/issues/1623","id":108166015,"number":1623,"title":"How to call Basic Authentication protected web services using Swagger UI","user":{"login":"rmahajan1234","id":13984262,"avatar_url":"https://avatars.githubusercontent.com/u/13984262?v=3","gravatar_id":"","url":"https://api.github.com/users/rmahajan1234","html_url":"https://github.com/rmahajan1234","followers_url":"https://api.github.com/users/rmahajan1234/followers","following_url":"https://api.github.com/users/rmahajan1234/following{/other_user}","gists_url":"https://api.github.com/users/rmahajan1234/gists{/gist_id}","starred_url":"https://api.github.com/users/rmahajan1234/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rmahajan1234/subscriptions","organizations_url":"https://api.github.com/users/rmahajan1234/orgs","repos_url":"https://api.github.com/users/rmahajan1234/repos","events_url":"https://api.github.com/users/rmahajan1234/events{/privacy}","received_events_url":"https://api.github.com/users/rmahajan1234/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2015-09-24T16:29:01Z","updated_at":"2015-09-24T17:36:38Z","closed_at":null,"body":"Hi\r\n\r\nThe web services in my project are protected using Spring Security which needs username and password. How do we configure Swagger so when we click on 'TryItOut', the curl command incorprates -u username/password in it?\r\n\r\nThanks\r\nRam"},"comment":{"url":"https://api.github.com/repos/swagger-api/swagger-ui/issues/comments/142998897","html_url":"https://github.com/swagger-api/swagger-ui/issues/1623#issuecomment-142998897","issue_url":"https://api.github.com/repos/swagger-api/swagger-ui/issues/1623","id":142998897,"user":{"login":"rmahajan1234","id":13984262,"avatar_url":"https://avatars.githubusercontent.com/u/13984262?v=3","gravatar_id":"","url":"https://api.github.com/users/rmahajan1234","html_url":"https://github.com/rmahajan1234","followers_url":"https://api.github.com/users/rmahajan1234/followers","following_url":"https://api.github.com/users/rmahajan1234/following{/other_user}","gists_url":"https://api.github.com/users/rmahajan1234/gists{/gist_id}","starred_url":"https://api.github.com/users/rmahajan1234/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rmahajan1234/subscriptions","organizations_url":"https://api.github.com/users/rmahajan1234/orgs","repos_url":"https://api.github.com/users/rmahajan1234/repos","events_url":"https://api.github.com/users/rmahajan1234/events{/privacy}","received_events_url":"https://api.github.com/users/rmahajan1234/received_events","type":"User","site_admin":false},"created_at":"2015-09-24T17:36:38Z","updated_at":"2015-09-24T17:36:38Z","body":"HTML code looks like this, It did not get attached in previous post:\r\n\r\n<form id='api_selector'>\r\n    <div class='input'><input placeholder=\"http://example.com/api\" id=\"input_baseUrl\" name=\"baseUrl\" type=\"text\"/></div>\r\n    <div class='input'><input placeholder=\"user\" id=\"input_user\" name=\"user\" type=\"text\" size=\"10\"/></div> \r\n    <div class='input'><input placeholder=\"pass\" id=\"input_pass\" name=\"pass\" type=\"password\" size=\"10\"/></div>\r\n</form>\r\n\r\n\r\nThanks"}}