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
93
93
{
94
94
options.SecurityTokenValidatorsFactory = () =>
95
95
{
96
- var context = services.BuildServiceProvider().GetService<IHttpContextAccessor>().HttpContext;
97
- return context.RequestServices.GetServices<ISecurityTokenValidator>();
96
+ return services.BuildServiceProvider().GetServices<ISecurityTokenValidator>();
98
97
};
99
98
});
100
99
}
Original file line number Diff line number Diff line change @@ -93,8 +93,7 @@ public class Startup
93
93
{
94
94
options.SecurityTokenValidatorsFactory = () =>
95
95
{
96
- var context = services.BuildServiceProvider().GetService<IHttpContextAccessor>().HttpContext;
97
- return context.RequestServices.GetServices<ISecurityTokenValidator>();
96
+ return services.BuildServiceProvider().GetServices<ISecurityTokenValidator>();
98
97
};
99
98
});
100
99
}
You can’t perform that action at this time.
0 commit comments