From 918d7db68f8363bd5148752acd1858d21bec7b57 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Halil=20=C4=B0brahim=20Kalkan?= Date: Wed, 3 Jan 2018 16:50:40 +0300 Subject: [PATCH] Refactored. --- src/AbpDesk/AbpDesk.Web.Mvc/AbpDeskWebMvcModule.cs | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) 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 =>