{"action":"created","issue":{"url":"https://api.github.com/repos/jbogard/MediatR/issues/433","repository_url":"https://api.github.com/repos/jbogard/MediatR","labels_url":"https://api.github.com/repos/jbogard/MediatR/issues/433/labels{/name}","comments_url":"https://api.github.com/repos/jbogard/MediatR/issues/433/comments","events_url":"https://api.github.com/repos/jbogard/MediatR/issues/433/events","html_url":"https://github.com/jbogard/MediatR/issues/433","id":487421653,"node_id":"MDU6SXNzdWU0ODc0MjE2NTM=","number":433,"title":"Best practice for using the current user (jwt)","user":{"login":"zHaytam","id":34218324,"node_id":"MDQ6VXNlcjM0MjE4MzI0","avatar_url":"https://avatars3.githubusercontent.com/u/34218324?v=4","gravatar_id":"","url":"https://api.github.com/users/zHaytam","html_url":"https://github.com/zHaytam","followers_url":"https://api.github.com/users/zHaytam/followers","following_url":"https://api.github.com/users/zHaytam/following{/other_user}","gists_url":"https://api.github.com/users/zHaytam/gists{/gist_id}","starred_url":"https://api.github.com/users/zHaytam/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/zHaytam/subscriptions","organizations_url":"https://api.github.com/users/zHaytam/orgs","repos_url":"https://api.github.com/users/zHaytam/repos","events_url":"https://api.github.com/users/zHaytam/events{/privacy}","received_events_url":"https://api.github.com/users/zHaytam/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":9,"created_at":"2019-08-30T10:55:20Z","updated_at":"2019-12-10T22:13:45Z","closed_at":"2019-08-30T13:52:02Z","author_association":"NONE","body":"Hello,\r\n\r\nI'm considering using MediatR for the first time but I want to know what's the best way to access the current user (id)?\r\n\r\n- Have a request with all the needed infos + userId and a model without the userid and map between them, this creates duplicate stuff.\r\n- Have API users to always include the user id\r\n- Create a service that gets the user from the context and use that in the handlers\r\n\r\nAnyone has some real-world experience in this?  \r\nThank you!"},"comment":{"url":"https://api.github.com/repos/jbogard/MediatR/issues/comments/564283475","html_url":"https://github.com/jbogard/MediatR/issues/433#issuecomment-564283475","issue_url":"https://api.github.com/repos/jbogard/MediatR/issues/433","id":564283475,"node_id":"MDEyOklzc3VlQ29tbWVudDU2NDI4MzQ3NQ==","user":{"login":"PureKrome","id":899878,"node_id":"MDQ6VXNlcjg5OTg3OA==","avatar_url":"https://avatars1.githubusercontent.com/u/899878?v=4","gravatar_id":"","url":"https://api.github.com/users/PureKrome","html_url":"https://github.com/PureKrome","followers_url":"https://api.github.com/users/PureKrome/followers","following_url":"https://api.github.com/users/PureKrome/following{/other_user}","gists_url":"https://api.github.com/users/PureKrome/gists{/gist_id}","starred_url":"https://api.github.com/users/PureKrome/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/PureKrome/subscriptions","organizations_url":"https://api.github.com/users/PureKrome/orgs","repos_url":"https://api.github.com/users/PureKrome/repos","events_url":"https://api.github.com/users/PureKrome/events{/privacy}","received_events_url":"https://api.github.com/users/PureKrome/received_events","type":"User","site_admin":false},"created_at":"2019-12-10T22:13:45Z","updated_at":"2019-12-10T22:13:45Z","author_association":"NONE","body":"cheers!"}}
{"actor":{"display_login":"PureKrome"}}