Ok, so I have a simple .NET Core 2.0 application, that requires a login to view the page(s). I have tried to set it up so that the login page is the first page you see when you go to the site. This is working locally, but when I deploy it to our testing environment, it doesn't seem to resolve to the login page. I'm sure this is something simple I'm missing, as I'm pretty new to .net core architecture.
I'm actually not entirely sure which of these settings is working and which isn't :
In startup.cs, I have
app.UseMvc(routes => { routes.MapRoute( name: "home", template: "{controller=Account}/{action=Login}/{id?}"); });
and in launchsettings.json, I have
"iisSettings": {
"windowsAuthentication": false,
"anonymousAuthentication": true,
"iisExpress": {
"applicationUrl": "http://localhost:50472",
"sslPort": 44319
}
},
"profiles": {
"IIS Express": {
"commandName": "IISExpress",
"launchBrowser": true,
"launchUrl": "https://localhost:44319/Account/Login",
"environmentVariables": {
"ASPNETCORE_ENVIRONMENT": "Development"
}
},
If I remove the "Account/Login" from the launchsettings file, it doesn't resolve to anything in the testing environment.
What am I missing ?
Thanks In Advance