diff --git a/samples/MicroserviceDemo/DeployToKubernetes.sh b/samples/MicroserviceDemo/DeployToKubernetes.sh
deleted file mode 100755
index 8ca8667878..0000000000
--- a/samples/MicroserviceDemo/DeployToKubernetes.sh
+++ /dev/null
@@ -1,13 +0,0 @@
-#!/bin/bash
-set -e
-
-export SHELL="/bin/bash"
-
-minikube start
-
-eval $(minikube docker-env)
-docker-compose -f docker-compose.yml -f docker-compose.migrations.yml -f docker-compose.override.yml build
-
-cd ./k8s
-kubectl create -f $(ls -x | grep .yaml | grep -v deployment | tr " \t\n\r" "," | sed 's/.$//')
-kubectl create -f $(ls -x | grep .yaml | grep deployment | tr " \t\n\r" "," | sed 's/.$//')
diff --git a/samples/MicroserviceDemo/MicroserviceDemo.sln b/samples/MicroserviceDemo/MicroserviceDemo.sln
deleted file mode 100644
index 25b547f648..0000000000
--- a/samples/MicroserviceDemo/MicroserviceDemo.sln
+++ /dev/null
@@ -1,208 +0,0 @@
-
-Microsoft Visual Studio Solution File, Format Version 12.00
-# Visual Studio Version 16
-VisualStudioVersion = 16.0.29609.76
-MinimumVisualStudioVersion = 10.0.40219.1
-Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "microservices", "microservices", "{3B26D176-390B-4F51-BE52-E9B422C28A88}"
-EndProject
-Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "applications", "applications", "{8F6834D7-E6FA-4A04-83BB-955F68EA0A0A}"
-EndProject
-Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "modules", "modules", "{818134CC-2F7F-41B9-ACA6-87F0650F5D52}"
-EndProject
-Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "product", "product", "{8FFAECCC-B4A6-4441-AD10-379ADEDD5A19}"
-EndProject
-Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "src", "src", "{F84AC200-1E5A-4FC3-9407-FB2FF527EDA8}"
-EndProject
-Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "test", "test", "{D1526262-55E0-43F1-9EF1-C6095E76A9E2}"
-EndProject
-Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "ProductManagement.Domain.Shared", "modules\product\src\ProductManagement.Domain.Shared\ProductManagement.Domain.Shared.csproj", "{44A448CC-D8DD-4AA5-861A-78186FC5CE69}"
-EndProject
-Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "ProductManagement.Domain", "modules\product\src\ProductManagement.Domain\ProductManagement.Domain.csproj", "{65593638-9904-424B-831F-F5215EC4312B}"
-EndProject
-Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "ProductManagement.Application.Contracts", "modules\product\src\ProductManagement.Application.Contracts\ProductManagement.Application.Contracts.csproj", "{217CD5A1-182F-4D8D-88CA-16DC1EA8525A}"
-EndProject
-Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "ProductManagement.Application", "modules\product\src\ProductManagement.Application\ProductManagement.Application.csproj", "{66B2E371-2495-4E76-A6F9-540125C5FB37}"
-EndProject
-Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "ProductManagement.EntityFrameworkCore", "modules\product\src\ProductManagement.EntityFrameworkCore\ProductManagement.EntityFrameworkCore.csproj", "{B22DCAA4-FC9E-4F06-B1BA-41169341B215}"
-EndProject
-Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "ProductManagement.HttpApi", "modules\product\src\ProductManagement.HttpApi\ProductManagement.HttpApi.csproj", "{CFAD2A4B-445A-4EA3-8AF1-C054ECC2DFC5}"
-EndProject
-Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "ProductManagement.HttpApi.Client", "modules\product\src\ProductManagement.HttpApi.Client\ProductManagement.HttpApi.Client.csproj", "{4A1C1CF9-74A6-43F9-876C-BB0083EC6FB8}"
-EndProject
-Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "ProductManagement.Web", "modules\product\src\ProductManagement.Web\ProductManagement.Web.csproj", "{4A8594CB-8877-412B-9C80-90A5D3366095}"
-EndProject
-Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "ProductManagement.TestBase", "modules\product\test\ProductManagement.TestBase\ProductManagement.TestBase.csproj", "{4D3244F4-487F-4CED-A8C9-E88723EB835A}"
-EndProject
-Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "ProductManagement.EntityFrameworkCore.Tests", "modules\product\test\ProductManagement.EntityFrameworkCore.Tests\ProductManagement.EntityFrameworkCore.Tests.csproj", "{1FA2B816-7841-44B0-931C-D4F84DA7E146}"
-EndProject
-Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "ProductManagement.Domain.Tests", "modules\product\test\ProductManagement.Domain.Tests\ProductManagement.Domain.Tests.csproj", "{BDCDBC2D-C05B-4A18-A698-86525E3EFC95}"
-EndProject
-Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "ProductManagement.Application.Tests", "modules\product\test\ProductManagement.Application.Tests\ProductManagement.Application.Tests.csproj", "{B6F469F0-FB01-4A60-B6A6-D4127907E3B6}"
-EndProject
-Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "gateways", "gateways", "{617037ED-34E3-49A2-8958-BE2013E2D151}"
-EndProject
-Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "PublicWebSiteGateway.Host", "gateways\PublicWebSiteGateway.Host\PublicWebSiteGateway.Host.csproj", "{D48F6DDC-4AFC-4554-86B1-7763C0679B59}"
-EndProject
-Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "BackendAdminAppGateway.Host", "gateways\BackendAdminAppGateway.Host\BackendAdminAppGateway.Host.csproj", "{BD4ABDEA-2F09-4CB4-855F-B06C307A352E}"
-EndProject
-Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "InternalGateway.Host", "gateways\InternalGateway.Host\InternalGateway.Host.csproj", "{EAE8C1F5-C8D0-4132-A8CB-D374F2C363E2}"
-EndProject
-Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "BloggingService.Host", "microservices\BloggingService.Host\BloggingService.Host.csproj", "{79B45294-8352-4B19-824C-F5B84E52725A}"
-EndProject
-Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "IdentityService.Host", "microservices\IdentityService.Host\IdentityService.Host.csproj", "{6FDF254B-DEAF-4336-8F70-9E360E3E5B8B}"
-EndProject
-Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "ProductService.Host", "microservices\ProductService.Host\ProductService.Host.csproj", "{63E38ABD-0B26-44E5-84CA-557D3DFC9506}"
-EndProject
-Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "AuthServer.Host", "applications\AuthServer.Host\AuthServer.Host.csproj", "{F9F6CCC2-5985-4853-BBA1-A85D60373DBC}"
-EndProject
-Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "BackendAdminApp.Host", "applications\BackendAdminApp.Host\BackendAdminApp.Host.csproj", "{2199D857-C926-4948-A7F7-A11E344F90AA}"
-EndProject
-Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "ConsoleClientDemo", "applications\ConsoleClientDemo\ConsoleClientDemo.csproj", "{BB8FA269-460D-42BE-90A0-E97D6A3FDEB1}"
-EndProject
-Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "PublicWebSite.Host", "applications\PublicWebSite.Host\PublicWebSite.Host.csproj", "{29A3A4EF-DEC4-4E43-B6B8-D565667F85EC}"
-EndProject
-Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "TenantManagementService.Host", "microservices\TenantManagementService.Host\TenantManagementService.Host.csproj", "{3E1DDEDA-A897-470F-81C2-5A3AFA6D0B61}"
-EndProject
-Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "shared", "shared", "{2B3B460C-0293-44A1-BEF4-91A778CE73CE}"
-EndProject
-Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "MsDemo.Shared", "shared\MsDemo.Shared\MsDemo.Shared.csproj", "{D4549E30-18CC-4157-B994-C0097216C2C8}"
-EndProject
-Global
- GlobalSection(SolutionConfigurationPlatforms) = preSolution
- Debug|Any CPU = Debug|Any CPU
- Release|Any CPU = Release|Any CPU
- EndGlobalSection
- GlobalSection(ProjectConfigurationPlatforms) = postSolution
- {44A448CC-D8DD-4AA5-861A-78186FC5CE69}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
- {44A448CC-D8DD-4AA5-861A-78186FC5CE69}.Debug|Any CPU.Build.0 = Debug|Any CPU
- {44A448CC-D8DD-4AA5-861A-78186FC5CE69}.Release|Any CPU.ActiveCfg = Release|Any CPU
- {44A448CC-D8DD-4AA5-861A-78186FC5CE69}.Release|Any CPU.Build.0 = Release|Any CPU
- {65593638-9904-424B-831F-F5215EC4312B}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
- {65593638-9904-424B-831F-F5215EC4312B}.Debug|Any CPU.Build.0 = Debug|Any CPU
- {65593638-9904-424B-831F-F5215EC4312B}.Release|Any CPU.ActiveCfg = Release|Any CPU
- {65593638-9904-424B-831F-F5215EC4312B}.Release|Any CPU.Build.0 = Release|Any CPU
- {217CD5A1-182F-4D8D-88CA-16DC1EA8525A}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
- {217CD5A1-182F-4D8D-88CA-16DC1EA8525A}.Debug|Any CPU.Build.0 = Debug|Any CPU
- {217CD5A1-182F-4D8D-88CA-16DC1EA8525A}.Release|Any CPU.ActiveCfg = Release|Any CPU
- {217CD5A1-182F-4D8D-88CA-16DC1EA8525A}.Release|Any CPU.Build.0 = Release|Any CPU
- {66B2E371-2495-4E76-A6F9-540125C5FB37}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
- {66B2E371-2495-4E76-A6F9-540125C5FB37}.Debug|Any CPU.Build.0 = Debug|Any CPU
- {66B2E371-2495-4E76-A6F9-540125C5FB37}.Release|Any CPU.ActiveCfg = Release|Any CPU
- {66B2E371-2495-4E76-A6F9-540125C5FB37}.Release|Any CPU.Build.0 = Release|Any CPU
- {B22DCAA4-FC9E-4F06-B1BA-41169341B215}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
- {B22DCAA4-FC9E-4F06-B1BA-41169341B215}.Debug|Any CPU.Build.0 = Debug|Any CPU
- {B22DCAA4-FC9E-4F06-B1BA-41169341B215}.Release|Any CPU.ActiveCfg = Release|Any CPU
- {B22DCAA4-FC9E-4F06-B1BA-41169341B215}.Release|Any CPU.Build.0 = Release|Any CPU
- {CFAD2A4B-445A-4EA3-8AF1-C054ECC2DFC5}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
- {CFAD2A4B-445A-4EA3-8AF1-C054ECC2DFC5}.Debug|Any CPU.Build.0 = Debug|Any CPU
- {CFAD2A4B-445A-4EA3-8AF1-C054ECC2DFC5}.Release|Any CPU.ActiveCfg = Release|Any CPU
- {CFAD2A4B-445A-4EA3-8AF1-C054ECC2DFC5}.Release|Any CPU.Build.0 = Release|Any CPU
- {4A1C1CF9-74A6-43F9-876C-BB0083EC6FB8}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
- {4A1C1CF9-74A6-43F9-876C-BB0083EC6FB8}.Debug|Any CPU.Build.0 = Debug|Any CPU
- {4A1C1CF9-74A6-43F9-876C-BB0083EC6FB8}.Release|Any CPU.ActiveCfg = Release|Any CPU
- {4A1C1CF9-74A6-43F9-876C-BB0083EC6FB8}.Release|Any CPU.Build.0 = Release|Any CPU
- {4A8594CB-8877-412B-9C80-90A5D3366095}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
- {4A8594CB-8877-412B-9C80-90A5D3366095}.Debug|Any CPU.Build.0 = Debug|Any CPU
- {4A8594CB-8877-412B-9C80-90A5D3366095}.Release|Any CPU.ActiveCfg = Release|Any CPU
- {4A8594CB-8877-412B-9C80-90A5D3366095}.Release|Any CPU.Build.0 = Release|Any CPU
- {4D3244F4-487F-4CED-A8C9-E88723EB835A}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
- {4D3244F4-487F-4CED-A8C9-E88723EB835A}.Debug|Any CPU.Build.0 = Debug|Any CPU
- {4D3244F4-487F-4CED-A8C9-E88723EB835A}.Release|Any CPU.ActiveCfg = Release|Any CPU
- {4D3244F4-487F-4CED-A8C9-E88723EB835A}.Release|Any CPU.Build.0 = Release|Any CPU
- {1FA2B816-7841-44B0-931C-D4F84DA7E146}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
- {1FA2B816-7841-44B0-931C-D4F84DA7E146}.Debug|Any CPU.Build.0 = Debug|Any CPU
- {1FA2B816-7841-44B0-931C-D4F84DA7E146}.Release|Any CPU.ActiveCfg = Release|Any CPU
- {1FA2B816-7841-44B0-931C-D4F84DA7E146}.Release|Any CPU.Build.0 = Release|Any CPU
- {BDCDBC2D-C05B-4A18-A698-86525E3EFC95}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
- {BDCDBC2D-C05B-4A18-A698-86525E3EFC95}.Debug|Any CPU.Build.0 = Debug|Any CPU
- {BDCDBC2D-C05B-4A18-A698-86525E3EFC95}.Release|Any CPU.ActiveCfg = Release|Any CPU
- {BDCDBC2D-C05B-4A18-A698-86525E3EFC95}.Release|Any CPU.Build.0 = Release|Any CPU
- {B6F469F0-FB01-4A60-B6A6-D4127907E3B6}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
- {B6F469F0-FB01-4A60-B6A6-D4127907E3B6}.Debug|Any CPU.Build.0 = Debug|Any CPU
- {B6F469F0-FB01-4A60-B6A6-D4127907E3B6}.Release|Any CPU.ActiveCfg = Release|Any CPU
- {B6F469F0-FB01-4A60-B6A6-D4127907E3B6}.Release|Any CPU.Build.0 = Release|Any CPU
- {D48F6DDC-4AFC-4554-86B1-7763C0679B59}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
- {D48F6DDC-4AFC-4554-86B1-7763C0679B59}.Debug|Any CPU.Build.0 = Debug|Any CPU
- {D48F6DDC-4AFC-4554-86B1-7763C0679B59}.Release|Any CPU.ActiveCfg = Release|Any CPU
- {D48F6DDC-4AFC-4554-86B1-7763C0679B59}.Release|Any CPU.Build.0 = Release|Any CPU
- {BD4ABDEA-2F09-4CB4-855F-B06C307A352E}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
- {BD4ABDEA-2F09-4CB4-855F-B06C307A352E}.Debug|Any CPU.Build.0 = Debug|Any CPU
- {BD4ABDEA-2F09-4CB4-855F-B06C307A352E}.Release|Any CPU.ActiveCfg = Release|Any CPU
- {BD4ABDEA-2F09-4CB4-855F-B06C307A352E}.Release|Any CPU.Build.0 = Release|Any CPU
- {EAE8C1F5-C8D0-4132-A8CB-D374F2C363E2}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
- {EAE8C1F5-C8D0-4132-A8CB-D374F2C363E2}.Debug|Any CPU.Build.0 = Debug|Any CPU
- {EAE8C1F5-C8D0-4132-A8CB-D374F2C363E2}.Release|Any CPU.ActiveCfg = Release|Any CPU
- {EAE8C1F5-C8D0-4132-A8CB-D374F2C363E2}.Release|Any CPU.Build.0 = Release|Any CPU
- {79B45294-8352-4B19-824C-F5B84E52725A}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
- {79B45294-8352-4B19-824C-F5B84E52725A}.Debug|Any CPU.Build.0 = Debug|Any CPU
- {79B45294-8352-4B19-824C-F5B84E52725A}.Release|Any CPU.ActiveCfg = Release|Any CPU
- {79B45294-8352-4B19-824C-F5B84E52725A}.Release|Any CPU.Build.0 = Release|Any CPU
- {6FDF254B-DEAF-4336-8F70-9E360E3E5B8B}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
- {6FDF254B-DEAF-4336-8F70-9E360E3E5B8B}.Debug|Any CPU.Build.0 = Debug|Any CPU
- {6FDF254B-DEAF-4336-8F70-9E360E3E5B8B}.Release|Any CPU.ActiveCfg = Release|Any CPU
- {6FDF254B-DEAF-4336-8F70-9E360E3E5B8B}.Release|Any CPU.Build.0 = Release|Any CPU
- {63E38ABD-0B26-44E5-84CA-557D3DFC9506}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
- {63E38ABD-0B26-44E5-84CA-557D3DFC9506}.Debug|Any CPU.Build.0 = Debug|Any CPU
- {63E38ABD-0B26-44E5-84CA-557D3DFC9506}.Release|Any CPU.ActiveCfg = Release|Any CPU
- {63E38ABD-0B26-44E5-84CA-557D3DFC9506}.Release|Any CPU.Build.0 = Release|Any CPU
- {F9F6CCC2-5985-4853-BBA1-A85D60373DBC}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
- {F9F6CCC2-5985-4853-BBA1-A85D60373DBC}.Debug|Any CPU.Build.0 = Debug|Any CPU
- {F9F6CCC2-5985-4853-BBA1-A85D60373DBC}.Release|Any CPU.ActiveCfg = Release|Any CPU
- {F9F6CCC2-5985-4853-BBA1-A85D60373DBC}.Release|Any CPU.Build.0 = Release|Any CPU
- {2199D857-C926-4948-A7F7-A11E344F90AA}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
- {2199D857-C926-4948-A7F7-A11E344F90AA}.Debug|Any CPU.Build.0 = Debug|Any CPU
- {2199D857-C926-4948-A7F7-A11E344F90AA}.Release|Any CPU.ActiveCfg = Release|Any CPU
- {2199D857-C926-4948-A7F7-A11E344F90AA}.Release|Any CPU.Build.0 = Release|Any CPU
- {BB8FA269-460D-42BE-90A0-E97D6A3FDEB1}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
- {BB8FA269-460D-42BE-90A0-E97D6A3FDEB1}.Debug|Any CPU.Build.0 = Debug|Any CPU
- {BB8FA269-460D-42BE-90A0-E97D6A3FDEB1}.Release|Any CPU.ActiveCfg = Release|Any CPU
- {BB8FA269-460D-42BE-90A0-E97D6A3FDEB1}.Release|Any CPU.Build.0 = Release|Any CPU
- {29A3A4EF-DEC4-4E43-B6B8-D565667F85EC}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
- {29A3A4EF-DEC4-4E43-B6B8-D565667F85EC}.Debug|Any CPU.Build.0 = Debug|Any CPU
- {29A3A4EF-DEC4-4E43-B6B8-D565667F85EC}.Release|Any CPU.ActiveCfg = Release|Any CPU
- {29A3A4EF-DEC4-4E43-B6B8-D565667F85EC}.Release|Any CPU.Build.0 = Release|Any CPU
- {3E1DDEDA-A897-470F-81C2-5A3AFA6D0B61}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
- {3E1DDEDA-A897-470F-81C2-5A3AFA6D0B61}.Debug|Any CPU.Build.0 = Debug|Any CPU
- {3E1DDEDA-A897-470F-81C2-5A3AFA6D0B61}.Release|Any CPU.ActiveCfg = Release|Any CPU
- {3E1DDEDA-A897-470F-81C2-5A3AFA6D0B61}.Release|Any CPU.Build.0 = Release|Any CPU
- {D4549E30-18CC-4157-B994-C0097216C2C8}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
- {D4549E30-18CC-4157-B994-C0097216C2C8}.Debug|Any CPU.Build.0 = Debug|Any CPU
- {D4549E30-18CC-4157-B994-C0097216C2C8}.Release|Any CPU.ActiveCfg = Release|Any CPU
- {D4549E30-18CC-4157-B994-C0097216C2C8}.Release|Any CPU.Build.0 = Release|Any CPU
- EndGlobalSection
- GlobalSection(SolutionProperties) = preSolution
- HideSolutionNode = FALSE
- EndGlobalSection
- GlobalSection(NestedProjects) = preSolution
- {8FFAECCC-B4A6-4441-AD10-379ADEDD5A19} = {818134CC-2F7F-41B9-ACA6-87F0650F5D52}
- {F84AC200-1E5A-4FC3-9407-FB2FF527EDA8} = {8FFAECCC-B4A6-4441-AD10-379ADEDD5A19}
- {D1526262-55E0-43F1-9EF1-C6095E76A9E2} = {8FFAECCC-B4A6-4441-AD10-379ADEDD5A19}
- {44A448CC-D8DD-4AA5-861A-78186FC5CE69} = {F84AC200-1E5A-4FC3-9407-FB2FF527EDA8}
- {65593638-9904-424B-831F-F5215EC4312B} = {F84AC200-1E5A-4FC3-9407-FB2FF527EDA8}
- {217CD5A1-182F-4D8D-88CA-16DC1EA8525A} = {F84AC200-1E5A-4FC3-9407-FB2FF527EDA8}
- {66B2E371-2495-4E76-A6F9-540125C5FB37} = {F84AC200-1E5A-4FC3-9407-FB2FF527EDA8}
- {B22DCAA4-FC9E-4F06-B1BA-41169341B215} = {F84AC200-1E5A-4FC3-9407-FB2FF527EDA8}
- {CFAD2A4B-445A-4EA3-8AF1-C054ECC2DFC5} = {F84AC200-1E5A-4FC3-9407-FB2FF527EDA8}
- {4A1C1CF9-74A6-43F9-876C-BB0083EC6FB8} = {F84AC200-1E5A-4FC3-9407-FB2FF527EDA8}
- {4A8594CB-8877-412B-9C80-90A5D3366095} = {F84AC200-1E5A-4FC3-9407-FB2FF527EDA8}
- {4D3244F4-487F-4CED-A8C9-E88723EB835A} = {D1526262-55E0-43F1-9EF1-C6095E76A9E2}
- {1FA2B816-7841-44B0-931C-D4F84DA7E146} = {D1526262-55E0-43F1-9EF1-C6095E76A9E2}
- {BDCDBC2D-C05B-4A18-A698-86525E3EFC95} = {D1526262-55E0-43F1-9EF1-C6095E76A9E2}
- {B6F469F0-FB01-4A60-B6A6-D4127907E3B6} = {D1526262-55E0-43F1-9EF1-C6095E76A9E2}
- {D48F6DDC-4AFC-4554-86B1-7763C0679B59} = {617037ED-34E3-49A2-8958-BE2013E2D151}
- {BD4ABDEA-2F09-4CB4-855F-B06C307A352E} = {617037ED-34E3-49A2-8958-BE2013E2D151}
- {EAE8C1F5-C8D0-4132-A8CB-D374F2C363E2} = {617037ED-34E3-49A2-8958-BE2013E2D151}
- {79B45294-8352-4B19-824C-F5B84E52725A} = {3B26D176-390B-4F51-BE52-E9B422C28A88}
- {6FDF254B-DEAF-4336-8F70-9E360E3E5B8B} = {3B26D176-390B-4F51-BE52-E9B422C28A88}
- {63E38ABD-0B26-44E5-84CA-557D3DFC9506} = {3B26D176-390B-4F51-BE52-E9B422C28A88}
- {F9F6CCC2-5985-4853-BBA1-A85D60373DBC} = {8F6834D7-E6FA-4A04-83BB-955F68EA0A0A}
- {2199D857-C926-4948-A7F7-A11E344F90AA} = {8F6834D7-E6FA-4A04-83BB-955F68EA0A0A}
- {BB8FA269-460D-42BE-90A0-E97D6A3FDEB1} = {8F6834D7-E6FA-4A04-83BB-955F68EA0A0A}
- {29A3A4EF-DEC4-4E43-B6B8-D565667F85EC} = {8F6834D7-E6FA-4A04-83BB-955F68EA0A0A}
- {3E1DDEDA-A897-470F-81C2-5A3AFA6D0B61} = {3B26D176-390B-4F51-BE52-E9B422C28A88}
- {D4549E30-18CC-4157-B994-C0097216C2C8} = {2B3B460C-0293-44A1-BEF4-91A778CE73CE}
- EndGlobalSection
- GlobalSection(ExtensibilityGlobals) = postSolution
- SolutionGuid = {37474F0D-2E52-4D2F-B39B-7FE3FF31B4EC}
- EndGlobalSection
-EndGlobal
diff --git a/samples/MicroserviceDemo/README.md b/samples/MicroserviceDemo/README.md
deleted file mode 100644
index 612d1d0153..0000000000
--- a/samples/MicroserviceDemo/README.md
+++ /dev/null
@@ -1,4 +0,0 @@
-# Microservice Demo Solution
-
-This sample aims to demonstrate a simple yet complete microservice solution. See the [documentation](https://abp.io/documents/abp/latest/Samples/Microservice-Demo).
-
diff --git a/samples/MicroserviceDemo/_run/01_AuthServer.ps1 b/samples/MicroserviceDemo/_run/01_AuthServer.ps1
deleted file mode 100644
index 14d1b32981..0000000000
--- a/samples/MicroserviceDemo/_run/01_AuthServer.ps1
+++ /dev/null
@@ -1,2 +0,0 @@
-cd ../applications/AuthServer.Host
-dotnet run
\ No newline at end of file
diff --git a/samples/MicroserviceDemo/_run/02_IdentityService.ps1 b/samples/MicroserviceDemo/_run/02_IdentityService.ps1
deleted file mode 100644
index c47c8406c3..0000000000
--- a/samples/MicroserviceDemo/_run/02_IdentityService.ps1
+++ /dev/null
@@ -1,2 +0,0 @@
-cd ../microservices/IdentityService.Host
-dotnet run
\ No newline at end of file
diff --git a/samples/MicroserviceDemo/_run/03_BloggingService.ps1 b/samples/MicroserviceDemo/_run/03_BloggingService.ps1
deleted file mode 100644
index 65b2c9ca11..0000000000
--- a/samples/MicroserviceDemo/_run/03_BloggingService.ps1
+++ /dev/null
@@ -1,2 +0,0 @@
-cd ../microservices/BloggingService.Host
-dotnet run
\ No newline at end of file
diff --git a/samples/MicroserviceDemo/_run/04_ProductService.ps1 b/samples/MicroserviceDemo/_run/04_ProductService.ps1
deleted file mode 100644
index 1181edd4e0..0000000000
--- a/samples/MicroserviceDemo/_run/04_ProductService.ps1
+++ /dev/null
@@ -1,2 +0,0 @@
-cd ../microservices/ProductService.Host
-dotnet run
\ No newline at end of file
diff --git a/samples/MicroserviceDemo/_run/05_InternalGateway.ps1 b/samples/MicroserviceDemo/_run/05_InternalGateway.ps1
deleted file mode 100644
index f27befba7b..0000000000
--- a/samples/MicroserviceDemo/_run/05_InternalGateway.ps1
+++ /dev/null
@@ -1,2 +0,0 @@
-cd ../gateways/InternalGateway.Host
-dotnet run
\ No newline at end of file
diff --git a/samples/MicroserviceDemo/_run/06_BackendAdminAppGateway.ps1 b/samples/MicroserviceDemo/_run/06_BackendAdminAppGateway.ps1
deleted file mode 100644
index 3d819542c2..0000000000
--- a/samples/MicroserviceDemo/_run/06_BackendAdminAppGateway.ps1
+++ /dev/null
@@ -1,2 +0,0 @@
-cd ../gateways/BackendAdminAppGateway.Host
-dotnet run
\ No newline at end of file
diff --git a/samples/MicroserviceDemo/_run/07_PublicWebSiteGateway.ps1 b/samples/MicroserviceDemo/_run/07_PublicWebSiteGateway.ps1
deleted file mode 100644
index 009f45bc66..0000000000
--- a/samples/MicroserviceDemo/_run/07_PublicWebSiteGateway.ps1
+++ /dev/null
@@ -1,2 +0,0 @@
-cd ../gateways/PublicWebSiteGateway.Host
-dotnet run
\ No newline at end of file
diff --git a/samples/MicroserviceDemo/_run/08_BackendAdminApp.ps1 b/samples/MicroserviceDemo/_run/08_BackendAdminApp.ps1
deleted file mode 100644
index 356d7ac981..0000000000
--- a/samples/MicroserviceDemo/_run/08_BackendAdminApp.ps1
+++ /dev/null
@@ -1,2 +0,0 @@
-cd ../applications/BackendAdminApp.Host
-dotnet run
\ No newline at end of file
diff --git a/samples/MicroserviceDemo/_run/09_PublicWebSite.ps1 b/samples/MicroserviceDemo/_run/09_PublicWebSite.ps1
deleted file mode 100644
index 24d31ced0f..0000000000
--- a/samples/MicroserviceDemo/_run/09_PublicWebSite.ps1
+++ /dev/null
@@ -1,2 +0,0 @@
-cd ../applications/PublicWebSite.Host
-dotnet run
\ No newline at end of file
diff --git a/samples/MicroserviceDemo/_run/10_ConsoleClientDemo.ps1 b/samples/MicroserviceDemo/_run/10_ConsoleClientDemo.ps1
deleted file mode 100644
index 0fc3d40edc..0000000000
--- a/samples/MicroserviceDemo/_run/10_ConsoleClientDemo.ps1
+++ /dev/null
@@ -1,2 +0,0 @@
-cd ../applications/ConsoleClientDemo
-dotnet run
\ No newline at end of file
diff --git a/samples/MicroserviceDemo/_run/README.md b/samples/MicroserviceDemo/_run/README.md
deleted file mode 100644
index f81e093cc2..0000000000
--- a/samples/MicroserviceDemo/_run/README.md
+++ /dev/null
@@ -1,19 +0,0 @@
-# Run the Microservice Demo Solution
-
-This folder contains PowerShell files to run the system:
-
-* **__Run_All_Application.ps1**: Runs all the applications in one click.
-* **__Run_Browser.ps1**: Opens all the UIs of the applications in Google Chrome browser.
-
-Other files runs the individual applications.
-
-> This files are only tested in Windows 10.
-
-### Pre-Requirements
-
-- [SQL Server](https://www.microsoft.com/en-us/sql-server/sql-server-downloads) 2015+ (can be [express edition](https://www.microsoft.com/en-us/sql-server/sql-server-editions-express))
-- [Redis](https://redis.io/download) 5.0+
-- [RabbitMQ](https://www.rabbitmq.com/install-windows.html) 3.7.11+
-- [MongoDB](https://www.mongodb.com/download-center) 4.0+
-- [ElasticSearch](https://www.elastic.co/downloads/elasticsearch) 6.6+
-- [Kibana](https://www.elastic.co/downloads/kibana) 6.6+ (optional, recommended to see logs)
\ No newline at end of file
diff --git a/samples/MicroserviceDemo/_run/__Run_All_Application.ps1 b/samples/MicroserviceDemo/_run/__Run_All_Application.ps1
deleted file mode 100644
index 9129959d85..0000000000
--- a/samples/MicroserviceDemo/_run/__Run_All_Application.ps1
+++ /dev/null
@@ -1,9 +0,0 @@
-start powershell .\01_AuthServer.ps1
-start powershell .\02_IdentityService.ps1
-start powershell .\03_BloggingService.ps1
-start powershell .\04_ProductService.ps1
-start powershell .\05_InternalGateway.ps1
-start powershell .\06_BackendAdminAppGateway.ps1
-start powershell .\07_PublicWebSiteGateway.ps1
-start powershell .\08_BackendAdminApp.ps1
-start powershell .\09_PublicWebSite.ps1
\ No newline at end of file
diff --git a/samples/MicroserviceDemo/_run/__Run_Browser.ps1 b/samples/MicroserviceDemo/_run/__Run_Browser.ps1
deleted file mode 100644
index 50c010b9bb..0000000000
--- a/samples/MicroserviceDemo/_run/__Run_Browser.ps1
+++ /dev/null
@@ -1 +0,0 @@
-start chrome http://localhost:64999,http://localhost:63568,http://localhost:62157,http://localhost:60244,http://localhost:65129/swagger,http://localhost:65115/swagger,http://localhost:64897/swagger,http://localhost:51954,http://localhost:53435
\ No newline at end of file
diff --git a/samples/MicroserviceDemo/applications/AuthServer.Host/AuthServer.Host.csproj b/samples/MicroserviceDemo/applications/AuthServer.Host/AuthServer.Host.csproj
deleted file mode 100644
index e444522399..0000000000
--- a/samples/MicroserviceDemo/applications/AuthServer.Host/AuthServer.Host.csproj
+++ /dev/null
@@ -1,49 +0,0 @@
-
-
-
- netcoreapp3.1
- $(AssetTargetFallback);portable-net45+win8+wp8+wpa81;
- true
- true
- true
- true
- false
- true
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
diff --git a/samples/MicroserviceDemo/applications/AuthServer.Host/AuthServerDataSeeder.cs b/samples/MicroserviceDemo/applications/AuthServer.Host/AuthServerDataSeeder.cs
deleted file mode 100644
index 7b07a0eb8c..0000000000
--- a/samples/MicroserviceDemo/applications/AuthServer.Host/AuthServerDataSeeder.cs
+++ /dev/null
@@ -1,227 +0,0 @@
-using System.Collections.Generic;
-using System.Linq;
-using System.Threading.Tasks;
-using Volo.Abp.Authorization.Permissions;
-using Volo.Abp.Data;
-using Volo.Abp.DependencyInjection;
-using Volo.Abp.Guids;
-using Volo.Abp.Identity;
-using Volo.Abp.IdentityServer.ApiResources;
-using Volo.Abp.IdentityServer.Clients;
-using Volo.Abp.IdentityServer.IdentityResources;
-using Volo.Abp.PermissionManagement;
-using Volo.Abp.TenantManagement;
-using Volo.Abp.Uow;
-
-namespace AuthServer.Host
-{
- public class AuthServerDataSeeder : IDataSeedContributor, ITransientDependency
- {
- private readonly IApiResourceRepository _apiResourceRepository;
- private readonly IClientRepository _clientRepository;
- private readonly IIdentityResourceDataSeeder _identityResourceDataSeeder;
- private readonly IGuidGenerator _guidGenerator;
- private readonly IPermissionDataSeeder _permissionDataSeeder;
-
- public AuthServerDataSeeder(
- IClientRepository clientRepository,
- IApiResourceRepository apiResourceRepository,
- IIdentityResourceDataSeeder identityResourceDataSeeder,
- IGuidGenerator guidGenerator,
- IPermissionDataSeeder permissionDataSeeder)
- {
- _clientRepository = clientRepository;
- _apiResourceRepository = apiResourceRepository;
- _identityResourceDataSeeder = identityResourceDataSeeder;
- _guidGenerator = guidGenerator;
- _permissionDataSeeder = permissionDataSeeder;
- }
-
- [UnitOfWork]
- public virtual async Task SeedAsync(DataSeedContext context)
- {
- await _identityResourceDataSeeder.CreateStandardResourcesAsync();
- await CreateApiResourcesAsync();
- await CreateClientsAsync();
- }
-
- private async Task CreateApiResourcesAsync()
- {
- var commonApiUserClaims = new[]
- {
- "email",
- "email_verified",
- "name",
- "phone_number",
- "phone_number_verified",
- "role"
- };
-
- await CreateApiResourceAsync("IdentityService", commonApiUserClaims);
- await CreateApiResourceAsync("TenantManagementService", commonApiUserClaims);
- await CreateApiResourceAsync("BloggingService", commonApiUserClaims);
- await CreateApiResourceAsync("ProductService", commonApiUserClaims);
- await CreateApiResourceAsync("InternalGateway", commonApiUserClaims);
- await CreateApiResourceAsync("BackendAdminAppGateway", commonApiUserClaims);
- await CreateApiResourceAsync("PublicWebSiteGateway", commonApiUserClaims);
- }
-
- private async Task CreateApiResourceAsync(string name, IEnumerable claims)
- {
- var apiResource = await _apiResourceRepository.FindByNameAsync(name);
- if (apiResource == null)
- {
- apiResource = await _apiResourceRepository.InsertAsync(
- new ApiResource(
- _guidGenerator.Create(),
- name,
- name + " API"
- ),
- autoSave: true
- );
- }
-
- foreach (var claim in claims)
- {
- if (apiResource.FindClaim(claim) == null)
- {
- apiResource.AddUserClaim(claim);
- }
- }
-
- return await _apiResourceRepository.UpdateAsync(apiResource);
- }
-
- private async Task CreateClientsAsync()
- {
- const string commonSecret = "E5Xd4yMqjP5kjWFKrYgySBju6JVfCzMyFp7n2QmMrME=";
-
- var commonScopes = new[]
- {
- "email",
- "openid",
- "profile",
- "role",
- "phone",
- "address"
- };
-
- await CreateClientAsync(
- "console-client-demo",
- new[] { "BloggingService", "IdentityService", "InternalGateway", "ProductService", "TenantManagementService" },
- new[] { "client_credentials", "password" },
- commonSecret,
- permissions: new[] { IdentityPermissions.Users.Default, TenantManagementPermissions.Tenants.Default, "ProductManagement.Product" }
- );
-
- await CreateClientAsync(
- "backend-admin-app-client",
- commonScopes.Union(new[] { "BackendAdminAppGateway", "IdentityService", "ProductService", "TenantManagementService" }),
- new[] { "hybrid" },
- commonSecret,
- permissions: new[] { IdentityPermissions.Users.Default, "ProductManagement.Product" },
- redirectUri: "http://localhost:51954/signin-oidc",
- postLogoutRedirectUri: "http://localhost:51954/signout-callback-oidc"
- );
-
- await CreateClientAsync(
- "public-website-client",
- commonScopes.Union(new[] { "PublicWebSiteGateway", "BloggingService", "ProductService" }),
- new[] { "hybrid" },
- commonSecret,
- redirectUri: "http://localhost:53435/signin-oidc",
- postLogoutRedirectUri: "http://localhost:53435/signout-callback-oidc"
- );
-
- await CreateClientAsync(
- "blogging-service-client",
- new[] { "InternalGateway", "IdentityService" },
- new[] { "client_credentials" },
- commonSecret,
- permissions: new[] { IdentityPermissions.UserLookup.Default }
- );
- }
-
- private async Task CreateClientAsync(
- string name,
- IEnumerable scopes,
- IEnumerable grantTypes,
- string secret,
- string redirectUri = null,
- string postLogoutRedirectUri = null,
- IEnumerable permissions = null)
- {
- var client = await _clientRepository.FindByCliendIdAsync(name);
- if (client == null)
- {
- client = await _clientRepository.InsertAsync(
- new Client(
- _guidGenerator.Create(),
- name
- )
- {
- ClientName = name,
- ProtocolType = "oidc",
- Description = name,
- AlwaysIncludeUserClaimsInIdToken = true,
- AllowOfflineAccess = true,
- AbsoluteRefreshTokenLifetime = 31536000, //365 days
- AccessTokenLifetime = 31536000, //365 days
- AuthorizationCodeLifetime = 300,
- IdentityTokenLifetime = 300,
- RequireConsent = false
- },
- autoSave: true
- );
- }
-
- foreach (var scope in scopes)
- {
- if (client.FindScope(scope) == null)
- {
- client.AddScope(scope);
- }
- }
-
- foreach (var grantType in grantTypes)
- {
- if (client.FindGrantType(grantType) == null)
- {
- client.AddGrantType(grantType);
- }
- }
-
- if (client.FindSecret(secret) == null)
- {
- client.AddSecret(secret);
- }
-
- if (redirectUri != null)
- {
- if (client.FindRedirectUri(redirectUri) == null)
- {
- client.AddRedirectUri(redirectUri);
- }
- }
-
- if (postLogoutRedirectUri != null)
- {
- if (client.FindPostLogoutRedirectUri(postLogoutRedirectUri) == null)
- {
- client.AddPostLogoutRedirectUri(postLogoutRedirectUri);
- }
- }
-
- if (permissions != null)
- {
- await _permissionDataSeeder.SeedAsync(
- ClientPermissionValueProvider.ProviderName,
- name,
- permissions
- );
- }
-
- return await _clientRepository.UpdateAsync(client);
- }
- }
-}
diff --git a/samples/MicroserviceDemo/applications/AuthServer.Host/AuthServerHostModule.cs b/samples/MicroserviceDemo/applications/AuthServer.Host/AuthServerHostModule.cs
deleted file mode 100644
index 095f3c5ddc..0000000000
--- a/samples/MicroserviceDemo/applications/AuthServer.Host/AuthServerHostModule.cs
+++ /dev/null
@@ -1,119 +0,0 @@
-using AuthServer.Host.EntityFrameworkCore;
-using Microsoft.AspNetCore.Builder;
-using Microsoft.AspNetCore.DataProtection;
-using Microsoft.Extensions.DependencyInjection;
-using MsDemo.Shared;
-using StackExchange.Redis;
-using Volo.Abp;
-using Volo.Abp.Account;
-using Volo.Abp.Account.Web;
-using Volo.Abp.AspNetCore.Mvc.UI.Theme.Basic;
-using Volo.Abp.Auditing;
-using Volo.Abp.AuditLogging.EntityFrameworkCore;
-using Volo.Abp.Autofac;
-using Volo.Abp.Data;
-using Volo.Abp.EntityFrameworkCore;
-using Volo.Abp.EntityFrameworkCore.SqlServer;
-using Volo.Abp.EventBus.RabbitMq;
-using Volo.Abp.Identity;
-using Volo.Abp.Identity.EntityFrameworkCore;
-using Volo.Abp.IdentityServer.EntityFrameworkCore;
-using Volo.Abp.Localization;
-using Volo.Abp.Modularity;
-using Volo.Abp.MultiTenancy;
-using Volo.Abp.PermissionManagement.EntityFrameworkCore;
-using Volo.Abp.SettingManagement.EntityFrameworkCore;
-using Volo.Abp.TenantManagement;
-using Volo.Abp.TenantManagement.EntityFrameworkCore;
-using Volo.Abp.Threading;
-
-namespace AuthServer.Host
-{
- [DependsOn(
- typeof(AbpAutofacModule),
- typeof(AbpEventBusRabbitMqModule),
- typeof(AbpPermissionManagementEntityFrameworkCoreModule),
- typeof(AbpAuditLoggingEntityFrameworkCoreModule),
- typeof(AbpSettingManagementEntityFrameworkCoreModule),
- typeof(AbpIdentityEntityFrameworkCoreModule),
- typeof(AbpIdentityApplicationContractsModule),
- typeof(AbpAccountApplicationModule),
- typeof(AbpIdentityServerEntityFrameworkCoreModule),
- typeof(AbpEntityFrameworkCoreSqlServerModule),
- typeof(AbpAccountWebIdentityServerModule),
- typeof(AbpAspNetCoreMvcUiBasicThemeModule),
- typeof(AbpTenantManagementEntityFrameworkCoreModule),
- typeof(AbpTenantManagementApplicationContractsModule)
- )]
- public class AuthServerHostModule : AbpModule
- {
- public override void ConfigureServices(ServiceConfigurationContext context)
- {
- var configuration = context.Services.GetConfiguration();
-
- context.Services.AddAbpDbContext(options =>
- {
- options.AddDefaultRepositories();
- });
-
- Configure(options =>
- {
- options.IsEnabled = MsDemoConsts.IsMultiTenancyEnabled;
- });
-
- Configure(options =>
- {
- options.UseSqlServer();
- });
-
- Configure(options =>
- {
- options.Languages.Add(new LanguageInfo("en", "en", "English"));
- });
-
- context.Services.AddStackExchangeRedisCache(options =>
- {
- options.Configuration = configuration["Redis:Configuration"];
- });
-
- Configure(options =>
- {
- options.IsEnabledForGetRequests = true;
- options.ApplicationName = "AuthServer";
- });
-
- //TODO: ConnectionMultiplexer.Connect call has problem since redis may not be ready when this service has started!
- var redis = ConnectionMultiplexer.Connect(configuration["Redis:Configuration"]);
- context.Services.AddDataProtection()
- .PersistKeysToStackExchangeRedis(redis, "MsDemo-DataProtection-Keys");
- }
-
- public override void OnApplicationInitialization(ApplicationInitializationContext context)
- {
- var app = context.GetApplicationBuilder();
-
- app.UseCorrelationId();
- app.UseVirtualFiles();
- app.UseRouting();
- app.UseAbpRequestLocalization();
- if (MsDemoConsts.IsMultiTenancyEnabled)
- {
- app.UseMultiTenancy();
- }
- app.UseIdentityServer();
- app.UseAuditing();
- app.UseConfiguredEndpoints();
-
- //TODO: Problem on a clustered environment
- AsyncHelper.RunSync(async () =>
- {
- using (var scope = context.ServiceProvider.CreateScope())
- {
- await scope.ServiceProvider
- .GetRequiredService()
- .SeedAsync();
- }
- });
- }
- }
-}
diff --git a/samples/MicroserviceDemo/applications/AuthServer.Host/BrandingProvider.cs b/samples/MicroserviceDemo/applications/AuthServer.Host/BrandingProvider.cs
deleted file mode 100644
index 59dacdcfd3..0000000000
--- a/samples/MicroserviceDemo/applications/AuthServer.Host/BrandingProvider.cs
+++ /dev/null
@@ -1,10 +0,0 @@
-using Volo.Abp.AspNetCore.Mvc.UI.Theme.Shared.Components;
-using Volo.Abp.DependencyInjection;
-
-namespace AuthServer.Host
-{
- public class BrandingProvider : DefaultBrandingProvider, ISingletonDependency
- {
- public override string AppName => "Authentication Server";
- }
-}
diff --git a/samples/MicroserviceDemo/applications/AuthServer.Host/Dockerfile b/samples/MicroserviceDemo/applications/AuthServer.Host/Dockerfile
deleted file mode 100644
index 246a057f47..0000000000
--- a/samples/MicroserviceDemo/applications/AuthServer.Host/Dockerfile
+++ /dev/null
@@ -1,18 +0,0 @@
-FROM mcr.microsoft.com/dotnet/core/aspnet:3.0-buster-slim AS base
-WORKDIR /app
-EXPOSE 80
-
-FROM mcr.microsoft.com/dotnet/core/sdk:3.0-buster AS build
-WORKDIR /src
-COPY . .
-WORKDIR "/src/samples/MicroserviceDemo/applications/AuthServer.Host"
-RUN dotnet restore -nowarn:msb3202,nu1503
-RUN dotnet build --no-restore -c Release -o /app
-
-FROM build AS publish
-RUN dotnet publish --no-restore -c Release -o /app
-
-FROM base AS final
-WORKDIR /app
-COPY --from=publish /app .
-ENTRYPOINT ["dotnet", "AuthServer.Host.dll"]
diff --git a/samples/MicroserviceDemo/applications/AuthServer.Host/EntityFrameworkCore/AuthServerDbContext.cs b/samples/MicroserviceDemo/applications/AuthServer.Host/EntityFrameworkCore/AuthServerDbContext.cs
deleted file mode 100644
index 49c4f705c0..0000000000
--- a/samples/MicroserviceDemo/applications/AuthServer.Host/EntityFrameworkCore/AuthServerDbContext.cs
+++ /dev/null
@@ -1,34 +0,0 @@
-using Microsoft.EntityFrameworkCore;
-using Volo.Abp.AuditLogging.EntityFrameworkCore;
-using Volo.Abp.EntityFrameworkCore;
-using Volo.Abp.FeatureManagement.EntityFrameworkCore;
-using Volo.Abp.Identity.EntityFrameworkCore;
-using Volo.Abp.IdentityServer.EntityFrameworkCore;
-using Volo.Abp.PermissionManagement.EntityFrameworkCore;
-using Volo.Abp.SettingManagement.EntityFrameworkCore;
-using Volo.Abp.TenantManagement.EntityFrameworkCore;
-
-namespace AuthServer.Host.EntityFrameworkCore
-{
- public class AuthServerDbContext : AbpDbContext
- {
- public AuthServerDbContext(DbContextOptions options)
- : base(options)
- {
-
- }
-
- protected override void OnModelCreating(ModelBuilder modelBuilder)
- {
- base.OnModelCreating(modelBuilder);
-
- modelBuilder.ConfigureIdentity();
- modelBuilder.ConfigureIdentityServer();
- modelBuilder.ConfigureAuditLogging();
- modelBuilder.ConfigurePermissionManagement();
- modelBuilder.ConfigureSettingManagement();
- modelBuilder.ConfigureTenantManagement();
- modelBuilder.ConfigureFeatureManagement();
- }
- }
-}
diff --git a/samples/MicroserviceDemo/applications/AuthServer.Host/EntityFrameworkCore/AuthServerDbContextFactory.cs b/samples/MicroserviceDemo/applications/AuthServer.Host/EntityFrameworkCore/AuthServerDbContextFactory.cs
deleted file mode 100644
index 2a001134dd..0000000000
--- a/samples/MicroserviceDemo/applications/AuthServer.Host/EntityFrameworkCore/AuthServerDbContextFactory.cs
+++ /dev/null
@@ -1,29 +0,0 @@
-using System.IO;
-using Microsoft.EntityFrameworkCore;
-using Microsoft.EntityFrameworkCore.Design;
-using Microsoft.Extensions.Configuration;
-
-namespace AuthServer.Host.EntityFrameworkCore
-{
- public class AuthServerDbContextFactory : IDesignTimeDbContextFactory
- {
- public AuthServerDbContext CreateDbContext(string[] args)
- {
- var configuration = BuildConfiguration();
-
- var builder = new DbContextOptionsBuilder()
- .UseSqlServer(configuration.GetConnectionString("Default"));
-
- return new AuthServerDbContext(builder.Options);
- }
-
- private static IConfigurationRoot BuildConfiguration()
- {
- var builder = new ConfigurationBuilder()
- .SetBasePath(Directory.GetCurrentDirectory())
- .AddJsonFile("appsettings.json", optional: false);
-
- return builder.Build();
- }
- }
-}
diff --git a/samples/MicroserviceDemo/applications/AuthServer.Host/Migrations/20200106080946_Initial.Designer.cs b/samples/MicroserviceDemo/applications/AuthServer.Host/Migrations/20200106080946_Initial.Designer.cs
deleted file mode 100644
index d2a14947aa..0000000000
--- a/samples/MicroserviceDemo/applications/AuthServer.Host/Migrations/20200106080946_Initial.Designer.cs
+++ /dev/null
@@ -1,1590 +0,0 @@
-//
-using System;
-using AuthServer.Host.EntityFrameworkCore;
-using Microsoft.EntityFrameworkCore;
-using Microsoft.EntityFrameworkCore.Infrastructure;
-using Microsoft.EntityFrameworkCore.Metadata;
-using Microsoft.EntityFrameworkCore.Migrations;
-using Microsoft.EntityFrameworkCore.Storage.ValueConversion;
-
-namespace AuthServer.Host.Migrations
-{
- [DbContext(typeof(AuthServerDbContext))]
- [Migration("20200106080946_Initial")]
- partial class Initial
- {
- protected override void BuildTargetModel(ModelBuilder modelBuilder)
- {
-#pragma warning disable 612, 618
- modelBuilder
- .HasAnnotation("ProductVersion", "3.1.0")
- .HasAnnotation("Relational:MaxIdentifierLength", 128)
- .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn);
-
- modelBuilder.Entity("Volo.Abp.AuditLogging.AuditLog", b =>
- {
- b.Property("Id")
- .ValueGeneratedOnAdd()
- .HasColumnType("uniqueidentifier");
-
- b.Property("ApplicationName")
- .HasColumnName("ApplicationName")
- .HasColumnType("nvarchar(96)")
- .HasMaxLength(96);
-
- b.Property("BrowserInfo")
- .HasColumnName("BrowserInfo")
- .HasColumnType("nvarchar(512)")
- .HasMaxLength(512);
-
- b.Property("ClientId")
- .HasColumnName("ClientId")
- .HasColumnType("nvarchar(64)")
- .HasMaxLength(64);
-
- b.Property("ClientIpAddress")
- .HasColumnName("ClientIpAddress")
- .HasColumnType("nvarchar(64)")
- .HasMaxLength(64);
-
- b.Property("ClientName")
- .HasColumnName("ClientName")
- .HasColumnType("nvarchar(128)")
- .HasMaxLength(128);
-
- b.Property("Comments")
- .HasColumnName("Comments")
- .HasColumnType("nvarchar(256)")
- .HasMaxLength(256);
-
- b.Property("ConcurrencyStamp")
- .HasColumnType("nvarchar(max)");
-
- b.Property("CorrelationId")
- .HasColumnName("CorrelationId")
- .HasColumnType("nvarchar(64)")
- .HasMaxLength(64);
-
- b.Property("Exceptions")
- .HasColumnName("Exceptions")
- .HasColumnType("nvarchar(4000)")
- .HasMaxLength(4000);
-
- b.Property("ExecutionDuration")
- .HasColumnName("ExecutionDuration")
- .HasColumnType("int");
-
- b.Property("ExecutionTime")
- .HasColumnType("datetime2");
-
- b.Property("ExtraProperties")
- .HasColumnName("ExtraProperties")
- .HasColumnType("nvarchar(max)");
-
- b.Property("HttpMethod")
- .HasColumnName("HttpMethod")
- .HasColumnType("nvarchar(16)")
- .HasMaxLength(16);
-
- b.Property("HttpStatusCode")
- .HasColumnName("HttpStatusCode")
- .HasColumnType("int");
-
- b.Property("ImpersonatorTenantId")
- .HasColumnName("ImpersonatorTenantId")
- .HasColumnType("uniqueidentifier");
-
- b.Property("ImpersonatorUserId")
- .HasColumnName("ImpersonatorUserId")
- .HasColumnType("uniqueidentifier");
-
- b.Property("TenantId")
- .HasColumnName("TenantId")
- .HasColumnType("uniqueidentifier");
-
- b.Property("TenantName")
- .HasColumnType("nvarchar(max)");
-
- b.Property("Url")
- .HasColumnName("Url")
- .HasColumnType("nvarchar(256)")
- .HasMaxLength(256);
-
- b.Property("UserId")
- .HasColumnName("UserId")
- .HasColumnType("uniqueidentifier");
-
- b.Property("UserName")
- .HasColumnName("UserName")
- .HasColumnType("nvarchar(256)")
- .HasMaxLength(256);
-
- b.HasKey("Id");
-
- b.HasIndex("TenantId", "ExecutionTime");
-
- b.HasIndex("TenantId", "UserId", "ExecutionTime");
-
- b.ToTable("AbpAuditLogs");
- });
-
- modelBuilder.Entity("Volo.Abp.AuditLogging.AuditLogAction", b =>
- {
- b.Property("Id")
- .ValueGeneratedOnAdd()
- .HasColumnType("uniqueidentifier");
-
- b.Property("AuditLogId")
- .HasColumnName("AuditLogId")
- .HasColumnType("uniqueidentifier");
-
- b.Property("ExecutionDuration")
- .HasColumnName("ExecutionDuration")
- .HasColumnType("int");
-
- b.Property("ExecutionTime")
- .HasColumnName("ExecutionTime")
- .HasColumnType("datetime2");
-
- b.Property("ExtraProperties")
- .HasColumnName("ExtraProperties")
- .HasColumnType("nvarchar(max)");
-
- b.Property("MethodName")
- .HasColumnName("MethodName")
- .HasColumnType("nvarchar(128)")
- .HasMaxLength(128);
-
- b.Property("Parameters")
- .HasColumnName("Parameters")
- .HasColumnType("nvarchar(2000)")
- .HasMaxLength(2000);
-
- b.Property("ServiceName")
- .HasColumnName("ServiceName")
- .HasColumnType("nvarchar(256)")
- .HasMaxLength(256);
-
- b.Property("TenantId")
- .HasColumnType("uniqueidentifier");
-
- b.HasKey("Id");
-
- b.HasIndex("AuditLogId");
-
- b.HasIndex("TenantId", "ServiceName", "MethodName", "ExecutionTime");
-
- b.ToTable("AbpAuditLogActions");
- });
-
- modelBuilder.Entity("Volo.Abp.AuditLogging.EntityChange", b =>
- {
- b.Property("Id")
- .ValueGeneratedOnAdd()
- .HasColumnType("uniqueidentifier");
-
- b.Property("AuditLogId")
- .HasColumnName("AuditLogId")
- .HasColumnType("uniqueidentifier");
-
- b.Property("ChangeTime")
- .HasColumnName("ChangeTime")
- .HasColumnType("datetime2");
-
- b.Property("ChangeType")
- .HasColumnName("ChangeType")
- .HasColumnType("tinyint");
-
- b.Property("EntityId")
- .IsRequired()
- .HasColumnName("EntityId")
- .HasColumnType("nvarchar(128)")
- .HasMaxLength(128);
-
- b.Property("EntityTenantId")
- .HasColumnType("uniqueidentifier");
-
- b.Property("EntityTypeFullName")
- .IsRequired()
- .HasColumnName("EntityTypeFullName")
- .HasColumnType("nvarchar(128)")
- .HasMaxLength(128);
-
- b.Property("ExtraProperties")
- .HasColumnName("ExtraProperties")
- .HasColumnType("nvarchar(max)");
-
- b.Property("TenantId")
- .HasColumnName("TenantId")
- .HasColumnType("uniqueidentifier");
-
- b.HasKey("Id");
-
- b.HasIndex("AuditLogId");
-
- b.HasIndex("TenantId", "EntityTypeFullName", "EntityId");
-
- b.ToTable("AbpEntityChanges");
- });
-
- modelBuilder.Entity("Volo.Abp.AuditLogging.EntityPropertyChange", b =>
- {
- b.Property("Id")
- .ValueGeneratedOnAdd()
- .HasColumnType("uniqueidentifier");
-
- b.Property("EntityChangeId")
- .HasColumnType("uniqueidentifier");
-
- b.Property("NewValue")
- .HasColumnName("NewValue")
- .HasColumnType("nvarchar(512)")
- .HasMaxLength(512);
-
- b.Property("OriginalValue")
- .HasColumnName("OriginalValue")
- .HasColumnType("nvarchar(512)")
- .HasMaxLength(512);
-
- b.Property("PropertyName")
- .IsRequired()
- .HasColumnName("PropertyName")
- .HasColumnType("nvarchar(128)")
- .HasMaxLength(128);
-
- b.Property("PropertyTypeFullName")
- .IsRequired()
- .HasColumnName("PropertyTypeFullName")
- .HasColumnType("nvarchar(64)")
- .HasMaxLength(64);
-
- b.Property("TenantId")
- .HasColumnType("uniqueidentifier");
-
- b.HasKey("Id");
-
- b.HasIndex("EntityChangeId");
-
- b.ToTable("AbpEntityPropertyChanges");
- });
-
- modelBuilder.Entity("Volo.Abp.Identity.IdentityClaimType", b =>
- {
- b.Property("Id")
- .ValueGeneratedOnAdd()
- .HasColumnType("uniqueidentifier");
-
- b.Property("ConcurrencyStamp")
- .IsConcurrencyToken()
- .IsRequired()
- .HasColumnName("ConcurrencyStamp")
- .HasColumnType("nvarchar(256)")
- .HasMaxLength(256);
-
- b.Property("Description")
- .HasColumnType("nvarchar(256)")
- .HasMaxLength(256);
-
- b.Property("ExtraProperties")
- .HasColumnName("ExtraProperties")
- .HasColumnType("nvarchar(max)");
-
- b.Property("IsStatic")
- .HasColumnType("bit");
-
- b.Property("Name")
- .IsRequired()
- .HasColumnType("nvarchar(256)")
- .HasMaxLength(256);
-
- b.Property("Regex")
- .HasColumnType("nvarchar(512)")
- .HasMaxLength(512);
-
- b.Property("RegexDescription")
- .HasColumnType("nvarchar(128)")
- .HasMaxLength(128);
-
- b.Property("Required")
- .HasColumnType("bit");
-
- b.Property("ValueType")
- .HasColumnType("int");
-
- b.HasKey("Id");
-
- b.ToTable("AbpClaimTypes");
- });
-
- modelBuilder.Entity("Volo.Abp.Identity.IdentityRole", b =>
- {
- b.Property("Id")
- .ValueGeneratedOnAdd()
- .HasColumnType("uniqueidentifier");
-
- b.Property("ConcurrencyStamp")
- .IsConcurrencyToken()
- .IsRequired()
- .HasColumnName("ConcurrencyStamp")
- .HasColumnType("nvarchar(256)")
- .HasMaxLength(256);
-
- b.Property("ExtraProperties")
- .HasColumnName("ExtraProperties")
- .HasColumnType("nvarchar(max)");
-
- b.Property("IsDefault")
- .HasColumnName("IsDefault")
- .HasColumnType("bit");
-
- b.Property("IsPublic")
- .HasColumnName("IsPublic")
- .HasColumnType("bit");
-
- b.Property("IsStatic")
- .HasColumnName("IsStatic")
- .HasColumnType("bit");
-
- b.Property("Name")
- .IsRequired()
- .HasColumnType("nvarchar(256)")
- .HasMaxLength(256);
-
- b.Property("NormalizedName")
- .IsRequired()
- .HasColumnType("nvarchar(256)")
- .HasMaxLength(256);
-
- b.Property("TenantId")
- .HasColumnType("uniqueidentifier");
-
- b.HasKey("Id");
-
- b.HasIndex("NormalizedName");
-
- b.ToTable("AbpRoles");
- });
-
- modelBuilder.Entity("Volo.Abp.Identity.IdentityRoleClaim", b =>
- {
- b.Property("Id")
- .HasColumnType("uniqueidentifier");
-
- b.Property("ClaimType")
- .IsRequired()
- .HasColumnType("nvarchar(256)")
- .HasMaxLength(256);
-
- b.Property("ClaimValue")
- .HasColumnType("nvarchar(1024)")
- .HasMaxLength(1024);
-
- b.Property("RoleId")
- .HasColumnType("uniqueidentifier");
-
- b.Property("TenantId")
- .HasColumnType("uniqueidentifier");
-
- b.HasKey("Id");
-
- b.HasIndex("RoleId");
-
- b.ToTable("AbpRoleClaims");
- });
-
- modelBuilder.Entity("Volo.Abp.Identity.IdentityUser", b =>
- {
- b.Property("Id")
- .ValueGeneratedOnAdd()
- .HasColumnType("uniqueidentifier");
-
- b.Property("AccessFailedCount")
- .ValueGeneratedOnAdd()
- .HasColumnName("AccessFailedCount")
- .HasColumnType("int")
- .HasDefaultValue(0);
-
- b.Property("ConcurrencyStamp")
- .IsConcurrencyToken()
- .HasColumnName("ConcurrencyStamp")
- .HasColumnType("nvarchar(max)");
-
- b.Property("CreationTime")
- .HasColumnName("CreationTime")
- .HasColumnType("datetime2");
-
- b.Property("CreatorId")
- .HasColumnName("CreatorId")
- .HasColumnType("uniqueidentifier");
-
- b.Property("DeleterId")
- .HasColumnName("DeleterId")
- .HasColumnType("uniqueidentifier");
-
- b.Property("DeletionTime")
- .HasColumnName("DeletionTime")
- .HasColumnType("datetime2");
-
- b.Property("Email")
- .IsRequired()
- .HasColumnName("Email")
- .HasColumnType("nvarchar(256)")
- .HasMaxLength(256);
-
- b.Property("EmailConfirmed")
- .ValueGeneratedOnAdd()
- .HasColumnName("EmailConfirmed")
- .HasColumnType("bit")
- .HasDefaultValue(false);
-
- b.Property("ExtraProperties")
- .HasColumnName("ExtraProperties")
- .HasColumnType("nvarchar(max)");
-
- b.Property("IsDeleted")
- .ValueGeneratedOnAdd()
- .HasColumnName("IsDeleted")
- .HasColumnType("bit")
- .HasDefaultValue(false);
-
- b.Property("LastModificationTime")
- .HasColumnName("LastModificationTime")
- .HasColumnType("datetime2");
-
- b.Property("LastModifierId")
- .HasColumnName("LastModifierId")
- .HasColumnType("uniqueidentifier");
-
- b.Property("LockoutEnabled")
- .ValueGeneratedOnAdd()
- .HasColumnName("LockoutEnabled")
- .HasColumnType("bit")
- .HasDefaultValue(false);
-
- b.Property("LockoutEnd")
- .HasColumnType("datetimeoffset");
-
- b.Property("Name")
- .HasColumnName("Name")
- .HasColumnType("nvarchar(64)")
- .HasMaxLength(64);
-
- b.Property("NormalizedEmail")
- .IsRequired()
- .HasColumnName("NormalizedEmail")
- .HasColumnType("nvarchar(256)")
- .HasMaxLength(256);
-
- b.Property("NormalizedUserName")
- .IsRequired()
- .HasColumnName("NormalizedUserName")
- .HasColumnType("nvarchar(256)")
- .HasMaxLength(256);
-
- b.Property("PasswordHash")
- .HasColumnName("PasswordHash")
- .HasColumnType("nvarchar(256)")
- .HasMaxLength(256);
-
- b.Property("PhoneNumber")
- .HasColumnName("PhoneNumber")
- .HasColumnType("nvarchar(16)")
- .HasMaxLength(16);
-
- b.Property("PhoneNumberConfirmed")
- .ValueGeneratedOnAdd()
- .HasColumnName("PhoneNumberConfirmed")
- .HasColumnType("bit")
- .HasDefaultValue(false);
-
- b.Property("SecurityStamp")
- .IsRequired()
- .HasColumnName("SecurityStamp")
- .HasColumnType("nvarchar(256)")
- .HasMaxLength(256);
-
- b.Property("Surname")
- .HasColumnName("Surname")
- .HasColumnType("nvarchar(64)")
- .HasMaxLength(64);
-
- b.Property("TenantId")
- .HasColumnName("TenantId")
- .HasColumnType("uniqueidentifier");
-
- b.Property("TwoFactorEnabled")
- .ValueGeneratedOnAdd()
- .HasColumnName("TwoFactorEnabled")
- .HasColumnType("bit")
- .HasDefaultValue(false);
-
- b.Property("UserName")
- .IsRequired()
- .HasColumnName("UserName")
- .HasColumnType("nvarchar(256)")
- .HasMaxLength(256);
-
- b.HasKey("Id");
-
- b.HasIndex("Email");
-
- b.HasIndex("NormalizedEmail");
-
- b.HasIndex("NormalizedUserName");
-
- b.HasIndex("UserName");
-
- b.ToTable("AbpUsers");
- });
-
- modelBuilder.Entity("Volo.Abp.Identity.IdentityUserClaim", b =>
- {
- b.Property("Id")
- .HasColumnType("uniqueidentifier");
-
- b.Property("ClaimType")
- .IsRequired()
- .HasColumnType("nvarchar(256)")
- .HasMaxLength(256);
-
- b.Property("ClaimValue")
- .HasColumnType("nvarchar(1024)")
- .HasMaxLength(1024);
-
- b.Property("TenantId")
- .HasColumnType("uniqueidentifier");
-
- b.Property("UserId")
- .HasColumnType("uniqueidentifier");
-
- b.HasKey("Id");
-
- b.HasIndex("UserId");
-
- b.ToTable("AbpUserClaims");
- });
-
- modelBuilder.Entity("Volo.Abp.Identity.IdentityUserLogin", b =>
- {
- b.Property("UserId")
- .HasColumnType("uniqueidentifier");
-
- b.Property("LoginProvider")
- .HasColumnType("nvarchar(64)")
- .HasMaxLength(64);
-
- b.Property("ProviderDisplayName")
- .HasColumnType("nvarchar(128)")
- .HasMaxLength(128);
-
- b.Property("ProviderKey")
- .IsRequired()
- .HasColumnType("nvarchar(196)")
- .HasMaxLength(196);
-
- b.Property("TenantId")
- .HasColumnType("uniqueidentifier");
-
- b.HasKey("UserId", "LoginProvider");
-
- b.HasIndex("LoginProvider", "ProviderKey");
-
- b.ToTable("AbpUserLogins");
- });
-
- modelBuilder.Entity("Volo.Abp.Identity.IdentityUserRole", b =>
- {
- b.Property("UserId")
- .HasColumnType("uniqueidentifier");
-
- b.Property("RoleId")
- .HasColumnType("uniqueidentifier");
-
- b.Property("TenantId")
- .HasColumnType("uniqueidentifier");
-
- b.HasKey("UserId", "RoleId");
-
- b.HasIndex("RoleId", "UserId");
-
- b.ToTable("AbpUserRoles");
- });
-
- modelBuilder.Entity("Volo.Abp.Identity.IdentityUserToken", b =>
- {
- b.Property("UserId")
- .HasColumnType("uniqueidentifier");
-
- b.Property("LoginProvider")
- .HasColumnType("nvarchar(64)")
- .HasMaxLength(64);
-
- b.Property("Name")
- .HasColumnType("nvarchar(128)")
- .HasMaxLength(128);
-
- b.Property("TenantId")
- .HasColumnType("uniqueidentifier");
-
- b.Property("Value")
- .HasColumnType("nvarchar(max)");
-
- b.HasKey("UserId", "LoginProvider", "Name");
-
- b.ToTable("AbpUserTokens");
- });
-
- modelBuilder.Entity("Volo.Abp.IdentityServer.ApiResources.ApiResource", b =>
- {
- b.Property("Id")
- .ValueGeneratedOnAdd()
- .HasColumnType("uniqueidentifier");
-
- b.Property("ConcurrencyStamp")
- .IsConcurrencyToken()
- .HasColumnName("ConcurrencyStamp")
- .HasColumnType("nvarchar(max)");
-
- b.Property("CreationTime")
- .HasColumnName("CreationTime")
- .HasColumnType("datetime2");
-
- b.Property("CreatorId")
- .HasColumnName("CreatorId")
- .HasColumnType("uniqueidentifier");
-
- b.Property("DeleterId")
- .HasColumnName("DeleterId")
- .HasColumnType("uniqueidentifier");
-
- b.Property("DeletionTime")
- .HasColumnName("DeletionTime")
- .HasColumnType("datetime2");
-
- b.Property("Description")
- .HasColumnType("nvarchar(1000)")
- .HasMaxLength(1000);
-
- b.Property("DisplayName")
- .HasColumnType("nvarchar(200)")
- .HasMaxLength(200);
-
- b.Property("Enabled")
- .HasColumnType("bit");
-
- b.Property("ExtraProperties")
- .HasColumnName("ExtraProperties")
- .HasColumnType("nvarchar(max)");
-
- b.Property("IsDeleted")
- .ValueGeneratedOnAdd()
- .HasColumnName("IsDeleted")
- .HasColumnType("bit")
- .HasDefaultValue(false);
-
- b.Property("LastModificationTime")
- .HasColumnName("LastModificationTime")
- .HasColumnType("datetime2");
-
- b.Property("LastModifierId")
- .HasColumnName("LastModifierId")
- .HasColumnType("uniqueidentifier");
-
- b.Property("Name")
- .IsRequired()
- .HasColumnType("nvarchar(200)")
- .HasMaxLength(200);
-
- b.Property("Properties")
- .HasColumnType("nvarchar(max)");
-
- b.HasKey("Id");
-
- b.ToTable("IdentityServerApiResources");
- });
-
- modelBuilder.Entity("Volo.Abp.IdentityServer.ApiResources.ApiResourceClaim", b =>
- {
- b.Property("ApiResourceId")
- .HasColumnType("uniqueidentifier");
-
- b.Property("Type")
- .HasColumnType("nvarchar(200)")
- .HasMaxLength(200);
-
- b.HasKey("ApiResourceId", "Type");
-
- b.ToTable("IdentityServerApiClaims");
- });
-
- modelBuilder.Entity("Volo.Abp.IdentityServer.ApiResources.ApiScope", b =>
- {
- b.Property("ApiResourceId")
- .HasColumnType("uniqueidentifier");
-
- b.Property("Name")
- .HasColumnType("nvarchar(200)")
- .HasMaxLength(200);
-
- b.Property("Description")
- .HasColumnType("nvarchar(1000)")
- .HasMaxLength(1000);
-
- b.Property("DisplayName")
- .HasColumnType("nvarchar(200)")
- .HasMaxLength(200);
-
- b.Property("Emphasize")
- .HasColumnType("bit");
-
- b.Property("Required")
- .HasColumnType("bit");
-
- b.Property("ShowInDiscoveryDocument")
- .HasColumnType("bit");
-
- b.HasKey("ApiResourceId", "Name");
-
- b.ToTable("IdentityServerApiScopes");
- });
-
- modelBuilder.Entity("Volo.Abp.IdentityServer.ApiResources.ApiScopeClaim", b =>
- {
- b.Property("ApiResourceId")
- .HasColumnType("uniqueidentifier");
-
- b.Property("Name")
- .HasColumnType("nvarchar(200)")
- .HasMaxLength(200);
-
- b.Property("Type")
- .HasColumnType("nvarchar(200)")
- .HasMaxLength(200);
-
- b.HasKey("ApiResourceId", "Name", "Type");
-
- b.ToTable("IdentityServerApiScopeClaims");
- });
-
- modelBuilder.Entity("Volo.Abp.IdentityServer.ApiResources.ApiSecret", b =>
- {
- b.Property("ApiResourceId")
- .HasColumnType("uniqueidentifier");
-
- b.Property("Type")
- .HasColumnType("nvarchar(250)")
- .HasMaxLength(250);
-
- b.Property("Value")
- .HasColumnType("nvarchar(4000)")
- .HasMaxLength(4000);
-
- b.Property("Description")
- .HasColumnType("nvarchar(2000)")
- .HasMaxLength(2000);
-
- b.Property("Expiration")
- .HasColumnType("datetime2");
-
- b.HasKey("ApiResourceId", "Type", "Value");
-
- b.ToTable("IdentityServerApiSecrets");
- });
-
- modelBuilder.Entity("Volo.Abp.IdentityServer.Clients.Client", b =>
- {
- b.Property("Id")
- .ValueGeneratedOnAdd()
- .HasColumnType("uniqueidentifier");
-
- b.Property("AbsoluteRefreshTokenLifetime")
- .HasColumnType("int");
-
- b.Property("AccessTokenLifetime")
- .HasColumnType("int");
-
- b.Property("AccessTokenType")
- .HasColumnType("int");
-
- b.Property("AllowAccessTokensViaBrowser")
- .HasColumnType("bit");
-
- b.Property("AllowOfflineAccess")
- .HasColumnType("bit");
-
- b.Property("AllowPlainTextPkce")
- .HasColumnType("bit");
-
- b.Property("AllowRememberConsent")
- .HasColumnType("bit");
-
- b.Property("AlwaysIncludeUserClaimsInIdToken")
- .HasColumnType("bit");
-
- b.Property("AlwaysSendClientClaims")
- .HasColumnType("bit");
-
- b.Property("AuthorizationCodeLifetime")
- .HasColumnType("int");
-
- b.Property("BackChannelLogoutSessionRequired")
- .HasColumnType("bit");
-
- b.Property("BackChannelLogoutUri")
- .HasColumnType("nvarchar(2000)")
- .HasMaxLength(2000);
-
- b.Property("ClientClaimsPrefix")
- .HasColumnType("nvarchar(200)")
- .HasMaxLength(200);
-
- b.Property("ClientId")
- .IsRequired()
- .HasColumnType("nvarchar(200)")
- .HasMaxLength(200);
-
- b.Property("ClientName")
- .HasColumnType("nvarchar(200)")
- .HasMaxLength(200);
-
- b.Property("ClientUri")
- .HasColumnType("nvarchar(2000)")
- .HasMaxLength(2000);
-
- b.Property("ConcurrencyStamp")
- .IsConcurrencyToken()
- .HasColumnName("ConcurrencyStamp")
- .HasColumnType("nvarchar(max)");
-
- b.Property("ConsentLifetime")
- .HasColumnType("int");
-
- b.Property("CreationTime")
- .HasColumnName("CreationTime")
- .HasColumnType("datetime2");
-
- b.Property("CreatorId")
- .HasColumnName("CreatorId")
- .HasColumnType("uniqueidentifier");
-
- b.Property("DeleterId")
- .HasColumnName("DeleterId")
- .HasColumnType("uniqueidentifier");
-
- b.Property("DeletionTime")
- .HasColumnName("DeletionTime")
- .HasColumnType("datetime2");
-
- b.Property("Description")
- .HasColumnType("nvarchar(1000)")
- .HasMaxLength(1000);
-
- b.Property("DeviceCodeLifetime")
- .HasColumnType("int");
-
- b.Property("EnableLocalLogin")
- .HasColumnType("bit");
-
- b.Property("Enabled")
- .HasColumnType("bit");
-
- b.Property("ExtraProperties")
- .HasColumnName("ExtraProperties")
- .HasColumnType("nvarchar(max)");
-
- b.Property("FrontChannelLogoutSessionRequired")
- .HasColumnType("bit");
-
- b.Property("FrontChannelLogoutUri")
- .HasColumnType("nvarchar(2000)")
- .HasMaxLength(2000);
-
- b.Property("IdentityTokenLifetime")
- .HasColumnType("int");
-
- b.Property("IncludeJwtId")
- .HasColumnType("bit");
-
- b.Property("IsDeleted")
- .ValueGeneratedOnAdd()
- .HasColumnName("IsDeleted")
- .HasColumnType("bit")
- .HasDefaultValue(false);
-
- b.Property("LastModificationTime")
- .HasColumnName("LastModificationTime")
- .HasColumnType("datetime2");
-
- b.Property("LastModifierId")
- .HasColumnName("LastModifierId")
- .HasColumnType("uniqueidentifier");
-
- b.Property("LogoUri")
- .HasColumnType("nvarchar(2000)")
- .HasMaxLength(2000);
-
- b.Property("PairWiseSubjectSalt")
- .HasColumnType("nvarchar(200)")
- .HasMaxLength(200);
-
- b.Property("ProtocolType")
- .IsRequired()
- .HasColumnType("nvarchar(200)")
- .HasMaxLength(200);
-
- b.Property("RefreshTokenExpiration")
- .HasColumnType("int");
-
- b.Property("RefreshTokenUsage")
- .HasColumnType("int");
-
- b.Property("RequireClientSecret")
- .HasColumnType("bit");
-
- b.Property("RequireConsent")
- .HasColumnType("bit");
-
- b.Property("RequirePkce")
- .HasColumnType("bit");
-
- b.Property("SlidingRefreshTokenLifetime")
- .HasColumnType("int");
-
- b.Property("UpdateAccessTokenClaimsOnRefresh")
- .HasColumnType("bit");
-
- b.Property("UserCodeType")
- .HasColumnType("nvarchar(100)")
- .HasMaxLength(100);
-
- b.Property("UserSsoLifetime")
- .HasColumnType("int");
-
- b.HasKey("Id");
-
- b.HasIndex("ClientId");
-
- b.ToTable("IdentityServerClients");
- });
-
- modelBuilder.Entity("Volo.Abp.IdentityServer.Clients.ClientClaim", b =>
- {
- b.Property("ClientId")
- .HasColumnType("uniqueidentifier");
-
- b.Property("Type")
- .HasColumnType("nvarchar(250)")
- .HasMaxLength(250);
-
- b.Property("Value")
- .HasColumnType("nvarchar(250)")
- .HasMaxLength(250);
-
- b.HasKey("ClientId", "Type", "Value");
-
- b.ToTable("IdentityServerClientClaims");
- });
-
- modelBuilder.Entity("Volo.Abp.IdentityServer.Clients.ClientCorsOrigin", b =>
- {
- b.Property("ClientId")
- .HasColumnType("uniqueidentifier");
-
- b.Property("Origin")
- .HasColumnType("nvarchar(150)")
- .HasMaxLength(150);
-
- b.HasKey("ClientId", "Origin");
-
- b.ToTable("IdentityServerClientCorsOrigins");
- });
-
- modelBuilder.Entity("Volo.Abp.IdentityServer.Clients.ClientGrantType", b =>
- {
- b.Property("ClientId")
- .HasColumnType("uniqueidentifier");
-
- b.Property("GrantType")
- .HasColumnType("nvarchar(250)")
- .HasMaxLength(250);
-
- b.HasKey("ClientId", "GrantType");
-
- b.ToTable("IdentityServerClientGrantTypes");
- });
-
- modelBuilder.Entity("Volo.Abp.IdentityServer.Clients.ClientIdPRestriction", b =>
- {
- b.Property("ClientId")
- .HasColumnType("uniqueidentifier");
-
- b.Property("Provider")
- .HasColumnType("nvarchar(200)")
- .HasMaxLength(200);
-
- b.HasKey("ClientId", "Provider");
-
- b.ToTable("IdentityServerClientIdPRestrictions");
- });
-
- modelBuilder.Entity("Volo.Abp.IdentityServer.Clients.ClientPostLogoutRedirectUri", b =>
- {
- b.Property("ClientId")
- .HasColumnType("uniqueidentifier");
-
- b.Property("PostLogoutRedirectUri")
- .HasColumnType("nvarchar(2000)")
- .HasMaxLength(2000);
-
- b.HasKey("ClientId", "PostLogoutRedirectUri");
-
- b.ToTable("IdentityServerClientPostLogoutRedirectUris");
- });
-
- modelBuilder.Entity("Volo.Abp.IdentityServer.Clients.ClientProperty", b =>
- {
- b.Property("ClientId")
- .HasColumnType("uniqueidentifier");
-
- b.Property("Key")
- .HasColumnType("nvarchar(250)")
- .HasMaxLength(250);
-
- b.Property("Value")
- .IsRequired()
- .HasColumnType("nvarchar(2000)")
- .HasMaxLength(2000);
-
- b.HasKey("ClientId", "Key");
-
- b.ToTable("IdentityServerClientProperties");
- });
-
- modelBuilder.Entity("Volo.Abp.IdentityServer.Clients.ClientRedirectUri", b =>
- {
- b.Property("ClientId")
- .HasColumnType("uniqueidentifier");
-
- b.Property("RedirectUri")
- .HasColumnType("nvarchar(2000)")
- .HasMaxLength(2000);
-
- b.HasKey("ClientId", "RedirectUri");
-
- b.ToTable("IdentityServerClientRedirectUris");
- });
-
- modelBuilder.Entity("Volo.Abp.IdentityServer.Clients.ClientScope", b =>
- {
- b.Property("ClientId")
- .HasColumnType("uniqueidentifier");
-
- b.Property("Scope")
- .HasColumnType("nvarchar(200)")
- .HasMaxLength(200);
-
- b.HasKey("ClientId", "Scope");
-
- b.ToTable("IdentityServerClientScopes");
- });
-
- modelBuilder.Entity("Volo.Abp.IdentityServer.Clients.ClientSecret", b =>
- {
- b.Property("ClientId")
- .HasColumnType("uniqueidentifier");
-
- b.Property("Type")
- .HasColumnType("nvarchar(250)")
- .HasMaxLength(250);
-
- b.Property("Value")
- .HasColumnType("nvarchar(4000)")
- .HasMaxLength(4000);
-
- b.Property("Description")
- .HasColumnType("nvarchar(2000)")
- .HasMaxLength(2000);
-
- b.Property("Expiration")
- .HasColumnType("datetime2");
-
- b.HasKey("ClientId", "Type", "Value");
-
- b.ToTable("IdentityServerClientSecrets");
- });
-
- modelBuilder.Entity("Volo.Abp.IdentityServer.Devices.DeviceFlowCodes", b =>
- {
- b.Property("Id")
- .ValueGeneratedOnAdd()
- .HasColumnType("uniqueidentifier");
-
- b.Property("ClientId")
- .IsRequired()
- .HasColumnType("nvarchar(200)")
- .HasMaxLength(200);
-
- b.Property("ConcurrencyStamp")
- .IsConcurrencyToken()
- .HasColumnName("ConcurrencyStamp")
- .HasColumnType("nvarchar(max)");
-
- b.Property("CreationTime")
- .HasColumnName("CreationTime")
- .HasColumnType("datetime2");
-
- b.Property("CreatorId")
- .HasColumnName("CreatorId")
- .HasColumnType("uniqueidentifier");
-
- b.Property("Data")
- .IsRequired()
- .HasColumnType("nvarchar(max)")
- .HasMaxLength(50000);
-
- b.Property("DeviceCode")
- .IsRequired()
- .HasColumnType("nvarchar(200)")
- .HasMaxLength(200);
-
- b.Property("Expiration")
- .IsRequired()
- .HasColumnType("datetime2");
-
- b.Property("ExtraProperties")
- .HasColumnName("ExtraProperties")
- .HasColumnType("nvarchar(max)");
-
- b.Property("SubjectId")
- .HasColumnType("nvarchar(200)")
- .HasMaxLength(200);
-
- b.Property("UserCode")
- .IsRequired()
- .HasColumnType("nvarchar(200)")
- .HasMaxLength(200);
-
- b.HasKey("Id");
-
- b.HasIndex("DeviceCode")
- .IsUnique();
-
- b.HasIndex("Expiration");
-
- b.HasIndex("UserCode")
- .IsUnique();
-
- b.ToTable("IdentityServerDeviceFlowCodes");
- });
-
- modelBuilder.Entity("Volo.Abp.IdentityServer.Grants.PersistedGrant", b =>
- {
- b.Property("Key")
- .HasColumnType("nvarchar(200)")
- .HasMaxLength(200);
-
- b.Property("ClientId")
- .IsRequired()
- .HasColumnType("nvarchar(200)")
- .HasMaxLength(200);
-
- b.Property("ConcurrencyStamp")
- .HasColumnType("nvarchar(max)");
-
- b.Property("CreationTime")
- .HasColumnType("datetime2");
-
- b.Property("Data")
- .IsRequired()
- .HasColumnType("nvarchar(max)")
- .HasMaxLength(50000);
-
- b.Property("Expiration")
- .HasColumnType("datetime2");
-
- b.Property("ExtraProperties")
- .HasColumnName("ExtraProperties")
- .HasColumnType("nvarchar(max)");
-
- b.Property("Id")
- .HasColumnType("uniqueidentifier");
-
- b.Property("SubjectId")
- .HasColumnType("nvarchar(200)")
- .HasMaxLength(200);
-
- b.Property("Type")
- .IsRequired()
- .HasColumnType("nvarchar(50)")
- .HasMaxLength(50);
-
- b.HasKey("Key");
-
- b.HasIndex("Expiration");
-
- b.HasIndex("SubjectId", "ClientId", "Type");
-
- b.ToTable("IdentityServerPersistedGrants");
- });
-
- modelBuilder.Entity("Volo.Abp.IdentityServer.IdentityResources.IdentityClaim", b =>
- {
- b.Property