File tree Expand file tree Collapse file tree 2 files changed +2
-4
lines changed
src/MakingSense.AspNetCore.Authentication.SimpleToken Expand file tree Collapse file tree 2 files changed +2
-4
lines changed Original file line number Diff line number Diff line change @@ -93,8 +93,7 @@ public class Startup
9393 {
9494 options.SecurityTokenValidatorsFactory = () =>
9595 {
96- var context = services.BuildServiceProvider().GetService<IHttpContextAccessor>().HttpContext;
97- return context.RequestServices.GetServices<ISecurityTokenValidator>();
96+ return services.BuildServiceProvider().GetServices<ISecurityTokenValidator>();
9897 };
9998 });
10099 }
Original file line number Diff line number Diff line change @@ -93,8 +93,7 @@ public class Startup
9393 {
9494 options.SecurityTokenValidatorsFactory = () =>
9595 {
96- var context = services.BuildServiceProvider().GetService<IHttpContextAccessor>().HttpContext;
97- return context.RequestServices.GetServices<ISecurityTokenValidator>();
96+ return services.BuildServiceProvider().GetServices<ISecurityTokenValidator>();
9897 };
9998 });
10099 }
You can’t perform that action at this time.
0 commit comments