Autofac: AddAuthentication inside a module in ASP.NET Core

100 Views Asked by At

I would like to know how to register the authentication service (e.g. AddAuthentication().AddJwtBearer()) inside a module which dwells on its own assembly.

I tried using the builder.Populate(services) but I am confused of whether is OK since AutoFac documentation https://autofac.readthedocs.io/en/latest/integration/aspnetcore.html#startup-class calls not to use it.

0

There are 0 best solutions below