{"action":"opened","issue":{"url":"https://api.github.com/repos/aspnet/SignalR/issues/3018","repository_url":"https://api.github.com/repos/aspnet/SignalR","labels_url":"https://api.github.com/repos/aspnet/SignalR/issues/3018/labels{/name}","comments_url":"https://api.github.com/repos/aspnet/SignalR/issues/3018/comments","events_url":"https://api.github.com/repos/aspnet/SignalR/issues/3018/events","html_url":"https://github.com/aspnet/SignalR/issues/3018","id":364348510,"node_id":"MDU6SXNzdWUzNjQzNDg1MTA=","number":3018,"title":"ASP.NET Core SignalR Authentication on .net WPF returns -  401 (Unauthorized)","user":{"login":"generalpaul","id":7860375,"node_id":"MDQ6VXNlcjc4NjAzNzU=","avatar_url":"https://avatars3.githubusercontent.com/u/7860375?v=4","gravatar_id":"","url":"https://api.github.com/users/generalpaul","html_url":"https://github.com/generalpaul","followers_url":"https://api.github.com/users/generalpaul/followers","following_url":"https://api.github.com/users/generalpaul/following{/other_user}","gists_url":"https://api.github.com/users/generalpaul/gists{/gist_id}","starred_url":"https://api.github.com/users/generalpaul/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/generalpaul/subscriptions","organizations_url":"https://api.github.com/users/generalpaul/orgs","repos_url":"https://api.github.com/users/generalpaul/repos","events_url":"https://api.github.com/users/generalpaul/events{/privacy}","received_events_url":"https://api.github.com/users/generalpaul/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-09-27T07:56:32Z","updated_at":"2018-09-27T07:56:32Z","closed_at":null,"author_association":"NONE","body":"I am trying to connecting the server using JWT authentication. I downloaded your sample \r\nDocs/aspnetcore/signalr/authn-and-authz/sample and works fine. \r\n\r\nHowever when connecting on .net client, it throws after the .StartAsync():\r\n**Response status code does not indicate success: 401 (Unauthorized).**\r\n\r\nI did this.\r\n options.AccessTokenProvider = async () =>\r\n                          {\r\n                                httpResponse = await new HttpClient().PostAsync(\"host with token\", null);\r\n                                httpResponse.EnsureSuccessStatusCode();\r\n                                return await httpResponse.Content.ReadAsStringAsync();\r\n                          };\r\n\r\nthe server validates the user and password. and passes ok on JwtSecurityTokenHandler.\r\nbut on hubs/chat/negotiate it returns the 401 (Unauthorized).\r\n\r\nwhat i found out is it does not enter on the options.TokenValidationParameters part on jwtbearer.\r\n\r\n\r\n"}}
{"actor":{"display_login":"generalpaul"}}