MakingSense / aspnet-authentication-simpletoken

Middleware that allows to extract token from authenticated requests, delegate it to an appropriated ISecurityTokenValidator and generate and AuthenticationTicket.
GNU Lesser General Public License v3.0
1 stars 4 forks source link

Use scope service to resolve the list of ISecurityTokenValidator #13

Closed RodrigoPereyraDiaz closed 5 years ago

RodrigoPereyraDiaz commented 5 years ago

Use scope service to resolve the list of ISecurityTokenValidator to generate the SecurityToeknValidatorFactory if not set in the Startup of the application.

This change, prevent a memory leak avoiding create more than twenty 'IServiceProvider' instances for internal use of Entity Framework

andresmoschini commented 5 years ago

❤️