You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
dotnet ef database update --project DataAccess/DataAccess.csproj -s API/API.csproj
dotnet ef migrations add InitialIdentityServer4Migration --project .\I4Server\I4Server.csproj --context PersistedGrantDbContext --verbose
dotnet ef migrations add InitialIdentityServer4Migration --project .\I4Server\I4Server.csproj -c configurationDbContext --verbose
dotnet ef database update --project .\I4Server\I4Server.csproj -c PersistedGrantDbContext
dotnet ef database update --project .\I4Server\I4Server.csproj -c ConfigurationDbContext
dotnet ef migrations add InitialAspNetIdentityMigration --project .\I4Server\I4Server.csproj -c AspNetIdentityDbContext
dotnet ef database update --project .\I4Server\I4Server.csproj -c AspNetIdentityDbContext
Issues
has issue with SQL Server self signed ceritificate, currently uses TrustServerCertificate=True in connection string to override it
Unable to set launchUrl in launchSettings.json for either kestrel or IIS, may need to look into WebHostBuilder
Need a way to set and forget multiple start up projects for the vscode launcher or global config, instead of using the cli every time
Need to update all packages to latest version globally
Notes
Even though the IRestaurantService is injected and recognized inside the API controller, the implementation is decided in runtime, in order to register the implementation, configure this in the program.cs by adding builder.services.AddScoped().
You have to add this just buefore the builder.build()
In the API Controller, default get method does not have to be called by name if route is not mentioned but will be the default when visiting the api/[controller]
creating new projects with dotnet new, consider implications of using either --no-https or --no-http as well as the default behaviour.
tempkey.jwk is generated in root of I4Server project as development sign in for IS4.
About
Setting up IdentityServer4 with minimal APIs and Blazor Server