{"action":"created","issue":{"url":"https://api.github.com/repos/thepirat000/Audit.NET/issues/134","repository_url":"https://api.github.com/repos/thepirat000/Audit.NET","labels_url":"https://api.github.com/repos/thepirat000/Audit.NET/issues/134/labels{/name}","comments_url":"https://api.github.com/repos/thepirat000/Audit.NET/issues/134/comments","events_url":"https://api.github.com/repos/thepirat000/Audit.NET/issues/134/events","html_url":"https://github.com/thepirat000/Audit.NET/issues/134","id":334662825,"node_id":"MDU6SXNzdWUzMzQ2NjI4MjU=","number":134,"title":"Environment.UserName returns DefaultAppPool","user":{"login":"rcheung9","id":34848405,"node_id":"MDQ6VXNlcjM0ODQ4NDA1","avatar_url":"https://avatars0.githubusercontent.com/u/34848405?v=4","gravatar_id":"","url":"https://api.github.com/users/rcheung9","html_url":"https://github.com/rcheung9","followers_url":"https://api.github.com/users/rcheung9/followers","following_url":"https://api.github.com/users/rcheung9/following{/other_user}","gists_url":"https://api.github.com/users/rcheung9/gists{/gist_id}","starred_url":"https://api.github.com/users/rcheung9/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rcheung9/subscriptions","organizations_url":"https://api.github.com/users/rcheung9/orgs","repos_url":"https://api.github.com/users/rcheung9/repos","events_url":"https://api.github.com/users/rcheung9/events{/privacy}","received_events_url":"https://api.github.com/users/rcheung9/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":3,"created_at":"2018-06-21T21:22:31Z","updated_at":"2018-07-01T17:15:12Z","closed_at":null,"author_association":"CONTRIBUTOR","body":"I'm using the `OnScopeSaving` to audit all updates to records.\r\n\r\nThe database context save is called from a WebAPI controller.  In the WebAPI controller, I get the username (Windows Authentication), but how can I pass that value to `OnScopeSaving`?\r\n\r\nThe `auditScope.Event.Environment.UserName` returns the username of the app pool running the IIS instance."},"comment":{"url":"https://api.github.com/repos/thepirat000/Audit.NET/issues/comments/401620065","html_url":"https://github.com/thepirat000/Audit.NET/issues/134#issuecomment-401620065","issue_url":"https://api.github.com/repos/thepirat000/Audit.NET/issues/134","id":401620065,"node_id":"MDEyOklzc3VlQ29tbWVudDQwMTYyMDA2NQ==","user":{"login":"thepirat000","id":9836380,"node_id":"MDQ6VXNlcjk4MzYzODA=","avatar_url":"https://avatars0.githubusercontent.com/u/9836380?v=4","gravatar_id":"","url":"https://api.github.com/users/thepirat000","html_url":"https://github.com/thepirat000","followers_url":"https://api.github.com/users/thepirat000/followers","following_url":"https://api.github.com/users/thepirat000/following{/other_user}","gists_url":"https://api.github.com/users/thepirat000/gists{/gist_id}","starred_url":"https://api.github.com/users/thepirat000/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/thepirat000/subscriptions","organizations_url":"https://api.github.com/users/thepirat000/orgs","repos_url":"https://api.github.com/users/thepirat000/repos","events_url":"https://api.github.com/users/thepirat000/events{/privacy}","received_events_url":"https://api.github.com/users/thepirat000/received_events","type":"User","site_admin":false},"created_at":"2018-07-01T17:15:12Z","updated_at":"2018-07-01T17:15:12Z","author_association":"OWNER","body":"Any update on this?"}}
{"actor":{"display_login":"thepirat000"}}