This repository was archived by the owner on Dec 13, 2018. It is now read-only.
This repository was archived by the owner on Dec 13, 2018. It is now read-only.
How can you inject a service into an implementation of IClaimsTransformer? #718
Closed
Description
I need to be able to query a DB in my implementation.
My understanding is that you must add the transform like this in Startup.Configure:
app.UseClaimsTransformation(o => o.Transformer = new MyClaimsTransformer());
But how can it get access to a scoped service from within MyClaimsTransformer
?