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.