{"action":"reopened","issue":{"url":"https://api.github.com/repos/aspnet/Scaffolding/issues/839","repository_url":"https://api.github.com/repos/aspnet/Scaffolding","labels_url":"https://api.github.com/repos/aspnet/Scaffolding/issues/839/labels{/name}","comments_url":"https://api.github.com/repos/aspnet/Scaffolding/issues/839/comments","events_url":"https://api.github.com/repos/aspnet/Scaffolding/issues/839/events","html_url":"https://github.com/aspnet/Scaffolding/issues/839","id":342831965,"node_id":"MDU6SXNzdWUzNDI4MzE5NjU=","number":839,"title":"Scaffold Identity omits custom ApplicationUser","user":{"login":"blowdart","id":796298,"node_id":"MDQ6VXNlcjc5NjI5OA==","avatar_url":"https://avatars2.githubusercontent.com/u/796298?v=4","gravatar_id":"","url":"https://api.github.com/users/blowdart","html_url":"https://github.com/blowdart","followers_url":"https://api.github.com/users/blowdart/followers","following_url":"https://api.github.com/users/blowdart/following{/other_user}","gists_url":"https://api.github.com/users/blowdart/gists{/gist_id}","starred_url":"https://api.github.com/users/blowdart/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/blowdart/subscriptions","organizations_url":"https://api.github.com/users/blowdart/orgs","repos_url":"https://api.github.com/users/blowdart/repos","events_url":"https://api.github.com/users/blowdart/events{/privacy}","received_events_url":"https://api.github.com/users/blowdart/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":3,"created_at":"2018-07-19T18:02:49Z","updated_at":"2018-07-19T19:42:32Z","closed_at":null,"author_association":"MEMBER","body":"_From @Ponant on July 19, 2018 15:25_\n\n**Works**\r\n1) New project 2.1 MVC with no auth\r\n2) Scaffold identity and choose the plus button for the user class\r\n\r\n![scaffoldidentity21](https://user-images.githubusercontent.com/19961806/42952012-cef98632-8b77-11e8-9c61-219423f81672.PNG)\r\n\r\nThe resulting code is expected because it refers to `ApplicationUser`\r\n\r\n`    public class ApplicationDbContext : IdentityDbContext<ApplicationUser>\r\n`\r\n`                services.AddDefaultIdentity<ApplicationUser>()\r\n`\r\n\r\n**Does not work**\r\n1) New project 2.1 MVC with no auth\r\n2) Create a class ApplicationUser that derives from IdentityUser\r\n`    public class ApplicationUser : IdentityUser\r\n`\r\n3) Scaffold identity and choose the **dropdown** button for the user class\r\n\r\n![scaffoldidentity21bug](https://user-images.githubusercontent.com/19961806/42952344-8aa84c10-8b78-11e8-96d4-c37ede8b262c.PNG)\r\n\r\n\r\nThe resulting code is unexpected because it refers to `IdentityUser`. `ApplicationUser `is totally ignored\r\n\r\n`    public class ApplicationDbContext : IdentityDbContext<IdentityUser>\r\n`\r\n`                services.AddDefaultIdentity<IdentityUser>()\r\n`\r\n\r\nBug?\n\n_Copied from original issue: aspnet/Identity#1886_"}}
{"actor":{"display_login":"seancpeters"}}