Skip to content

threax/Threax.IdServer

Repository files navigation

Threax.IdServer

This is an implementation of the IdentityServer4 library to use with the Threax Hypermedia Framework. It can be used as is or modified to suit your environment.

Please see the Installing Id Server page for more info.

Setup

  1. Select Threax.IdServer.
  2. Choose the startup mode to be SetupDb then run it.
  3. Next choose SetupAppDashboard and run it.
  4. Change back to IIS Express and run the app.
  5. Visit https://localhost:44390/Account/Manage and create an account. Copy the guid from the manage page.
  6. Stop the program and run the command dotnet run tools "addadmin GUID" where GUID is the guid from above.
  7. Now choose multiple startup projects and run both AppDashboard and Threax.IdServer. You should be able to log into the app dashboard.

Adding Other Apps

Use the addfrommetadata command

dotnet run tools "addfrommetadata https://localhost:44321/"

Substitute the target app url for the url in the example.

Building Dockerfile

To build this image you will need to use the experimental buildkit. This applies to any projects built with this template.

First set your environment variable to enable buildkit (powershell)

$env:DOCKER_BUILDKIT=1

Then invoke the build like this.

docker build . -f .\Threax.IdServer\Dockerfile -t id --progress=plain
docker build . -f .\AppDashboard\Dockerfile -t appdashboard --progress=plain

Icon Attribution

Icon used from Font Awesome under the Creative Commons Attribution 4.0 International license. Modifications were made to the original image.

Migrations

This app has 4 db contexts and supports multiple backends. When db changes migrations need to be updated in multiple projects. To do this easily run Add-Migration.ps1 in the project root. This will create all the migrations for each db backend.