{"id":47,"date":"2020-03-09T15:34:48","date_gmt":"2020-03-09T15:34:48","guid":{"rendered":"https:\/\/aabirtech.com\/shiblenomanblog\/?p=47"},"modified":"2020-11-09T08:35:09","modified_gmt":"2020-11-09T08:35:09","slug":"get-logged-in-user-name-in-core-3-0","status":"publish","type":"post","link":"https:\/\/aabirtech.com\/shiblenomanblog\/2020\/03\/09\/get-logged-in-user-name-in-core-3-0\/","title":{"rendered":"Get logged in user name in Core 3.0"},"content":{"rendered":"\n<p>To get current logged in user from Identity 2 in .net core 3.0 and 3.1, use the following code. <\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>User.FindFirst(ClaimTypes.Name).Value<\/code><\/pre>\n\n\n\n<p>Happy Coding \ud83d\ude42<\/p>\n\n\n\n<p><\/p>\n","protected":false},"excerpt":{"rendered":"<p>To get current logged in user from Identity 2 in .net core 3.0 and 3.1, use the following code. Happy Coding \ud83d\ude42<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[4,5],"tags":[],"class_list":["post-47","post","type-post","status-publish","format-standard","hentry","category-asp-net-core","category-identity"],"acf":[],"_links":{"self":[{"href":"https:\/\/aabirtech.com\/shiblenomanblog\/wp-json\/wp\/v2\/posts\/47","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/aabirtech.com\/shiblenomanblog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/aabirtech.com\/shiblenomanblog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/aabirtech.com\/shiblenomanblog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/aabirtech.com\/shiblenomanblog\/wp-json\/wp\/v2\/comments?post=47"}],"version-history":[{"count":2,"href":"https:\/\/aabirtech.com\/shiblenomanblog\/wp-json\/wp\/v2\/posts\/47\/revisions"}],"predecessor-version":[{"id":49,"href":"https:\/\/aabirtech.com\/shiblenomanblog\/wp-json\/wp\/v2\/posts\/47\/revisions\/49"}],"wp:attachment":[{"href":"https:\/\/aabirtech.com\/shiblenomanblog\/wp-json\/wp\/v2\/media?parent=47"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/aabirtech.com\/shiblenomanblog\/wp-json\/wp\/v2\/categories?post=47"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/aabirtech.com\/shiblenomanblog\/wp-json\/wp\/v2\/tags?post=47"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}