Skip to content
Test application setup for use with MySql.Data.EntityFrameworkCore, ASP.NET Identity and IdentityServer4
C# Other
  1. C# 99.4%
  2. Other 0.6%
Branch: master
Clone or download

Latest commit

Fetching latest commit…
Cannot retrieve the latest commit at this time.

Files

Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
Controllers
Data
Extensions
Models
Services
Views
wwwroot
ASPNETMVCCoreTest.csproj
ASPNETMVCCoreTest.sln
ASPNETMVCCoreTest.userprefs
Config.cs
Program.cs
README.md
SeedData.cs
Startup.cs
app.db
appsettings.Development.json
appsettings.json
bundleconfig.json
tempkey.rsa

README.md

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

You can’t perform that action at this time.