{"action":"created","issue":{"url":"https://api.github.com/repos/aspnet/Security/issues/1545","repository_url":"https://api.github.com/repos/aspnet/Security","labels_url":"https://api.github.com/repos/aspnet/Security/issues/1545/labels{/name}","comments_url":"https://api.github.com/repos/aspnet/Security/issues/1545/comments","events_url":"https://api.github.com/repos/aspnet/Security/issues/1545/events","html_url":"https://github.com/aspnet/Security/issues/1545","id":275193887,"number":1545,"title":"How do I add a custom claim value to be part of cookie ?","user":{"login":"kuseku","id":4634661,"avatar_url":"https://avatars2.githubusercontent.com/u/4634661?v=4","gravatar_id":"","url":"https://api.github.com/users/kuseku","html_url":"https://github.com/kuseku","followers_url":"https://api.github.com/users/kuseku/followers","following_url":"https://api.github.com/users/kuseku/following{/other_user}","gists_url":"https://api.github.com/users/kuseku/gists{/gist_id}","starred_url":"https://api.github.com/users/kuseku/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kuseku/subscriptions","organizations_url":"https://api.github.com/users/kuseku/orgs","repos_url":"https://api.github.com/users/kuseku/repos","events_url":"https://api.github.com/users/kuseku/events{/privacy}","received_events_url":"https://api.github.com/users/kuseku/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2017-11-19T21:24:45Z","updated_at":"2017-11-19T23:30:49Z","closed_at":null,"author_association":"NONE","body":"I am using **Microsoft.AspNetCore.Authentication.MicrosoftAccount** and it works great. Question I have is as a part of Cookie values I would like to add some values from the database regarding user. This is to avoid querying DB every-time page loads. In earlier versions I would keep the redirect URL to a Action method and perform this operation. I dint see any examples of how I can do this in ASP.NET 2.0 when using Microsoft Account. "},"comment":{"url":"https://api.github.com/repos/aspnet/Security/issues/comments/345559540","html_url":"https://github.com/aspnet/Security/issues/1545#issuecomment-345559540","issue_url":"https://api.github.com/repos/aspnet/Security/issues/1545","id":345559540,"user":{"login":"Tratcher","id":1821173,"avatar_url":"https://avatars3.githubusercontent.com/u/1821173?v=4","gravatar_id":"","url":"https://api.github.com/users/Tratcher","html_url":"https://github.com/Tratcher","followers_url":"https://api.github.com/users/Tratcher/followers","following_url":"https://api.github.com/users/Tratcher/following{/other_user}","gists_url":"https://api.github.com/users/Tratcher/gists{/gist_id}","starred_url":"https://api.github.com/users/Tratcher/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Tratcher/subscriptions","organizations_url":"https://api.github.com/users/Tratcher/orgs","repos_url":"https://api.github.com/users/Tratcher/repos","events_url":"https://api.github.com/users/Tratcher/events{/privacy}","received_events_url":"https://api.github.com/users/Tratcher/received_events","type":"User","site_admin":false},"created_at":"2017-11-19T23:30:49Z","updated_at":"2017-11-19T23:30:49Z","author_association":"MEMBER","body":"You can do this in the OnTicketReceived event.\r\nhttps://github.com/aspnet/Security/blob/34083584a6593b636ed507c1b8e50570197ec2ad/src/Microsoft.AspNetCore.Authentication/Events/RemoteAuthenticationEvents.cs#L13\r\nSee this for hooking events:\r\nhttps://github.com/aspnet/Security/blob/34083584a6593b636ed507c1b8e50570197ec2ad/samples/SocialSample/Startup.cs#L153"}}
{"actor":{"display_login":"Tratcher"}}