{"action":"created","issue":{"url":"https://api.github.com/repos/aspnet/SignalR/issues/1503","repository_url":"https://api.github.com/repos/aspnet/SignalR","labels_url":"https://api.github.com/repos/aspnet/SignalR/issues/1503/labels{/name}","comments_url":"https://api.github.com/repos/aspnet/SignalR/issues/1503/comments","events_url":"https://api.github.com/repos/aspnet/SignalR/issues/1503/events","html_url":"https://github.com/aspnet/SignalR/issues/1503","id":300771882,"number":1503,"title":"How to access context outside of hub?","user":{"login":"racamp101","id":5873839,"avatar_url":"https://avatars3.githubusercontent.com/u/5873839?v=4","gravatar_id":"","url":"https://api.github.com/users/racamp101","html_url":"https://github.com/racamp101","followers_url":"https://api.github.com/users/racamp101/followers","following_url":"https://api.github.com/users/racamp101/following{/other_user}","gists_url":"https://api.github.com/users/racamp101/gists{/gist_id}","starred_url":"https://api.github.com/users/racamp101/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/racamp101/subscriptions","organizations_url":"https://api.github.com/users/racamp101/orgs","repos_url":"https://api.github.com/users/racamp101/repos","events_url":"https://api.github.com/users/racamp101/events{/privacy}","received_events_url":"https://api.github.com/users/racamp101/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":3,"created_at":"2018-02-27T19:58:52Z","updated_at":"2018-03-01T07:55:05Z","closed_at":null,"author_association":"NONE","body":"I need to access the user outside the hub. I can user Context inside the hub just fine but if I try to use IHttpContextAccessor from a class the user is no longer available. Is there another way to get the correct context?\r\n\r\nI see posts about injecting IHubContext<hubname> but I cant access it this way I just need the context.user and using that would cause a circular ref."},"comment":{"url":"https://api.github.com/repos/aspnet/SignalR/issues/comments/369506704","html_url":"https://github.com/aspnet/SignalR/issues/1503#issuecomment-369506704","issue_url":"https://api.github.com/repos/aspnet/SignalR/issues/1503","id":369506704,"user":{"login":"racamp101","id":5873839,"avatar_url":"https://avatars3.githubusercontent.com/u/5873839?v=4","gravatar_id":"","url":"https://api.github.com/users/racamp101","html_url":"https://github.com/racamp101","followers_url":"https://api.github.com/users/racamp101/followers","following_url":"https://api.github.com/users/racamp101/following{/other_user}","gists_url":"https://api.github.com/users/racamp101/gists{/gist_id}","starred_url":"https://api.github.com/users/racamp101/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/racamp101/subscriptions","organizations_url":"https://api.github.com/users/racamp101/orgs","repos_url":"https://api.github.com/users/racamp101/repos","events_url":"https://api.github.com/users/racamp101/events{/privacy}","received_events_url":"https://api.github.com/users/racamp101/received_events","type":"User","site_admin":false},"created_at":"2018-03-01T07:55:05Z","updated_at":"2018-03-01T07:55:05Z","author_association":"NONE","body":"that HttpContext.Authentication.AuthenticateAsync is async saying that sometimes I'm able to access the user is it possible its not finishing sometimes before the method I'm trying to access it in runs?\r\n\r\nIm trying to access it in a class that is injected into my hubs constructor."}}
{"actor":{"display_login":"racamp101"}}