diff --git a/samples/IdentitySample.Mvc/Startup.cs b/samples/IdentitySample.Mvc/Startup.cs index 271ba9cd0f..7abdd18f89 100644 --- a/samples/IdentitySample.Mvc/Startup.cs +++ b/samples/IdentitySample.Mvc/Startup.cs @@ -47,21 +47,6 @@ namespace IdentitySamples .AddEntityFrameworkStores() .AddDefaultTokenProviders(); - services.AddFacebookAuthentication(options => - { - options.AppId = "901611409868059"; - options.AppSecret = "4aa3c530297b1dcebc8860334b39668b"; - }); - services.AddGoogleAuthentication(options => - { - options.ClientId = "514485782433-fr3ml6sq0imvhi8a7qir0nb46oumtgn9.apps.googleusercontent.com"; - options.ClientSecret = "V2nDD9SkFbvLTqAUBWBBxYAL"; - }); - services.AddTwitterAuthentication(options => - { - options.ConsumerKey = "BSdJJ0CrDuvEhpkchnukXZBUv"; - options.ConsumerSecret = "xKUNuKhsRdHD03eLn67xhPAyE1wFFEndFo1X2UJaK2m1jdAxf4"; - }); services.AddMvc(); } @@ -82,9 +67,21 @@ namespace IdentitySamples app.UseDeveloperExceptionPage() .UseStaticFiles() .UseIdentity() - .UseFacebookAuthentication() - .UseGoogleAuthentication() - .UseTwitterAuthentication() + .UseFacebookAuthentication(options => + { + options.AppId = "901611409868059"; + options.AppSecret = "4aa3c530297b1dcebc8860334b39668b"; + }) + .UseGoogleAuthentication(options => + { + options.ClientId = "514485782433-fr3ml6sq0imvhi8a7qir0nb46oumtgn9.apps.googleusercontent.com"; + options.ClientSecret = "V2nDD9SkFbvLTqAUBWBBxYAL"; + }) + .UseTwitterAuthentication(options => + { + options.ConsumerKey = "BSdJJ0CrDuvEhpkchnukXZBUv"; + options.ConsumerSecret = "xKUNuKhsRdHD03eLn67xhPAyE1wFFEndFo1X2UJaK2m1jdAxf4"; + }) .UseMvc(routes => { routes.MapRoute(