Skip to content

Commit

Permalink
Simplify the example
Browse files Browse the repository at this point in the history
  • Loading branch information
RodrigoPereyraDiaz committed Jun 25, 2019
1 parent e1a54e3 commit c5be417
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
3 changes: 1 addition & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -93,8 +93,7 @@ public class Startup
{
options.SecurityTokenValidatorsFactory = () =>
{
var context = services.BuildServiceProvider().GetService<IHttpContextAccessor>().HttpContext;
return context.RequestServices.GetServices<ISecurityTokenValidator>();
return services.BuildServiceProvider().GetServices<ISecurityTokenValidator>();
};
});
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -93,8 +93,7 @@ public class Startup
{
options.SecurityTokenValidatorsFactory = () =>
{
var context = services.BuildServiceProvider().GetService<IHttpContextAccessor>().HttpContext;
return context.RequestServices.GetServices<ISecurityTokenValidator>();
return services.BuildServiceProvider().GetServices<ISecurityTokenValidator>();
};
});
}
Expand Down

0 comments on commit c5be417

Please sign in to comment.