Skip to content

Commit be6fc55

Browse files
authored
New release 1.0.0-rc1 (#454)
New release 1.0.0-rc1
2 parents 3729ca3 + a3162c3 commit be6fc55

File tree

1,792 files changed

+169989
-5323
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

1,792 files changed

+169989
-5323
lines changed

.dockerignore

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
**/.classpath
2+
**/.dockerignore
3+
**/.env
4+
**/.git
5+
**/.gitignore
6+
**/.project
7+
**/.settings
8+
**/.toolstarget
9+
**/.vs
10+
**/.vscode
11+
**/*.*proj.user
12+
**/*.dbmdl
13+
**/*.jfm
14+
**/azds.yaml
15+
**/bin
16+
**/charts
17+
**/docker-compose*
18+
**/Dockerfile*
19+
**/node_modules
20+
**/npm-debug.log
21+
**/obj
22+
**/secrets.dev.yaml
23+
**/values.dev.yaml
24+
**/_ReSharper.Caches
25+
LICENSE
26+
README.md

.gitignore

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -277,4 +277,6 @@ __pycache__/
277277
# Don't ignore these log folders
278278
!/src/Skoruba.IdentityServer4.Admin/Resources/Views/Log/
279279
!/src/Skoruba.IdentityServer4.Admin.BusinessLogic/Dtos/Log/
280-
!/src/Skoruba.IdentityServer4.Admin/Views/Log/
280+
!/src/Skoruba.IdentityServer4.Admin/Views/Log/
281+
!/src/Skoruba.IdentityServer4.Admin.BusinessLogic/Events/Log/
282+
/src/Skoruba.IdentityServer4.Admin.Api/appsettings.Production.json

README.md

Lines changed: 176 additions & 72 deletions
Large diffs are not rendered by default.

Skoruba.IdentityServer4.Admin.sln

Lines changed: 47 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ Microsoft Visual Studio Solution File, Format Version 12.00
33
# Visual Studio Version 16
44
VisualStudioVersion = 16.0.28803.452
55
MinimumVisualStudioVersion = 10.0.40219.1
6-
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "src", "src", "{588205D4-3A30-4DA4-849D-C7422C396DAA}"
6+
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "admin", "admin", "{588205D4-3A30-4DA4-849D-C7422C396DAA}"
77
EndProject
88
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "tests", "tests", "{0BC0CC4E-A0F1-45E8-B41A-AE0FA76BF3E5}"
99
EndProject
@@ -33,7 +33,21 @@ Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Skoruba.IdentityServer4.Adm
3333
EndProject
3434
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Skoruba.IdentityServer4.Admin.EntityFramework.Shared", "src\Skoruba.IdentityServer4.Admin.EntityFramework.Shared\Skoruba.IdentityServer4.Admin.EntityFramework.Shared.csproj", "{E18F8C70-7448-4039-9D78-1369D7F498EF}"
3535
EndProject
36-
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Skoruba.IdentityServer4.Admin.EntityFramework.Extensions", "src\Skoruba.IdentityServer4.Admin.EntityFramework.Extensions\Skoruba.IdentityServer4.Admin.EntityFramework.Extensions.csproj", "{2DD3CB7D-462E-4039-B684-81B1E88C7C6A}"
36+
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Skoruba.IdentityServer4.Admin.EntityFramework.Extensions", "src\Skoruba.IdentityServer4.Admin.EntityFramework.Extensions\Skoruba.IdentityServer4.Admin.EntityFramework.Extensions.csproj", "{2DD3CB7D-462E-4039-B684-81B1E88C7C6A}"
37+
EndProject
38+
Project("{E53339B2-1760-4266-BCC7-CA923CBCF16C}") = "docker-compose", "docker-compose.dcproj", "{F817047F-018D-4F93-BDA5-58602073B634}"
39+
EndProject
40+
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Skoruba.IdentityServer4.Admin.EntityFramework.SqlServer", "src\Skoruba.IdentityServer4.Admin.EntityFramework.SqlServer\Skoruba.IdentityServer4.Admin.EntityFramework.SqlServer.csproj", "{8230366D-81F9-4FA5-8F5D-8546B527F54F}"
41+
EndProject
42+
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Skoruba.IdentityServer4.Admin.EntityFramework.PostgreSQL", "src\Skoruba.IdentityServer4.Admin.EntityFramework.PostgreSQL\Skoruba.IdentityServer4.Admin.EntityFramework.PostgreSQL.csproj", "{3ECDC91E-0D3E-4E4D-A34E-D33BB714578D}"
43+
EndProject
44+
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "database", "database", "{2A514C8F-6A53-41CA-AB41-B644E7BC92A7}"
45+
EndProject
46+
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "business", "business", "{EE588CE5-51D0-4E98-A2B3-40EC8E655931}"
47+
EndProject
48+
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Skoruba.IdentityServer4.Admin.EntityFramework.MySql", "src\Skoruba.IdentityServer4.Admin.EntityFramework.MySql\Skoruba.IdentityServer4.Admin.EntityFramework.MySql.csproj", "{0A8A0DB7-0509-4DFB-9201-74398511B481}"
49+
EndProject
50+
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Skoruba.IdentityServer4.Admin.Api.IntegrationTests", "tests\Skoruba.IdentityServer4.Admin.Api.IntegrationTests\Skoruba.IdentityServer4.Admin.Api.IntegrationTests.csproj", "{4D123ACB-ACBD-4E40-AE6B-1B0F79D703B0}"
3751
EndProject
3852
Global
3953
GlobalSection(SolutionConfigurationPlatforms) = preSolution
@@ -93,6 +107,26 @@ Global
93107
{2DD3CB7D-462E-4039-B684-81B1E88C7C6A}.Debug|Any CPU.Build.0 = Debug|Any CPU
94108
{2DD3CB7D-462E-4039-B684-81B1E88C7C6A}.Release|Any CPU.ActiveCfg = Release|Any CPU
95109
{2DD3CB7D-462E-4039-B684-81B1E88C7C6A}.Release|Any CPU.Build.0 = Release|Any CPU
110+
{F817047F-018D-4F93-BDA5-58602073B634}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
111+
{F817047F-018D-4F93-BDA5-58602073B634}.Debug|Any CPU.Build.0 = Debug|Any CPU
112+
{F817047F-018D-4F93-BDA5-58602073B634}.Release|Any CPU.ActiveCfg = Release|Any CPU
113+
{F817047F-018D-4F93-BDA5-58602073B634}.Release|Any CPU.Build.0 = Release|Any CPU
114+
{8230366D-81F9-4FA5-8F5D-8546B527F54F}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
115+
{8230366D-81F9-4FA5-8F5D-8546B527F54F}.Debug|Any CPU.Build.0 = Debug|Any CPU
116+
{8230366D-81F9-4FA5-8F5D-8546B527F54F}.Release|Any CPU.ActiveCfg = Release|Any CPU
117+
{8230366D-81F9-4FA5-8F5D-8546B527F54F}.Release|Any CPU.Build.0 = Release|Any CPU
118+
{3ECDC91E-0D3E-4E4D-A34E-D33BB714578D}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
119+
{3ECDC91E-0D3E-4E4D-A34E-D33BB714578D}.Debug|Any CPU.Build.0 = Debug|Any CPU
120+
{3ECDC91E-0D3E-4E4D-A34E-D33BB714578D}.Release|Any CPU.ActiveCfg = Release|Any CPU
121+
{3ECDC91E-0D3E-4E4D-A34E-D33BB714578D}.Release|Any CPU.Build.0 = Release|Any CPU
122+
{0A8A0DB7-0509-4DFB-9201-74398511B481}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
123+
{0A8A0DB7-0509-4DFB-9201-74398511B481}.Debug|Any CPU.Build.0 = Debug|Any CPU
124+
{0A8A0DB7-0509-4DFB-9201-74398511B481}.Release|Any CPU.ActiveCfg = Release|Any CPU
125+
{0A8A0DB7-0509-4DFB-9201-74398511B481}.Release|Any CPU.Build.0 = Release|Any CPU
126+
{4D123ACB-ACBD-4E40-AE6B-1B0F79D703B0}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
127+
{4D123ACB-ACBD-4E40-AE6B-1B0F79D703B0}.Debug|Any CPU.Build.0 = Debug|Any CPU
128+
{4D123ACB-ACBD-4E40-AE6B-1B0F79D703B0}.Release|Any CPU.ActiveCfg = Release|Any CPU
129+
{4D123ACB-ACBD-4E40-AE6B-1B0F79D703B0}.Release|Any CPU.Build.0 = Release|Any CPU
96130
EndGlobalSection
97131
GlobalSection(SolutionProperties) = preSolution
98132
HideSolutionNode = FALSE
@@ -101,16 +135,20 @@ Global
101135
{E3713598-3375-4E81-9EC7-58DC090789BD} = {588205D4-3A30-4DA4-849D-C7422C396DAA}
102136
{BFF10ECC-B02A-4660-A82B-AADFDE0C0EBF} = {0BC0CC4E-A0F1-45E8-B41A-AE0FA76BF3E5}
103137
{92405E00-759C-4A20-A736-E21E7EF771C2} = {0BC0CC4E-A0F1-45E8-B41A-AE0FA76BF3E5}
104-
{D9F5B8B1-01F5-4996-8E75-A41532CF32CD} = {588205D4-3A30-4DA4-849D-C7422C396DAA}
105-
{491B30A8-D4A1-42E8-8DEE-4093E0E45C36} = {588205D4-3A30-4DA4-849D-C7422C396DAA}
138+
{D9F5B8B1-01F5-4996-8E75-A41532CF32CD} = {2A514C8F-6A53-41CA-AB41-B644E7BC92A7}
139+
{491B30A8-D4A1-42E8-8DEE-4093E0E45C36} = {EE588CE5-51D0-4E98-A2B3-40EC8E655931}
106140
{72F17B1A-88D9-47FD-AA35-1C700E51CD0E} = {63D44665-AC4C-45F4-A2C7-A7DB394F44C4}
107-
{2FAECDE3-8D21-4C36-BFF1-3F7C1A56F0D4} = {588205D4-3A30-4DA4-849D-C7422C396DAA}
108-
{C360A0D5-1671-4738-BC5D-BED0E8A24D66} = {588205D4-3A30-4DA4-849D-C7422C396DAA}
109-
{CA63CC7B-BE27-4737-AE91-42E43F729A1E} = {588205D4-3A30-4DA4-849D-C7422C396DAA}
141+
{2FAECDE3-8D21-4C36-BFF1-3F7C1A56F0D4} = {2A514C8F-6A53-41CA-AB41-B644E7BC92A7}
142+
{C360A0D5-1671-4738-BC5D-BED0E8A24D66} = {EE588CE5-51D0-4E98-A2B3-40EC8E655931}
143+
{CA63CC7B-BE27-4737-AE91-42E43F729A1E} = {EE588CE5-51D0-4E98-A2B3-40EC8E655931}
110144
{83319150-92D2-408C-A944-52DBE6AB8B37} = {0BC0CC4E-A0F1-45E8-B41A-AE0FA76BF3E5}
111145
{8F112368-2E45-4C3A-922E-85AB6056F559} = {588205D4-3A30-4DA4-849D-C7422C396DAA}
112-
{E18F8C70-7448-4039-9D78-1369D7F498EF} = {588205D4-3A30-4DA4-849D-C7422C396DAA}
113-
{2DD3CB7D-462E-4039-B684-81B1E88C7C6A} = {588205D4-3A30-4DA4-849D-C7422C396DAA}
146+
{E18F8C70-7448-4039-9D78-1369D7F498EF} = {2A514C8F-6A53-41CA-AB41-B644E7BC92A7}
147+
{2DD3CB7D-462E-4039-B684-81B1E88C7C6A} = {2A514C8F-6A53-41CA-AB41-B644E7BC92A7}
148+
{8230366D-81F9-4FA5-8F5D-8546B527F54F} = {2A514C8F-6A53-41CA-AB41-B644E7BC92A7}
149+
{3ECDC91E-0D3E-4E4D-A34E-D33BB714578D} = {2A514C8F-6A53-41CA-AB41-B644E7BC92A7}
150+
{0A8A0DB7-0509-4DFB-9201-74398511B481} = {2A514C8F-6A53-41CA-AB41-B644E7BC92A7}
151+
{4D123ACB-ACBD-4E40-AE6B-1B0F79D703B0} = {0BC0CC4E-A0F1-45E8-B41A-AE0FA76BF3E5}
114152
EndGlobalSection
115153
GlobalSection(ExtensibilityGlobals) = postSolution
116154
SolutionGuid = {B3166EDE-037B-4C68-BEBA-5DE9C5E3DB82}

build/add-migrations.ps1

Lines changed: 56 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,56 @@
1+
param([string] $migration = 'DbInit', [string] $migrationProviderName = 'All')
2+
$projectName = "Skoruba.IdentityServer4";
3+
$currentPath = Get-Location
4+
Set-Location "../src/$projectName.Admin"
5+
Copy-Item appsettings.json -Destination appsettings-backup.json
6+
$settings = Get-Content appsettings.json -raw
7+
8+
#Initialze db context and define the target directory
9+
$targetContexts = @{
10+
AdminIdentityDbContext = "Migrations\Identity"
11+
AdminLogDbContext = "Migrations\Logging";
12+
IdentityServerConfigurationDbContext = "Migrations\IdentityServerConfiguration";
13+
IdentityServerPersistedGrantDbContext = "Migrations\IdentityServerGrants";
14+
AdminAuditLogDbContext = "Migrations\AuditLogging";
15+
}
16+
17+
#Initialize the db providers and it's respective projects
18+
$dpProviders = @{
19+
SqlServer = "..\..\src\$projectName.Admin.EntityFramework.SqlServer\$projectName.Admin.EntityFramework.SqlServer.csproj";
20+
PostgreSQL = "..\..\src\$projectName.Admin.EntityFramework.PostgreSQL\$projectName.Admin.EntityFramework.PostgreSQL.csproj";
21+
MySql = "..\..\src\$projectName.Admin.EntityFramework.MySql\$projectName.Admin.EntityFramework.MySql.csproj";
22+
}
23+
24+
#Fix issue when the tools is not installed and the nuget package does not work see https://github.com/MicrosoftDocs/azure-docs/issues/40048
25+
Write-Host "Updating donet ef tools"
26+
$env:Path += " % USERPROFILE % \.dotnet\tools";
27+
dotnet tool update --global dotnet-ef --version 3.1.0
28+
29+
Write-Host "Start migrate projects"
30+
foreach ($provider in $dpProviders.Keys) {
31+
32+
if ($migrationProviderName -eq 'All' -or $migrationProviderName -eq $provider) {
33+
34+
$projectPath = (Get-Item -Path $dpProviders[$provider] -Verbose).FullName;
35+
Write-Host "Generate migration for db provider:" $provider ", for project path - " $projectPath
36+
37+
$providerName = '"ProviderType": "' + $provider + '"'
38+
39+
$settings = $settings -replace '"ProviderType".*', $providerName
40+
$settings | set-content appsettings.json
41+
if ((Test-Path $projectPath) -eq $true) {
42+
foreach ($context in $targetContexts.Keys) {
43+
$migrationPath = $targetContexts[$context];
44+
45+
Write-Host "Migrating context " $context
46+
dotnet ef migrations add $migration -c $context -o $migrationPath -p $projectPath
47+
}
48+
}
49+
50+
}
51+
}
52+
53+
Remove-Item appsettings.json
54+
Copy-Item appsettings-backup.json -Destination appsettings.json
55+
Remove-Item appsettings-backup.json
56+
Set-Location $currentPath

build/publish-docker-images.ps1

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
# build docker images according to docker-compose
2+
docker-compose build
3+
4+
# rename images with following tag
5+
docker tag skoruba-identityserver4-admin skoruba/identityserver4-admin:rc1
6+
docker tag skoruba-identityserver4-sts-identity skoruba/identityserver4-sts-identity:rc1
7+
docker tag skoruba-identityserver4-admin-api skoruba/identityserver4-admin-api:rc1
8+
9+
# push to docker hub
10+
docker push skoruba/identityserver4-admin:rc1
11+
docker push skoruba/identityserver4-admin-api:rc1
12+
docker push skoruba/identityserver4-sts-identity:rc1

docker-compose.dcproj

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
<?xml version="1.0" encoding="utf-8"?>
2+
<Project ToolsVersion="15.0" Sdk="Microsoft.Docker.Sdk">
3+
<PropertyGroup Label="Globals">
4+
<ProjectVersion>2.1</ProjectVersion>
5+
<DockerTargetOS>Linux</DockerTargetOS>
6+
<ProjectGuid>f817047f-018d-4f93-bda5-58602073b634</ProjectGuid>
7+
<DockerLaunchAction>None</DockerLaunchAction>
8+
<DockerServiceUrl>{Scheme}://localhost:{ServicePort}</DockerServiceUrl>
9+
<DockerServiceName>skoruba.identityserver4.admin</DockerServiceName>
10+
</PropertyGroup>
11+
<ItemGroup>
12+
<None Include="docker-compose.vs.debug.yml">
13+
<DependentUpon>docker-compose.yml</DependentUpon>
14+
</None>
15+
<None Include="docker-compose.override.yml">
16+
<DependentUpon>docker-compose.yml</DependentUpon>
17+
</None>
18+
<None Include="docker-compose.yml" />
19+
<None Include=".dockerignore" />
20+
</ItemGroup>
21+
</Project>

docker-compose.override.yml

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
version: '3.4'
2+
3+
services:
4+
skoruba.identityserver4.admin:
5+
environment:
6+
- ASPNETCORE_ENVIRONMENT=Development
7+
ports:
8+
- "80"
9+
volumes:
10+
- ${APPDATA}/Microsoft/UserSecrets:/root/.microsoft/usersecrets:ro
11+
skoruba.identityserver4.admin.api:
12+
environment:
13+
- ASPNETCORE_ENVIRONMENT=Development
14+
ports:
15+
- "80"
16+
volumes:
17+
- ${APPDATA}/Microsoft/UserSecrets:/root/.microsoft/usersecrets:ro
18+
19+
skoruba.identityserver4.sts.identity:
20+
environment:
21+
- ASPNETCORE_ENVIRONMENT=Development
22+
ports:
23+
- "80"
24+
volumes:
25+
- ${APPDATA}/Microsoft/UserSecrets:/root/.microsoft/usersecrets:ro

docker-compose.vs.debug.yml

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
version: '3.4'
2+
3+
services:
4+
skoruba.identityserver4.admin:
5+
volumes:
6+
- ${APPDATA}/Microsoft/UserSecrets:/root/.microsoft/usersecrets:ro
7+
labels:
8+
com.microsoft.visualstudio.debuggee.arguments: ' --additionalProbingPath /root/.nuget/packages --additionalProbingPath /root/.nuget/fallbackpackages "bin/Debug/netcoreapp3.1/Skoruba.IdentityServer4.Admin.dll" /seed'
9+
10+
skoruba.identityserver4.admin.api:
11+
volumes:
12+
- ${APPDATA}/Microsoft/UserSecrets:/root/.microsoft/usersecrets:ro
13+
14+
skoruba.identityserver4.sts.identity:
15+
volumes:
16+
- ${APPDATA}/Microsoft/UserSecrets:/root/.microsoft/usersecrets:ro

docker-compose.vs.release.yml

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
version: '3.4'
2+
3+
services:
4+
skoruba.identityserver4.admin:
5+
volumes:
6+
- ${APPDATA}/Microsoft/UserSecrets:/root/.microsoft/usersecrets:ro
7+
labels:
8+
com.microsoft.visualstudio.debuggee.arguments: ' --additionalProbingPath /root/.nuget/packages --additionalProbingPath /root/.nuget/fallbackpackages "bin/Debug/netcoreapp3.1/Skoruba.IdentityServer4.Admin.dll" /seed'
9+
10+
skoruba.identityserver4.admin.api:
11+
volumes:
12+
- ${APPDATA}/Microsoft/UserSecrets:/root/.microsoft/usersecrets:ro
13+
14+
skoruba.identityserver4.sts.identity:
15+
volumes:
16+
- ${APPDATA}/Microsoft/UserSecrets:/root/.microsoft/usersecrets:ro

docker-compose.yml

Lines changed: 98 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,98 @@
1+
version: '3.4'
2+
3+
services:
4+
skoruba.identityserver4.admin:
5+
image: ${DOCKER_REGISTRY-}skoruba-identityserver4-admin
6+
ports:
7+
- 9000:80
8+
build:
9+
context: .
10+
dockerfile: src/Skoruba.IdentityServer4.Admin/Dockerfile
11+
container_name: skoruba-identityserver4-admin
12+
environment:
13+
- ASPNETCORE_ENVIRONMENT=Development
14+
- "ConnectionStrings__ConfigurationDbConnection=Server=db;Database=IdentityServer4Admin;User Id=sa;Password=${DB_PASSWORD:-Password_123};MultipleActiveResultSets=true"
15+
- "ConnectionStrings__PersistedGrantDbConnection=Server=db;Database=IdentityServer4Admin;User Id=sa;Password=${DB_PASSWORD:-Password_123};MultipleActiveResultSets=true"
16+
- "ConnectionStrings__IdentityDbConnection=Server=db;Database=IdentityServer4Admin;User Id=sa;Password=${DB_PASSWORD:-Password_123};MultipleActiveResultSets=true"
17+
- "ConnectionStrings__AdminLogDbConnection=Server=db;Database=IdentityServer4Admin;User Id=sa;Password=${DB_PASSWORD:-Password_123};MultipleActiveResultSets=true"
18+
- "ConnectionStrings__AdminAuditLogDbConnection=Server=db;Database=IdentityServer4Admin;User Id=sa;Password=${DB_PASSWORD:-Password_123};MultipleActiveResultSets=true"
19+
- "AdminConfiguration__IdentityAdminBaseUrl=http://127.0.0.1.xip.io:9000"
20+
- "AdminConfiguration__IdentityAdminRedirectUri=http://127.0.0.1.xip.io:9000/signin-oidc"
21+
- "AdminConfiguration__IdentityServerBaseUrl=http://127.0.0.1.xip.io"
22+
- "AdminConfiguration__RequireHttpsMetadata=false"
23+
- "IdentityServerData__Clients__0__ClientUri=http://127.0.0.1.xip.io:9000"
24+
- "IdentityServerData__Clients__0__RedirectUris__0=http://127.0.0.1.xip.io:9000/signin-oidc"
25+
- "IdentityServerData__Clients__0__FrontChannelLogoutUri=http://127.0.0.1.xip.io:9000/signin-oidc"
26+
- "IdentityServerData__Clients__0__PostLogoutRedirectUris__0=http://127.0.0.1.xip.io:9000/signout-callback-oidc"
27+
- "IdentityServerData__Clients__0__AllowedCorsOrigins__0=http://127.0.0.1.xip.io:9000"
28+
- "IdentityServerData__Clients__1__RedirectUris__0=http://127.0.0.1.xip.io:5000/swagger/oauth2-redirect.html"
29+
- "Serilog__WriteTo__1__Args__connectionString=Server=db;Database=IdentityServer4Admin;User Id=sa;Password=${DB_PASSWORD:-Password_123};MultipleActiveResultSets=true"
30+
command: dotnet Skoruba.IdentityServer4.Admin.dll /seed
31+
depends_on:
32+
- db
33+
- skoruba.identityserver4.sts.identity
34+
volumes:
35+
- "./shared/serilog.json:/app/serilog.json"
36+
- "./shared/identitydata.json:/app/identitydata.json"
37+
- "./shared/identityserverdata.json:/app/identityserverdata.json"
38+
39+
skoruba.identityserver4.admin.api:
40+
image: ${DOCKER_REGISTRY-}skoruba-identityserver4-admin-api
41+
build:
42+
context: .
43+
dockerfile: src/Skoruba.IdentityServer4.Admin.Api/Dockerfile
44+
ports:
45+
- 5000:80
46+
environment:
47+
- "AdminApiConfiguration__RequireHttpsMetadata=false"
48+
- "AdminApiConfiguration__ApiBaseUrl=http://127.0.0.1.xip.io:5000"
49+
- "AdminApiConfiguration__IdentityServerBaseUrl=http://127.0.0.1.xip.io"
50+
- "ConnectionStrings__ConfigurationDbConnection=Server=db;Database=IdentityServer4Admin;User Id=sa;Password=${DB_PASSWORD:-Password_123};MultipleActiveResultSets=true"
51+
- "ConnectionStrings__PersistedGrantDbConnection=Server=db;Database=IdentityServer4Admin;User Id=sa;Password=${DB_PASSWORD:-Password_123};MultipleActiveResultSets=true"
52+
- "ConnectionStrings__IdentityDbConnection=Server=db;Database=IdentityServer4Admin;User Id=sa;Password=${DB_PASSWORD:-Password_123};MultipleActiveResultSets=true"
53+
- "ConnectionStrings__AdminLogDbConnection=Server=db;Database=IdentityServer4Admin;User Id=sa;Password=${DB_PASSWORD:-Password_123};MultipleActiveResultSets=true"
54+
- "ConnectionStrings__AdminAuditLogDbConnection=Server=db;Database=IdentityServer4Admin;User Id=sa;Password=${DB_PASSWORD:-Password_123};MultipleActiveResultSets=true"
55+
container_name: skoruba-identityserver4-admin-api
56+
volumes:
57+
- "./shared/serilog.json:/app/serilog.json"
58+
59+
skoruba.identityserver4.sts.identity:
60+
image: ${DOCKER_REGISTRY-}skoruba-identityserver4-sts-identity
61+
ports:
62+
- 80:80
63+
build:
64+
context: .
65+
dockerfile: src/Skoruba.IdentityServer4.STS.Identity/Dockerfile
66+
container_name: skoruba-identityserver4-sts-identity
67+
environment:
68+
- ASPNETCORE_ENVIRONMENT=Development
69+
- "ConnectionStrings__ConfigurationDbConnection=Server=db;Database=IdentityServer4Admin;User Id=sa;Password=${DB_PASSWORD:-Password_123};MultipleActiveResultSets=true"
70+
- "ConnectionStrings__PersistedGrantDbConnection=Server=db;Database=IdentityServer4Admin;User Id=sa;Password=${DB_PASSWORD:-Password_123};MultipleActiveResultSets=true"
71+
- "ConnectionStrings__IdentityDbConnection=Server=db;Database=IdentityServer4Admin;User Id=sa;Password=${DB_PASSWORD:-Password_123};MultipleActiveResultSets=true"
72+
- "AdminConfiguration__IdentityAdminBaseUrl=http://127.0.0.1.xip.io:9000"
73+
depends_on:
74+
- db
75+
volumes:
76+
- "./shared/serilog.json:/app/serilog.json"
77+
networks:
78+
default:
79+
aliases:
80+
- 127.0.0.1.xip.io
81+
db:
82+
image: "mcr.microsoft.com/mssql/server"
83+
ports:
84+
- 1433:1433
85+
container_name: skoruba-identityserver4-db
86+
environment:
87+
SA_PASSWORD: "${DB_PASSWORD:-Password_123}"
88+
ACCEPT_EULA: "Y"
89+
volumes:
90+
- dbdata:/var/opt/mssql
91+
92+
volumes:
93+
dbdata:
94+
driver: local
95+
96+
networks:
97+
default:
98+
driver: bridge

0 commit comments

Comments
 (0)