{"action":"created","issue":{"url":"https://api.github.com/repos/aspnet/Home/issues/2881","repository_url":"https://api.github.com/repos/aspnet/Home","labels_url":"https://api.github.com/repos/aspnet/Home/issues/2881/labels{/name}","comments_url":"https://api.github.com/repos/aspnet/Home/issues/2881/comments","events_url":"https://api.github.com/repos/aspnet/Home/issues/2881/events","html_url":"https://github.com/aspnet/Home/issues/2881","id":297780714,"number":2881,"title":".NET Core WebSockets - Token Authorization","user":{"login":"FabioMorcillo","id":10965812,"avatar_url":"https://avatars1.githubusercontent.com/u/10965812?v=4","gravatar_id":"","url":"https://api.github.com/users/FabioMorcillo","html_url":"https://github.com/FabioMorcillo","followers_url":"https://api.github.com/users/FabioMorcillo/followers","following_url":"https://api.github.com/users/FabioMorcillo/following{/other_user}","gists_url":"https://api.github.com/users/FabioMorcillo/gists{/gist_id}","starred_url":"https://api.github.com/users/FabioMorcillo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/FabioMorcillo/subscriptions","organizations_url":"https://api.github.com/users/FabioMorcillo/orgs","repos_url":"https://api.github.com/users/FabioMorcillo/repos","events_url":"https://api.github.com/users/FabioMorcillo/events{/privacy}","received_events_url":"https://api.github.com/users/FabioMorcillo/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-02-16T13:13:07Z","updated_at":"2018-02-16T16:50:03Z","closed_at":null,"author_association":"NONE","body":"Hi,\r\n\r\n.NET Core WebSockets support token jwt authentication ? Have example to configure ?\r\n\r\nThank you,"},"comment":{"url":"https://api.github.com/repos/aspnet/Home/issues/comments/366291618","html_url":"https://github.com/aspnet/Home/issues/2881#issuecomment-366291618","issue_url":"https://api.github.com/repos/aspnet/Home/issues/2881","id":366291618,"user":{"login":"Tratcher","id":1821173,"avatar_url":"https://avatars3.githubusercontent.com/u/1821173?v=4","gravatar_id":"","url":"https://api.github.com/users/Tratcher","html_url":"https://github.com/Tratcher","followers_url":"https://api.github.com/users/Tratcher/followers","following_url":"https://api.github.com/users/Tratcher/following{/other_user}","gists_url":"https://api.github.com/users/Tratcher/gists{/gist_id}","starred_url":"https://api.github.com/users/Tratcher/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Tratcher/subscriptions","organizations_url":"https://api.github.com/users/Tratcher/orgs","repos_url":"https://api.github.com/users/Tratcher/repos","events_url":"https://api.github.com/users/Tratcher/events{/privacy}","received_events_url":"https://api.github.com/users/Tratcher/received_events","type":"User","site_admin":false},"created_at":"2018-02-16T16:50:03Z","updated_at":"2018-02-16T16:50:03Z","author_association":"MEMBER","body":"Yes, you can use bearer token auth with WebSocket requests. Are you asking for client or server code samples? On the server you configure JwtBearer normally. See\r\nhttps://github.com/aspnet/Security/blob/5de25bb11cfb2bf60d05ea2be36e80d86b38d18b/samples/JwtBearerSample/Startup.cs#L47-L53\r\nhttps://github.com/aspnet/Security/blob/5de25bb11cfb2bf60d05ea2be36e80d86b38d18b/samples/JwtBearerSample/Startup.cs#L64\r\n\r\nWhere would you be consuming the WebSocket? In an MVC controller? In that case you want to add the `[Authorize]` attribute."}}
{"actor":{"display_login":"Tratcher"}}