Browse Source

Refactored.

pull/190/head
Halil İbrahim Kalkan 8 years ago
parent
commit
918d7db68f
  1. 7
      src/AbpDesk/AbpDesk.Web.Mvc/AbpDeskWebMvcModule.cs

7
src/AbpDesk/AbpDesk.Web.Mvc/AbpDeskWebMvcModule.cs

@ -66,10 +66,12 @@ namespace AbpDesk.Web.Mvc
//services.Configure<RemoteServiceOptions>(configuration); //Needed when we use Volo.Abp.Identity.HttpApi.Client //services.Configure<RemoteServiceOptions>(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"])) if (bool.Parse(configuration["Authentication:Facebook:IsEnabled"]))
{ {
services.AddAuthentication().AddFacebook(options => authentication.AddFacebook(options =>
{ {
options.AppId = configuration["Authentication:Facebook:AppId"]; options.AppId = configuration["Authentication:Facebook:AppId"];
options.AppSecret = configuration["Authentication:Facebook:AppSecret"]; options.AppSecret = configuration["Authentication:Facebook:AppSecret"];
@ -79,7 +81,6 @@ namespace AbpDesk.Web.Mvc
}); });
} }
services.AddAssemblyOf<AbpDeskWebMvcModule>(); services.AddAssemblyOf<AbpDeskWebMvcModule>();
services.Configure<BundlingOptions>(options => services.Configure<BundlingOptions>(options =>

Loading…
Cancel
Save