After not finding a good resoure online and having to ask a colleague here is what he has told me to do:
Start the app in the browser. Instead of the app content Chrome displays a security warning “Your connection is not private”
Click on the “Not secure” field
Click on certificate
Select the “Details” tab
Click on “copy to file” button. The wizard opens
Safe certificate as a file (go with the defaults)
Use the default format and save to a file of your choice.
Open the saved certificate file with doubleclick
Go with “Current User” and click next.
Add certificate to the windows certificate store. Make sure to select “Trusted Root Certification Authorities”. (Disclaimer: I don’t really like to add dev certificates to that store because they are definitely not CA Authorities, but the other stores do not seem to work. If you find a better way feel free to send me an email or Twitter message)
Finish the installation
Confirm security warning with yes. (like I said above. Please tell me if you have a better solution)
Restart Chrome and try again.
Chrome should be happy now, show the lock-symbol instead of the warning and load your application!
A video tutorial based on my learnings of ASP.NET MVC 5, ASP.NET Identity, SQL Server and Azure.
Summary: I will show you how to create a very simple web application with user authentication. Users can register, log in, create diary entries (text) and visualize their entries.
In part one we will create, test and refactor the application locally on our computer. Although the app is very simple we will touch a lot of different technologies. You will also see some issues you may experience when starting with ASP.NET MVC in Visual Studio and how to fix them.
In part two we will publish our app to the cloud (Azure). Please subscribe to get notified when part two is finished.
ASP.NET Identity ApplicationUser and ApplicationDbContext overview
ASP.NET Identity tables
Extend DiaryEntry model class for usage in DbContext
Create foreign key property and navigation properties (Entity Framework)
Add new DiaryEntry table to DbContext
Create new model class from viewmodel
Use Entity Framework to insert into DiaryEntries table
Show result of data-model change: “Server Error in Application. The model backing the ‘ApplicationDbContext” context has changed since the database was created. Consider using Code First Migrations to update the database”