{"action":"created","issue":{"url":"https://api.github.com/repos/NancyFx/Nancy/issues/2641","repository_url":"https://api.github.com/repos/NancyFx/Nancy","labels_url":"https://api.github.com/repos/NancyFx/Nancy/issues/2641/labels{/name}","comments_url":"https://api.github.com/repos/NancyFx/Nancy/issues/2641/comments","events_url":"https://api.github.com/repos/NancyFx/Nancy/issues/2641/events","html_url":"https://github.com/NancyFx/Nancy/issues/2641","id":192177234,"number":2641,"title":"HTTP Basic auth doesn't work with XSP","user":{"login":"0xFireball","id":15932100,"avatar_url":"https://avatars.githubusercontent.com/u/15932100?v=3","gravatar_id":"","url":"https://api.github.com/users/0xFireball","html_url":"https://github.com/0xFireball","followers_url":"https://api.github.com/users/0xFireball/followers","following_url":"https://api.github.com/users/0xFireball/following{/other_user}","gists_url":"https://api.github.com/users/0xFireball/gists{/gist_id}","starred_url":"https://api.github.com/users/0xFireball/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/0xFireball/subscriptions","organizations_url":"https://api.github.com/users/0xFireball/orgs","repos_url":"https://api.github.com/users/0xFireball/repos","events_url":"https://api.github.com/users/0xFireball/events{/privacy}","received_events_url":"https://api.github.com/users/0xFireball/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2016-11-29T03:13:15Z","updated_at":"2016-11-29T07:12:56Z","closed_at":"2016-11-29T06:45:53Z","body":"### Prerequisites\r\n\r\n- [x] I have written a descriptive issue title\r\n- [x] I have verified that I am running the latest version of Nancy\r\n- [x] I have verified if the problem exist in both `DEBUG` and `RELEASE` mode\r\n- [x] I have searched [open](https://github.com/NancyFx/Nancy/issues) and [closed](https://github.com/NancyFx/Nancy/issues?q=is%3Aissue+is%3Aclosed) issues to ensure it has not already been reported\r\n\r\n### Description\r\n<!-- A description of the bug or feature -->\r\n`this.RequiresAuthentication()` redirects to: `http://127.0.0.1:8080/login.aspx?ReturnUrl=%2f`instead\r\nof using HTTP basic auth, like it does on IIS Express on Windows. This issue only happens on XSP.\r\n\r\n### Steps to Reproduce\r\n<!-- List of steps, sample code, failing test or link to a project that reproduces the behavior -->\r\nEven the `Nancy.Demo.Authentication.Basic` sample has this issue on XSP.\r\n\r\n### System Configuration\r\n<!-- Tell us about the environment where you are experiencing the bug -->\r\nUbuntu 16.04, XSP web server using Nancy.Hosting.Aspnet\r\nEverything else is working fine.\r\nIt works 100% OK on IIS on windows.\r\n\r\n- Nancy version: `2.0.0-barneyrubble`\r\n- Nancy host: ASP.NET (XSP is the actual server that causes an issue)\r\n- Other Nancy packages and versions: `Nancy.Authentication.Basic`\r\n- Environment (Operating system, version and so on): Ubuntu 16.04\r\n- .NET Framework version: .NET 4.6\r\n- Additional information:\r\n\r\n<!-- Thanks for reporting the issue to Nancy! -->\r\n"},"comment":{"url":"https://api.github.com/repos/NancyFx/Nancy/issues/comments/263494195","html_url":"https://github.com/NancyFx/Nancy/issues/2641#issuecomment-263494195","issue_url":"https://api.github.com/repos/NancyFx/Nancy/issues/2641","id":263494195,"user":{"login":"0xFireball","id":15932100,"avatar_url":"https://avatars.githubusercontent.com/u/15932100?v=3","gravatar_id":"","url":"https://api.github.com/users/0xFireball","html_url":"https://github.com/0xFireball","followers_url":"https://api.github.com/users/0xFireball/followers","following_url":"https://api.github.com/users/0xFireball/following{/other_user}","gists_url":"https://api.github.com/users/0xFireball/gists{/gist_id}","starred_url":"https://api.github.com/users/0xFireball/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/0xFireball/subscriptions","organizations_url":"https://api.github.com/users/0xFireball/orgs","repos_url":"https://api.github.com/users/0xFireball/repos","events_url":"https://api.github.com/users/0xFireball/events{/privacy}","received_events_url":"https://api.github.com/users/0xFireball/received_events","type":"User","site_admin":false},"created_at":"2016-11-29T07:12:56Z","updated_at":"2016-11-29T07:12:56Z","body":"Any idea how I could fix this specifically? The app in question is very simple/"}}
{"actor":{"display_login":"0xFireball"}}