{"action":"created","issue":{"url":"https://api.github.com/repos/domaindrivendev/Swashbuckle.AspNetCore/issues/1425","repository_url":"https://api.github.com/repos/domaindrivendev/Swashbuckle.AspNetCore","labels_url":"https://api.github.com/repos/domaindrivendev/Swashbuckle.AspNetCore/issues/1425/labels{/name}","comments_url":"https://api.github.com/repos/domaindrivendev/Swashbuckle.AspNetCore/issues/1425/comments","events_url":"https://api.github.com/repos/domaindrivendev/Swashbuckle.AspNetCore/issues/1425/events","html_url":"https://github.com/domaindrivendev/Swashbuckle.AspNetCore/issues/1425","id":539793495,"node_id":"MDU6SXNzdWU1Mzk3OTM0OTU=","number":1425,"title":"Authorization Header not being sent from Swagger UI 5.0.0-rc5","user":{"login":"VictorioBerra","id":2934507,"node_id":"MDQ6VXNlcjI5MzQ1MDc=","avatar_url":"https://avatars0.githubusercontent.com/u/2934507?v=4","gravatar_id":"","url":"https://api.github.com/users/VictorioBerra","html_url":"https://github.com/VictorioBerra","followers_url":"https://api.github.com/users/VictorioBerra/followers","following_url":"https://api.github.com/users/VictorioBerra/following{/other_user}","gists_url":"https://api.github.com/users/VictorioBerra/gists{/gist_id}","starred_url":"https://api.github.com/users/VictorioBerra/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/VictorioBerra/subscriptions","organizations_url":"https://api.github.com/users/VictorioBerra/orgs","repos_url":"https://api.github.com/users/VictorioBerra/repos","events_url":"https://api.github.com/users/VictorioBerra/events{/privacy}","received_events_url":"https://api.github.com/users/VictorioBerra/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2019-12-18T16:39:42Z","updated_at":"2019-12-28T22:46:20Z","closed_at":null,"author_association":"CONTRIBUTOR","body":"Tried both the following solutions:\r\n\r\n## https://github.com/domaindrivendev/Swashbuckle.AspNetCore/issues/1022\r\n\r\n```csharp\r\n                    options.AddSecurityDefinition(\"basicAuth\", new OpenApiSecurityScheme\r\n                    {\r\n                        Type = SecuritySchemeType.Http,\r\n                        Scheme = \"Basic\", // tried lowercase \"basic\" too.\r\n                        Description = \"Input your username and password to access this API\",\r\n                        In = ParameterLocation.Header,\r\n                    });\r\n\r\n                    options.AddSecurityRequirement(new OpenApiSecurityRequirement\r\n                    {\r\n                        {\r\n                            new OpenApiSecurityScheme\r\n                            {\r\n                                Reference = new OpenApiReference {\r\n                                    Type = ReferenceType.SecurityScheme,\r\n                                    Id = \"basicAuth\" }\r\n                            }, new List<string>() }\r\n                    });\r\n```\r\n\r\n## https://github.com/domaindrivendev/Swashbuckle.AspNetCore/issues/1171\r\n\r\n```csharp\r\n                    options.AddSecurityDefinition(\"Bearer\", new OpenApiSecurityScheme\r\n                    {\r\n                        Description = \"JWT Authorization header using the Bearer scheme.\",\r\n                        Name = \"Authorization\",\r\n                        In = ParameterLocation.Header,\r\n                        Scheme = \"bearer\",\r\n                        Type = SecuritySchemeType.Http,\r\n                        BearerFormat = \"JWT\"\r\n                    });\r\n\r\n                    options.AddSecurityRequirement(new OpenApiSecurityRequirement\r\n                    {\r\n                        {\r\n                            new OpenApiSecurityScheme\r\n                            {\r\n                                Reference = new OpenApiReference { Type = ReferenceType.SecurityScheme, Id = \"Bearer\" }\r\n                            },\r\n                            new List<string>()\r\n                        }\r\n                    });\r\n```\r\n\r\nI need basic auth, and I am willing to settle for making the user put the encoded final header in. Ideally, they would be prompted for a username and password and that could automatically be encoded."},"comment":{"url":"https://api.github.com/repos/domaindrivendev/Swashbuckle.AspNetCore/issues/comments/569456918","html_url":"https://github.com/domaindrivendev/Swashbuckle.AspNetCore/issues/1425#issuecomment-569456918","issue_url":"https://api.github.com/repos/domaindrivendev/Swashbuckle.AspNetCore/issues/1425","id":569456918,"node_id":"MDEyOklzc3VlQ29tbWVudDU2OTQ1NjkxOA==","user":{"login":"VictorioBerra","id":2934507,"node_id":"MDQ6VXNlcjI5MzQ1MDc=","avatar_url":"https://avatars0.githubusercontent.com/u/2934507?v=4","gravatar_id":"","url":"https://api.github.com/users/VictorioBerra","html_url":"https://github.com/VictorioBerra","followers_url":"https://api.github.com/users/VictorioBerra/followers","following_url":"https://api.github.com/users/VictorioBerra/following{/other_user}","gists_url":"https://api.github.com/users/VictorioBerra/gists{/gist_id}","starred_url":"https://api.github.com/users/VictorioBerra/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/VictorioBerra/subscriptions","organizations_url":"https://api.github.com/users/VictorioBerra/orgs","repos_url":"https://api.github.com/users/VictorioBerra/repos","events_url":"https://api.github.com/users/VictorioBerra/events{/privacy}","received_events_url":"https://api.github.com/users/VictorioBerra/received_events","type":"User","site_admin":false},"created_at":"2019-12-28T22:46:20Z","updated_at":"2019-12-28T22:46:20Z","author_association":"CONTRIBUTOR","body":"@gorkemyontem at this point I'm thinking that's not going to happen without a PR."}}
{"actor":{"display_login":"VictorioBerra"}}