Skip to content

echuck66/ASPNETMVCCoreTest

Repository files navigation

ASPNETMVCCoreTest

Test application setup for use with MySql.Data.EntityFrameworkCore, ASP.NET Identity and IdentityServer4

Visual Studio Mac Notes

Visual Studio for the Mac does not include the project templates to allow for authentication using Individual User Accounts. To create a solution / project from scratch, you need to use the Terminal command:

dotnet new mvc --auth Individual

Setup / Configuration Notes

Important step to configuring ASP.NET Identity, IdentityServer4, MySQL is to create the migrations as outlined here:

IdentityServer4 and Entity Framework

The two migration steps are about halfway down the page.

Migration for PersistedGrantDbContext:

dotnet ef migrations add InitialIdentityServerPersistedGrantDbMigration -c PersistedGrantDbContext -o Data/Migrations/IdentityServer/PersistedGrantDb

Migration for ConfigurationDbContext:

dotnet ef migrations add InitialIdentityServerConfigurationDbMigration -c ConfigurationDbContext -o Data/Migrations/IdentityServer/ConfigurationDb

About

Test application setup for use with MySql.Data.EntityFrameworkCore, ASP.NET Identity and IdentityServer4

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages