{"action":"created","issue":{"url":"https://api.github.com/repos/aspnet/Security/issues/718","repository_url":"https://api.github.com/repos/aspnet/Security","labels_url":"https://api.github.com/repos/aspnet/Security/issues/718/labels{/name}","comments_url":"https://api.github.com/repos/aspnet/Security/issues/718/comments","events_url":"https://api.github.com/repos/aspnet/Security/issues/718/events","html_url":"https://github.com/aspnet/Security/issues/718","id":136834175,"number":718,"title":"How can you inject a service into an implementation of IClaimsTransformer?","user":{"login":"csaloio","id":4036623,"avatar_url":"https://avatars.githubusercontent.com/u/4036623?v=3","gravatar_id":"","url":"https://api.github.com/users/csaloio","html_url":"https://github.com/csaloio","followers_url":"https://api.github.com/users/csaloio/followers","following_url":"https://api.github.com/users/csaloio/following{/other_user}","gists_url":"https://api.github.com/users/csaloio/gists{/gist_id}","starred_url":"https://api.github.com/users/csaloio/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/csaloio/subscriptions","organizations_url":"https://api.github.com/users/csaloio/orgs","repos_url":"https://api.github.com/users/csaloio/repos","events_url":"https://api.github.com/users/csaloio/events{/privacy}","received_events_url":"https://api.github.com/users/csaloio/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":{"url":"https://api.github.com/repos/aspnet/Security/milestones/7","html_url":"https://github.com/aspnet/Security/milestones/Backlog","labels_url":"https://api.github.com/repos/aspnet/Security/milestones/7/labels","id":1008493,"number":7,"title":"Backlog","description":"","creator":{"login":"muratg","id":1808428,"avatar_url":"https://avatars.githubusercontent.com/u/1808428?v=3","gravatar_id":"","url":"https://api.github.com/users/muratg","html_url":"https://github.com/muratg","followers_url":"https://api.github.com/users/muratg/followers","following_url":"https://api.github.com/users/muratg/following{/other_user}","gists_url":"https://api.github.com/users/muratg/gists{/gist_id}","starred_url":"https://api.github.com/users/muratg/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/muratg/subscriptions","organizations_url":"https://api.github.com/users/muratg/orgs","repos_url":"https://api.github.com/users/muratg/repos","events_url":"https://api.github.com/users/muratg/events{/privacy}","received_events_url":"https://api.github.com/users/muratg/received_events","type":"User","site_admin":false},"open_issues":32,"closed_issues":2,"state":"open","created_at":"2015-03-06T00:23:47Z","updated_at":"2016-03-03T23:27:37Z","due_on":null,"closed_at":null},"comments":14,"created_at":"2016-02-26T22:36:21Z","updated_at":"2016-03-03T23:29:18Z","closed_at":null,"body":"I need to be able to query a DB in my implementation.\r\n\r\nMy understanding is that you must add the transform like this in Startup.Configure:\r\n```\r\napp.UseClaimsTransformation(o => o.Transformer = new MyClaimsTransformer());\r\n```\r\n\r\nBut how can it get access to a scoped service from within `MyClaimsTransformer` ?"},"comment":{"url":"https://api.github.com/repos/aspnet/Security/issues/comments/192018991","html_url":"https://github.com/aspnet/Security/issues/718#issuecomment-192018991","issue_url":"https://api.github.com/repos/aspnet/Security/issues/718","id":192018991,"user":{"login":"DovydasNavickas","id":7989797,"avatar_url":"https://avatars.githubusercontent.com/u/7989797?v=3","gravatar_id":"","url":"https://api.github.com/users/DovydasNavickas","html_url":"https://github.com/DovydasNavickas","followers_url":"https://api.github.com/users/DovydasNavickas/followers","following_url":"https://api.github.com/users/DovydasNavickas/following{/other_user}","gists_url":"https://api.github.com/users/DovydasNavickas/gists{/gist_id}","starred_url":"https://api.github.com/users/DovydasNavickas/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/DovydasNavickas/subscriptions","organizations_url":"https://api.github.com/users/DovydasNavickas/orgs","repos_url":"https://api.github.com/users/DovydasNavickas/repos","events_url":"https://api.github.com/users/DovydasNavickas/events{/privacy}","received_events_url":"https://api.github.com/users/DovydasNavickas/received_events","type":"User","site_admin":false},"created_at":"2016-03-03T23:29:18Z","updated_at":"2016-03-03T23:29:18Z","body":"@Eilon I understand why are you against taking new features into current release, but if you want to follow semver, this change would only go into >=2.0.0 release. And maybe the change needed here is quite simple: a reference to request, which by itself has `RequestServices`."}}