// This method gets called by the runtime. Use this method to add services to the container. public void ConfigureServices(IServiceCollection services) { // add facebook login, more too soon - changed in netcore v2 if (_isDevelopment) { services.AddAuthentication() .AddGoogle(googleOptions => { googleOptions.ClientId = Environment.GetEnvironmentVariable ("Authentication:Google:ClientId"); googleOptions.ClientSecret = Environment.GetEnvironmentVariable ("Authentication:Google:ClientSecret"); }); } else { services.AddAuthentication() .AddGoogle(googleOptions => { googleOptions.ClientId = Configuration["Authentication:Google:ClientId"]; googleOptions.ClientSecret = Configuration["Authentication:Google:ClientSecret"]; }); } }