{"action":"created","issue":{"url":"https://api.github.com/repos/aspnetboilerplate/module-zero/issues/401","repository_url":"https://api.github.com/repos/aspnetboilerplate/module-zero","labels_url":"https://api.github.com/repos/aspnetboilerplate/module-zero/issues/401/labels{/name}","comments_url":"https://api.github.com/repos/aspnetboilerplate/module-zero/issues/401/comments","events_url":"https://api.github.com/repos/aspnetboilerplate/module-zero/issues/401/events","html_url":"https://github.com/aspnetboilerplate/module-zero/issues/401","id":241647600,"number":401,"title":"aspnetboilerplate - User Session in web api using token based authentication ","user":{"login":"Noushida","id":30041568,"avatar_url":"https://avatars2.githubusercontent.com/u/30041568?v=3","gravatar_id":"","url":"https://api.github.com/users/Noushida","html_url":"https://github.com/Noushida","followers_url":"https://api.github.com/users/Noushida/followers","following_url":"https://api.github.com/users/Noushida/following{/other_user}","gists_url":"https://api.github.com/users/Noushida/gists{/gist_id}","starred_url":"https://api.github.com/users/Noushida/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Noushida/subscriptions","organizations_url":"https://api.github.com/users/Noushida/orgs","repos_url":"https://api.github.com/users/Noushida/repos","events_url":"https://api.github.com/users/Noushida/events{/privacy}","received_events_url":"https://api.github.com/users/Noushida/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2017-07-10T09:11:57Z","updated_at":"2017-07-11T06:22:13Z","closed_at":null,"body":"In normal web api,   I am getting user info and ClaimsIdentity using custom authorization filter   by header authorization token,\r\n string token = filterContext.Request.Headers.GetValues(\"Authorization\").First();\r\n                    var accessToken = token.Replace(\"Bearer \", \"\");\r\n                    var userInfoClient = new UserInfoClient(new Uri(Constants.UserInfoEndpoint), accessToken);\r\n                    var userInfoResponse = await userInfoClient.GetAsync();\r\nThen I call    ClaimsIdentity cidentity = (ClaimsIdentity)claimsIdentity;\r\n                    var loginResult = await GetLoginResultAsync(email, \"123qwe\", \"xxx\", cidentity);\r\n                    CurrentUnitOfWork.SetTenantId(loginResult.Tenant.Id);\r\nI am getting tenant id and user id from loginresult. But session user is always null.\r\nHow Can I get current user as current session user?\r\nVisual studio 2015,.net frame work 4.7 and ABP version V2.1.3"},"comment":{"url":"https://api.github.com/repos/aspnetboilerplate/module-zero/issues/comments/314343657","html_url":"https://github.com/aspnetboilerplate/module-zero/issues/401#issuecomment-314343657","issue_url":"https://api.github.com/repos/aspnetboilerplate/module-zero/issues/401","id":314343657,"user":{"login":"ismcagdas","id":4133525,"avatar_url":"https://avatars2.githubusercontent.com/u/4133525?v=3","gravatar_id":"","url":"https://api.github.com/users/ismcagdas","html_url":"https://github.com/ismcagdas","followers_url":"https://api.github.com/users/ismcagdas/followers","following_url":"https://api.github.com/users/ismcagdas/following{/other_user}","gists_url":"https://api.github.com/users/ismcagdas/gists{/gist_id}","starred_url":"https://api.github.com/users/ismcagdas/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ismcagdas/subscriptions","organizations_url":"https://api.github.com/users/ismcagdas/orgs","repos_url":"https://api.github.com/users/ismcagdas/repos","events_url":"https://api.github.com/users/ismcagdas/events{/privacy}","received_events_url":"https://api.github.com/users/ismcagdas/received_events","type":"User","site_admin":false},"created_at":"2017-07-11T06:22:13Z","updated_at":"2017-07-11T06:22:13Z","body":"Have you tried injecting AbpSession and use it's properties ?"}}
{"actor":{"display_login":"ismcagdas"}}