{"action":"created","issue":{"url":"https://api.github.com/repos/IdentityServer/IdentityServer3/issues/2640","repository_url":"https://api.github.com/repos/IdentityServer/IdentityServer3","labels_url":"https://api.github.com/repos/IdentityServer/IdentityServer3/issues/2640/labels{/name}","comments_url":"https://api.github.com/repos/IdentityServer/IdentityServer3/issues/2640/comments","events_url":"https://api.github.com/repos/IdentityServer/IdentityServer3/issues/2640/events","html_url":"https://github.com/IdentityServer/IdentityServer3/issues/2640","id":136285324,"number":2640,"title":"Accessing UserService from PartialLogin controller","user":{"login":"parkinsona","id":8508456,"avatar_url":"https://avatars.githubusercontent.com/u/8508456?v=3","gravatar_id":"","url":"https://api.github.com/users/parkinsona","html_url":"https://github.com/parkinsona","followers_url":"https://api.github.com/users/parkinsona/followers","following_url":"https://api.github.com/users/parkinsona/following{/other_user}","gists_url":"https://api.github.com/users/parkinsona/gists{/gist_id}","starred_url":"https://api.github.com/users/parkinsona/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/parkinsona/subscriptions","organizations_url":"https://api.github.com/users/parkinsona/orgs","repos_url":"https://api.github.com/users/parkinsona/repos","events_url":"https://api.github.com/users/parkinsona/events{/privacy}","received_events_url":"https://api.github.com/users/parkinsona/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/IdentityServer/IdentityServer3/labels/question","name":"question","color":"cc317c"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":6,"created_at":"2016-02-25T05:26:32Z","updated_at":"2016-02-29T22:21:22Z","closed_at":null,"body":"Hi,\r\n\r\nI am adding a partial login screen for when users come in via an external provider. This is what I'm aiming for: when an external user logs in, any of their external claims that match local userClaims will be presented on the partial login screen. The user can then choose to update their local claims with these values if they wish. (Let me know if this is a bad idea or if its done somewhere else)\r\n\r\nAs part of this I'm creating my own custom UserService, but I'm not sure if there's a better way to get the UserService in the controller.\r\n\r\nI have the following function that gets called from a controller. Seems like i'm having to create the userService again. Is there a way to get the UserService that is loaded for IdentityServer already?\r\n\r\n``` c#\r\n        public static UserAccountService<UserAccount> GetUserAccountService()\r\n        {\r\n            if (_userService == null)\r\n            {\r\n                var db = new DefaultMembershipRebootDatabase(\"MembershipReboot\");\r\n                var repo = new SemaUserAccountRepository(db);\r\n                _userService = new UserAccountService<UserAccount>(MembershipRebootUserServiceFactory.config, repo);\r\n            }\r\n            return _userService;\r\n        }\r\n```"},"comment":{"url":"https://api.github.com/repos/IdentityServer/IdentityServer3/issues/comments/190424514","html_url":"https://github.com/IdentityServer/IdentityServer3/issues/2640#issuecomment-190424514","issue_url":"https://api.github.com/repos/IdentityServer/IdentityServer3/issues/2640","id":190424514,"user":{"login":"parkinsona","id":8508456,"avatar_url":"https://avatars.githubusercontent.com/u/8508456?v=3","gravatar_id":"","url":"https://api.github.com/users/parkinsona","html_url":"https://github.com/parkinsona","followers_url":"https://api.github.com/users/parkinsona/followers","following_url":"https://api.github.com/users/parkinsona/following{/other_user}","gists_url":"https://api.github.com/users/parkinsona/gists{/gist_id}","starred_url":"https://api.github.com/users/parkinsona/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/parkinsona/subscriptions","organizations_url":"https://api.github.com/users/parkinsona/orgs","repos_url":"https://api.github.com/users/parkinsona/repos","events_url":"https://api.github.com/users/parkinsona/events{/privacy}","received_events_url":"https://api.github.com/users/parkinsona/received_events","type":"User","site_admin":false},"created_at":"2016-02-29T22:21:22Z","updated_at":"2016-02-29T22:21:22Z","body":"Unfortunately, that's still returning null for me when I put in the custom class as above."}}