Skip to main content
Version: 4.0.4

Installation

The entire SimpleIdServer solution can be easily installed and deployed through various methods: Copy and Paste, Docker or Kubernetes.

If you want to install only certain parts of the solution or customize specific features like the UI, you can use our DOTNET Template project.

One-shot installation

Install the entire solution with a single command..

Custom installation

Utilize our DOTNET Template to install specific parts of the solution.

Copy and paste

Installing SimpleIdServer is as simple as downloading it, unzipping it, and updating the connection string. By default, the project is configured to use the SQLServer database. Other databases are supported. For more information, refer to the configuration section.

The archive folder contains three projects:

NamePortDescription
IdServerhttps://*:5001Identity server
IdServerWebsitehttps://*:5002Administration website
Scimhttps://*:5003SCIM server

The technical account used to run the IdServer and Scim servers must have the privilege to create tables and databases. Otherwise, the application cannot deploy the database. By default, the development certificate is utilized to host the applications under HTTPS. To install it on your local machine, execute the command line dotnet dev-certs https. For more information, refer to the documentation.

Windows

Procedure :

  1. Download the zip file.
  2. Extract the contents into a directory.
  3. In each subfolder, locate the appsettings.json file. Open your preferred text editor and update the Connection String.
  4. Open three PowerShell prompts and navigate to the subdirectories: IdServer, Scim and IdServerWebsite.
  5. Execute the command run.ps1.

Linux

Procedure :

  1. Download the zip file using the following command:

wget https://github.com/simpleidserver/SimpleIdServer/releases/latest/download/SimpleIdServer-Linux-x64.zip

  1. Extract the contents into a directory using the following command:

unzip SimpleIdServer-Linux-x64.zip -d SimpleIdServer-Linux-x64

  1. In the subdirectories, you will find two scripts. Use run.sh to launch the service and install-daemon.sh to install the server as a daemon service.

Docker

It is possible to run the SimpleIdServer solution through Docker.

In this setup, the domain localhost.com is used to represent the domain on which the solution is hosted. Therefore, the first step is to ensure that the domain localhost.com resolves to the Docker host machine.

To achieve this, edit your hosts file and add the following entry:

127.0.0.1 localhost.com scim.localhost.com idserver.localhost.com website.localhost.com

The location of the hosts file varies based on the operating system:

Operating SystemPath
Linux\etc\hosts
WindowsC:\Windows\system32\drivers\etc\hosts

Next, download the Docker archive, extract the contents into a directory, and execute the command docker-compose up.

Now, SimpleIdServer is ready to be used, and the services can be accessed through the following URLs:

ServiceUrl
IdServerhttps://idserver.localhost.com/master
IdServerWebsitehttps://website.localhost.com
Scimhttps://scim.localhost.com

Kubernetes

It is possible to run the SimpleIdServer solution through Kubernetes.

In this setup, the domain sid.svc.cluster.local is used to represent the domain on which the solution is hosted. Therefore, the first step is to ensure that the domain sid.svc.cluster.local resolves to the Docker host machine.

To achieve this, edit your hosts file and add the following entry:

127.0.0.1 sid.svc.cluster.local scim.sid.svc.cluster.local idserver.sid.svc.cluster.local website.sid.svc.cluster.local

Next, ensure that you have Minikube installed on your local machine. You can download it from Minikube.

Download the Kubernetes archive file and extract its contents into a directory. Open a command prompt and navigate to this directory. Execute the following commands to start the solution:

minikube start
minikube addons enable ingress
eval $(minikube -p minikube docker-env)
kubectl apply -f sid-kubernetes.yaml
minikube tunnel

Now, SimpleIdServer is ready to be used, and the services can be accessed through the following URLs:

ServiceUrl
IdServerhttps://idserver.sid.svc.cluster.local/master
IdServerWebsitehttps://website.sid.svc.cluster.local
Scimhttps://scim.sid.svc.cluster.local

DOTNET Template

Install SimpleIdServer templates.

dotnet new --install SimpleIdServer.Templates

This will add the following templates

Command lineDescription
dotnet new idserverCreate Identity Server. By default, Entity Framework is configured to use SQLServer
dotnet new idserverwebsiteCreate Identity Server website. By default, Entity Framework is configured to use SQLServer
dotnet new scimCreate SCIM Server.

Create Visual Studio Solution

Open a command prompt and execute the following commands to create the directory structure for the solution.

mkdir Quickstart
cd Quickstart
mkdir src
dotnet new sln -n Quickstart

Create IdentityServer project

To create a web project named IdServer with the SimpleIdServer.IdServer package installed and Entity Framework (EF) configured to use SQLServer, execute the command line :

cd src
dotnet new idserver -n IdServer --storageConnectionString "Data Source=.;Initial Catalog=IdServer;Integrated Security=True;TrustServerCertificate=True" --distributedCacheConnectionString "Data Source=.;Initial Catalog=IdServer;Integrated Security=True;TrustServerCertificate=True"

The following files will be created within a new src/IdServer directory :

  • IdServer.csproj : Project file with the SimpleIdServer.IdServer NuGet package added.
  • appsettings.json : Contains the ConnectionString.
  • Program.cs : Main application entry point.
  • IdServerConfiguration.cs : Contains the Clients, Resources.

Next, add the IdServer project into the Visual Studio Solution

cd ..
dotnet sln add ./src/IdServer/IdServer.csproj

Run the IdServer project, ensuring that it listens on the URL https://localhost:5001.

cd src/IdServer
dotnet run --urls=https://localhost:5001

The IdentityServer is now ready to be used.

By default, there is one administrator account configured. You can access their profile by navigating to the URL https://localhost:5001/master and authenticate using the following credentials :

  • Login : administrator
  • Password : password

IdentityServer UI preview

The IdentityServer UI uses Bootstrap 5.

IdentityServer

Create IdentityServer website project

create a web project named IdServerWebsite with the SimpleIdServer.IdServer.Website package installed and Entity Framework (EF) configured to use SQLServer, execute the command line :

cd src
dotnet new idserverwebsite -n IdServerWebsite --storageConnectionString "Data Source=.;Initial Catalog=IdServer;Integrated Security=True;TrustServerCertificate=True"

Run the IdServerWebsite project, it must listens on the url https://localhost:5002.

cd src/IdServerWebsite
dotnet run --urls=https://localhost:5002

The IdentityServer website is now ready to be used.

The website can be used to manage all aspects of an Identity Server solution, such as managing clients, users, and scopes.

Identity Server website UI preview

The IdentityServer website UI uses Radzen.

IdentityServerWebsite

SCIM Security

By default SCIM is configured to use API KEY authentication. For clients to perform any operation, they must include one of those keys in the HTTP HEADER Authorization Bearer field.

OwnerValue
IdServerba521b3b-02f7-4a37-b03c-58f713bf88e7
AzureAd1595a72a-2804-495d-8a8a-2c861e7a736a

Create SCIM project with EF support

Create a web project named ScimEF with the SimpleIdServer.Scim.Persistence.EF package installed and Entity Framework (EF) configured to use SQLServer, execute the command line :

cd src
dotnet new scim -n ScimEF --connectionString "Data Source=.;Initial Catalog=SCIM;Integrated Security=True;TrustServerCertificate=True" -t "SQLSERVER"

Next, add the ScimEF project into the Visual Studio Solution

cd ..
dotnet sln add ./src/ScimEF/ScimEF.csproj

Run the ScimEF project, ensuring that it listens on the URL https://localhost:5003.

cd src/SCIMEF
dotnet run --urls=https://localhost:5003

Now that the SCIM server is running, you can check its Schemas endpoint by accessing https://localhost:5003/Schemas.

Create SCIM project with MongoDB support

To create a web project named ScimMongoDB with the SimpleIdServer.Scim.Persistence.MongoDB package installed and MongoDB support, execute the command line :

cd src
dotnet new scim -n ScimMongoDB --connectionString "mongodb://localhost:27017" -t "MONGODB"

Next, add the ScimMongoDB project into the Visual Studio Solution

cd ..
dotnet sln add ./src/ScimMongoDB/ScimMongoDB.csproj

Run the ScimMongoDB project, ensuring that it listens on the URL https://localhost:5003.

cd src/ScimMongoDB
dotnet run --urls=https://localhost:5003

Now that the SCIM server is running, you can check its Schemas endpoint by accessing https://localhost:5003/Schemas.