{"action":"closed","issue":{"url":"https://api.github.com/repos/aspnet/Security/issues/383","labels_url":"https://api.github.com/repos/aspnet/Security/issues/383/labels{/name}","comments_url":"https://api.github.com/repos/aspnet/Security/issues/383/comments","events_url":"https://api.github.com/repos/aspnet/Security/issues/383/events","html_url":"https://github.com/aspnet/Security/issues/383","id":98427763,"number":383,"title":"How to access DBContext from CookieAuthenticationNotifications","user":{"login":"danroth27","id":1874516,"avatar_url":"https://avatars.githubusercontent.com/u/1874516?v=3","gravatar_id":"","url":"https://api.github.com/users/danroth27","html_url":"https://github.com/danroth27","followers_url":"https://api.github.com/users/danroth27/followers","following_url":"https://api.github.com/users/danroth27/following{/other_user}","gists_url":"https://api.github.com/users/danroth27/gists{/gist_id}","starred_url":"https://api.github.com/users/danroth27/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/danroth27/subscriptions","organizations_url":"https://api.github.com/users/danroth27/orgs","repos_url":"https://api.github.com/users/danroth27/repos","events_url":"https://api.github.com/users/danroth27/events{/privacy}","received_events_url":"https://api.github.com/users/danroth27/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-07-31T16:44:23Z","updated_at":"2015-08-06T20:50:02Z","closed_at":"2015-08-06T20:50:02Z","body":"Originally posted as https://github.com/aspnet/Mvc/issues/2892 by @ponsaravanan\r\n\r\nI am trying to access db context from  CookieAuthenticationNotifications.OnValidatePrincipal for populating some properties from db. But couldn't access it. \r\n\r\nSearched for online documents on how to do the same. But no luck so far. \r\n\r\nMVC6, Beta5. I am using.\r\n\r\nAny inputs to guide me will be greatly appreciated."}}