diff --git a/src/AbpDesk/AbpDesk.Web.Mvc/AbpDeskWebMvcModule.cs b/src/AbpDesk/AbpDesk.Web.Mvc/AbpDeskWebMvcModule.cs index eea4fead9b..c4bb696b63 100644 --- a/src/AbpDesk/AbpDesk.Web.Mvc/AbpDeskWebMvcModule.cs +++ b/src/AbpDesk/AbpDesk.Web.Mvc/AbpDeskWebMvcModule.cs @@ -66,10 +66,12 @@ namespace AbpDesk.Web.Mvc //services.Configure(configuration); //Needed when we use Volo.Abp.Identity.HttpApi.Client - //Adding Facebook authentication + var authentication = services.AddAuthentication(); + + //Adding Facebook authentication (TODO: Move to Account module as much as possible) if (bool.Parse(configuration["Authentication:Facebook:IsEnabled"])) { - services.AddAuthentication().AddFacebook(options => + authentication.AddFacebook(options => { options.AppId = configuration["Authentication:Facebook:AppId"]; options.AppSecret = configuration["Authentication:Facebook:AppSecret"]; @@ -79,7 +81,6 @@ namespace AbpDesk.Web.Mvc }); } - services.AddAssemblyOf(); services.Configure(options =>