Get data from appsettings.json file

I will show how to get your data from appsettings.json and e.g. show it on view. First, go to an appsettings.json and add the entry. In my case, I added:“Message”: “Message from appsettings.json” All appsettings.json code looks like this: Second step, changes to the controller, let’s take a sample HomeController. So inject IConfiguration in HomeControllerContinue reading “Get data from appsettings.json file”

IdentityServer configuration to use it with SPA that is not hosted with IdentityServer

IdentityServer settings configuration to use it with SPA that is not hosted with IdentityServer. For example, we have client app on http://localhost:4200 and backend app on https://localhost:5001. To allow working it, we need to set/change “Profile” to “SPA”. Additional we can configure “RedirectUri” and “LogoutUri”. Backend side (.NET Core 3.1).Code snippet of appsettings.json: