From 048a043c840b673e552e5b21d2a7dd65e1674ed3 Mon Sep 17 00:00:00 2001 From: Tigran TIKSN Torosyan Date: Sun, 14 Jul 2019 21:50:49 +0300 Subject: [PATCH 001/139] Update README.md --- README.md | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 82916c1..5277d03 100644 --- a/README.md +++ b/README.md @@ -1 +1,7 @@ -# Scripts \ No newline at end of file +# Scripts + +## Prerequisites + +### PowerShell Core + +[Get PowerShell](https://github.com/PowerShell/PowerShell#get-powershell) From 2f08089738a7844fb691491aa1942ff4dee5635a Mon Sep 17 00:00:00 2001 From: Tigran TIKSN Torosyan Date: Sun, 14 Jul 2019 21:52:29 +0300 Subject: [PATCH 002/139] Update README.md --- README.md | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/README.md b/README.md index 5277d03..03db376 100644 --- a/README.md +++ b/README.md @@ -5,3 +5,7 @@ ### PowerShell Core [Get PowerShell](https://github.com/PowerShell/PowerShell#get-powershell) + +### PowerShell Core Modules + +[psake](https://www.powershellgallery.com/packages/psake/) From c6cd2111dcb8527f7ff6439d497351f61570b5fe Mon Sep 17 00:00:00 2001 From: Tigran TIKSN Torosyan Date: Sun, 14 Jul 2019 21:55:23 +0300 Subject: [PATCH 003/139] Update README.md --- README.md | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/README.md b/README.md index 03db376..ce9b07f 100644 --- a/README.md +++ b/README.md @@ -9,3 +9,15 @@ ### PowerShell Core Modules [psake](https://www.powershellgallery.com/packages/psake/) + +### Chocolatey + +[Installing Chocolatey](https://chocolatey.org/install) + +### Chocolatey Packages + +TBD + +### Docker Desktop (Windows) + +[Install](https://hub.docker.com/editions/community/docker-ce-desktop-windows) From 64be6baea578830d8b9dd8d6e90dd930d018d8d0 Mon Sep 17 00:00:00 2001 From: Tigran TIKSN Torosyan Date: Sun, 14 Jul 2019 21:56:59 +0300 Subject: [PATCH 004/139] Update README.md --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index ce9b07f..dac9f8b 100644 --- a/README.md +++ b/README.md @@ -10,7 +10,7 @@ [psake](https://www.powershellgallery.com/packages/psake/) -### Chocolatey +### Chocolatey (Windows) [Installing Chocolatey](https://chocolatey.org/install) From 8475cac7c1f89dfb1fc5f2842bd684ab4a63f9b3 Mon Sep 17 00:00:00 2001 From: Tigran TIKSN Torosyan Date: Sun, 14 Jul 2019 21:57:21 +0300 Subject: [PATCH 005/139] Update README.md --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index dac9f8b..82c1a8a 100644 --- a/README.md +++ b/README.md @@ -14,7 +14,7 @@ [Installing Chocolatey](https://chocolatey.org/install) -### Chocolatey Packages +### Chocolatey Packages (Windows) TBD From fb5ea0fa7ae67adefe826c49b3196305ada1472c Mon Sep 17 00:00:00 2001 From: Tigran TIKSN Torosyan Date: Sun, 14 Jul 2019 21:58:37 +0300 Subject: [PATCH 006/139] Update README.md --- README.md | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 82c1a8a..a25119c 100644 --- a/README.md +++ b/README.md @@ -10,14 +10,16 @@ [psake](https://www.powershellgallery.com/packages/psake/) -### Chocolatey (Windows) +### Windows + +#### Chocolatey [Installing Chocolatey](https://chocolatey.org/install) -### Chocolatey Packages (Windows) +#### Chocolatey Packages TBD -### Docker Desktop (Windows) +#### Docker Desktop [Install](https://hub.docker.com/editions/community/docker-ce-desktop-windows) From 84776bd8719d9b115b5e6ace0349fb2a35f0132c Mon Sep 17 00:00:00 2001 From: Tigran TIKSN Torosyan Date: Sun, 14 Jul 2019 21:58:54 +0300 Subject: [PATCH 007/139] Update README.md --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index a25119c..2fff280 100644 --- a/README.md +++ b/README.md @@ -2,11 +2,11 @@ ## Prerequisites -### PowerShell Core +#### PowerShell Core [Get PowerShell](https://github.com/PowerShell/PowerShell#get-powershell) -### PowerShell Core Modules +#### PowerShell Core Modules [psake](https://www.powershellgallery.com/packages/psake/) From fe82637d2666aa0767222f92e2d8d4515b9ff180 Mon Sep 17 00:00:00 2001 From: Tigran TIKSN Torosyan Date: Sun, 14 Jul 2019 22:09:05 +0300 Subject: [PATCH 008/139] Update README.md --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 2fff280..d90a830 100644 --- a/README.md +++ b/README.md @@ -18,7 +18,7 @@ #### Chocolatey Packages -TBD +[kubernetes-cli](https://chocolatey.org/packages/kubernetes-cli) #### Docker Desktop From 4d528d7e24bc4c1ddf509e924f7a7d18cecd84b7 Mon Sep 17 00:00:00 2001 From: Tigran TIKSN Torosyan Date: Sun, 14 Jul 2019 22:23:15 +0300 Subject: [PATCH 009/139] Create Setup.ps1 --- Setup.ps1 | 6 ++++++ 1 file changed, 6 insertions(+) create mode 100644 Setup.ps1 diff --git a/Setup.ps1 b/Setup.ps1 new file mode 100644 index 0000000..e8d11f6 --- /dev/null +++ b/Setup.ps1 @@ -0,0 +1,6 @@ +Install-Module -Name psake + + +if ($IsWindows) { + choco install kubernetes-cli +} \ No newline at end of file From 7ce79417d698e62dbfc3bb11a24591de61a0f37c Mon Sep 17 00:00:00 2001 From: Tigran TIKSN Torosyan Date: Sun, 14 Jul 2019 22:25:16 +0300 Subject: [PATCH 010/139] Update README.md --- README.md | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/README.md b/README.md index d90a830..1d751de 100644 --- a/README.md +++ b/README.md @@ -6,20 +6,20 @@ [Get PowerShell](https://github.com/PowerShell/PowerShell#get-powershell) -#### PowerShell Core Modules - -[psake](https://www.powershellgallery.com/packages/psake/) - ### Windows #### Chocolatey [Installing Chocolatey](https://chocolatey.org/install) -#### Chocolatey Packages - -[kubernetes-cli](https://chocolatey.org/packages/kubernetes-cli) - #### Docker Desktop [Install](https://hub.docker.com/editions/community/docker-ce-desktop-windows) + +### Setup + +Run PowerShell Core as administrator + +```PowerShell +./Setup.ps1 +``` From 18eafc291470748d21cfe2ad2c5fb05d752428f0 Mon Sep 17 00:00:00 2001 From: Tigran TIKSN Torosyan Date: Sun, 14 Jul 2019 23:01:16 +0300 Subject: [PATCH 011/139] Create docker-compose.yml --- docker-compose.yml | 56 ++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 56 insertions(+) create mode 100644 docker-compose.yml diff --git a/docker-compose.yml b/docker-compose.yml new file mode 100644 index 0000000..3e89375 --- /dev/null +++ b/docker-compose.yml @@ -0,0 +1,56 @@ +version: '3.7' + +services: + + hydra: + image: oryd/hydra:latest + ports: + - "4444:4444" # Public port + - "4445:4445" # Admin port + - "5555:5555" # Port for hydra token user + command: + serve all --dangerous-force-http + environment: + - URLS_SELF_ISSUER=http://127.0.0.1:4444 + - URLS_CONSENT=http://127.0.0.1:3000/consent + - URLS_LOGIN=http://127.0.0.1:3000/login + - URLS_LOGOUT=http://127.0.0.1:3000/logout + - SECRETS_SYSTEM=youReallyNeedToChangeThis + - OIDC_SUBJECT_TYPES_SUPPORTED=public,pairwise + - OIDC_SUBJECT_TYPE_PAIRWISE_SALT=youReallyNeedToChangeThis + - DSN=postgres://hydra:secret@postgresd:5432/hydra?sslmode=disable&max_conns=20&max_idle_conns=4 + - OAUTH2_ACCESS_TOKEN_STRATEGY=jwt + - OIDC_SUBJECT_IDENTIFIERS_ENABLED=public + - SERVE_PUBLIC_CORS_ENABLED=true + - SERVE_PUBLIC_CORS_ALLOWED_METHODS=POST,GET,PUT,DELETE + - SERVE_ADMIN_CORS_ENABLED=true + - SERVE_ADMIN_CORS_ALLOWED_METHODS=POST,GET,PUT,DELETE + depends_on: + - hydra-migrate + restart: unless-stopped + + consent: + environment: + - HYDRA_ADMIN_URL=http://hydra:4445 + image: oryd/hydra-login-consent-node:v1.0.0-rc.10 + ports: + - "3000:3000" + restart: unless-stopped + + hydra-migrate: + image: oryd/hydra:latest + environment: + - DSN=postgres://hydra:secret@postgresd:5432/hydra?sslmode=disable&max_conns=20&max_idle_conns=4 + command: + migrate sql -e --yes + restart: on-failure + + postgresd: + image: postgres:latest + ports: + - "5432:5432" + environment: + - POSTGRES_USER=hydra + - POSTGRES_PASSWORD=secret + - POSTGRES_DB=hydra + From 6549eb6fc8b582163efdb6dd948ce2691d4e17f1 Mon Sep 17 00:00:00 2001 From: Tigran TIKSN Torosyan Date: Sun, 14 Jul 2019 23:09:32 +0300 Subject: [PATCH 012/139] Update README.md --- README.md | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 1d751de..265b639 100644 --- a/README.md +++ b/README.md @@ -2,7 +2,11 @@ ## Prerequisites -#### PowerShell Core +#### .NET Core SDK + +[Install .NET Core SDK](https://dotnet.microsoft.com/download) + +#### PowerShell Core [Get PowerShell](https://github.com/PowerShell/PowerShell#get-powershell) From 2496b881d70a88026be7d8be7901ed512274200e Mon Sep 17 00:00:00 2001 From: Tigran TIKSN Torosyan Date: Sun, 14 Jul 2019 23:11:30 +0300 Subject: [PATCH 013/139] Update Setup.ps1 --- Setup.ps1 | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Setup.ps1 b/Setup.ps1 index e8d11f6..9d4a8e0 100644 --- a/Setup.ps1 +++ b/Setup.ps1 @@ -1,5 +1,7 @@ Install-Module -Name psake +dotnet tool install --global smite-cli +dotnet tool update --global smite-cli if ($IsWindows) { choco install kubernetes-cli From db2f69e9a93e86752d58b31a32ed8eae53b964c7 Mon Sep 17 00:00:00 2001 From: Tigran TIKSN Torosyan Date: Sun, 14 Jul 2019 23:52:21 +0300 Subject: [PATCH 014/139] check distribution --- Setup.ps1 | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/Setup.ps1 b/Setup.ps1 index 9d4a8e0..e969ef1 100644 --- a/Setup.ps1 +++ b/Setup.ps1 @@ -3,6 +3,26 @@ Install-Module -Name psake dotnet tool install --global smite-cli dotnet tool update --global smite-cli +$IsFedora = $false +$IsUbuntu = $false + +if ($IsLinux) { + $release = Get-Content -Path /etc/os-release + $release = $release.Split([Environment]::NewLine) | Where-Object { $_.StartsWith("ID=") } + $release = $release.Substring(3) + + $IsFedora = ($release -eq "Fedora") + $IsUbuntu = ($release -eq "Ubuntu") +} if ($IsWindows) { choco install kubernetes-cli +} +elseif ($IsFedora) { + Write-Host TBD +} +elseif ($IsUbuntu) { + Write-Host TBD +} +else { + Write-Error "OS and/or distribution is not supported" } \ No newline at end of file From 4124a0d483bb17a8e220e681c8a15ab83455c860 Mon Sep 17 00:00:00 2001 From: Tigran TIKSN Torosyan Date: Mon, 15 Jul 2019 00:00:15 +0300 Subject: [PATCH 015/139] install docker compose on fedora --- Setup.ps1 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Setup.ps1 b/Setup.ps1 index e969ef1..1de69ea 100644 --- a/Setup.ps1 +++ b/Setup.ps1 @@ -18,7 +18,7 @@ if ($IsWindows) { choco install kubernetes-cli } elseif ($IsFedora) { - Write-Host TBD + sudo dnf -y install docker-compose } elseif ($IsUbuntu) { Write-Host TBD From a8e021040abebaccc1b4147ffb7633785f4408ff Mon Sep 17 00:00:00 2001 From: Tigran TIKSN Torosyan Date: Mon, 15 Jul 2019 00:34:09 +0300 Subject: [PATCH 016/139] install docker compose for ubuntu --- Setup.ps1 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Setup.ps1 b/Setup.ps1 index 1de69ea..7086326 100644 --- a/Setup.ps1 +++ b/Setup.ps1 @@ -21,7 +21,7 @@ elseif ($IsFedora) { sudo dnf -y install docker-compose } elseif ($IsUbuntu) { - Write-Host TBD + sudo apt -y install docker-compose } else { Write-Error "OS and/or distribution is not supported" From 23f8b2c233425d94fff85f9538becaa1d17a45ba Mon Sep 17 00:00:00 2001 From: Tigran TIKSN Torosyan Date: Mon, 15 Jul 2019 07:50:54 +0300 Subject: [PATCH 017/139] Update dependencies.yml --- docker-compose.yml => docker-compose/dependencies.yml | 0 1 file changed, 0 insertions(+), 0 deletions(-) rename docker-compose.yml => docker-compose/dependencies.yml (100%) diff --git a/docker-compose.yml b/docker-compose/dependencies.yml similarity index 100% rename from docker-compose.yml rename to docker-compose/dependencies.yml From bf6dea852ecea7c4f120373161f40da1870923f7 Mon Sep 17 00:00:00 2001 From: Tigran TIKSN Torosyan Date: Mon, 15 Jul 2019 08:00:26 +0300 Subject: [PATCH 018/139] Create docker-compose-tasks.ps1 --- docker-compose-tasks.ps1 | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 docker-compose-tasks.ps1 diff --git a/docker-compose-tasks.ps1 b/docker-compose-tasks.ps1 new file mode 100644 index 0000000..b3e6219 --- /dev/null +++ b/docker-compose-tasks.ps1 @@ -0,0 +1,11 @@ +Properties { + # +} + +Task Pull { + Exec { docker-compose -f (Resolve-Path "docker-compose/dependencies.yml").Path pull } +} + +Task Setup -depends Pull { + Exec { docker-compose -f (Resolve-Path "docker-compose/dependencies.yml").Path pull } +} From 6e14ca36ff06c58cb010d224abf8cc88d69c077d Mon Sep 17 00:00:00 2001 From: Tigran TIKSN Torosyan Date: Mon, 15 Jul 2019 08:00:31 +0300 Subject: [PATCH 019/139] Create run-in-docker.ps1 --- run-in-docker.ps1 | 1 + 1 file changed, 1 insertion(+) create mode 100644 run-in-docker.ps1 diff --git a/run-in-docker.ps1 b/run-in-docker.ps1 new file mode 100644 index 0000000..61518c3 --- /dev/null +++ b/run-in-docker.ps1 @@ -0,0 +1 @@ +Invoke-psake -buildFile .\docker-compose-tasks.ps1 -taskList Setup -nologo From 264faf6a625682c398a633f8cb6b3f851f373b2e Mon Sep 17 00:00:00 2001 From: Tigran TIKSN Torosyan Date: Mon, 15 Jul 2019 08:42:38 +0300 Subject: [PATCH 020/139] Update dependencies.yml --- docker-compose/dependencies.yml | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/docker-compose/dependencies.yml b/docker-compose/dependencies.yml index 3e89375..2aaa104 100644 --- a/docker-compose/dependencies.yml +++ b/docker-compose/dependencies.yml @@ -27,6 +27,8 @@ services: - SERVE_ADMIN_CORS_ALLOWED_METHODS=POST,GET,PUT,DELETE depends_on: - hydra-migrate + networks: + - lionize restart: unless-stopped consent: @@ -35,6 +37,8 @@ services: image: oryd/hydra-login-consent-node:v1.0.0-rc.10 ports: - "3000:3000" + networks: + - lionize restart: unless-stopped hydra-migrate: @@ -43,6 +47,8 @@ services: - DSN=postgres://hydra:secret@postgresd:5432/hydra?sslmode=disable&max_conns=20&max_idle_conns=4 command: migrate sql -e --yes + networks: + - lionize restart: on-failure postgresd: @@ -53,4 +59,9 @@ services: - POSTGRES_USER=hydra - POSTGRES_PASSWORD=secret - POSTGRES_DB=hydra + networks: + - lionize +networks: + lionize: + driver: bridge \ No newline at end of file From 9317969c8fe7fe59c5a332511b425a94c3e30849 Mon Sep 17 00:00:00 2001 From: Tigran TIKSN Torosyan Date: Mon, 15 Jul 2019 08:42:41 +0300 Subject: [PATCH 021/139] Update docker-compose-tasks.ps1 --- docker-compose-tasks.ps1 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docker-compose-tasks.ps1 b/docker-compose-tasks.ps1 index b3e6219..bdb6699 100644 --- a/docker-compose-tasks.ps1 +++ b/docker-compose-tasks.ps1 @@ -7,5 +7,5 @@ Task Pull { } Task Setup -depends Pull { - Exec { docker-compose -f (Resolve-Path "docker-compose/dependencies.yml").Path pull } + Exec { docker-compose -f (Resolve-Path "docker-compose/dependencies.yml").Path up -d } } From 5014383c47975ef52cc01ea6bb5cfb29e60efbd5 Mon Sep 17 00:00:00 2001 From: ashotnazaryan Date: Tue, 16 Jul 2019 20:54:08 +0300 Subject: [PATCH 022/139] Update README.md --- README.md | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/README.md b/README.md index 265b639..e499cfa 100644 --- a/README.md +++ b/README.md @@ -10,6 +10,10 @@ [Get PowerShell](https://github.com/PowerShell/PowerShell#get-powershell) +#### NodeJS + +[Install NodeJS](https://nodejs.org/en/download/) + ### Windows #### Chocolatey From e917fa40187b462efee741c125e5f2eade689bc6 Mon Sep 17 00:00:00 2001 From: Tigran TIKSN Torosyan Date: Wed, 17 Jul 2019 00:10:18 +0300 Subject: [PATCH 023/139] Update dependencies.yml --- docker-compose/dependencies.yml | 62 ++++----------------------------- 1 file changed, 6 insertions(+), 56 deletions(-) diff --git a/docker-compose/dependencies.yml b/docker-compose/dependencies.yml index 2aaa104..523dbaa 100644 --- a/docker-compose/dependencies.yml +++ b/docker-compose/dependencies.yml @@ -2,66 +2,16 @@ version: '3.7' services: - hydra: - image: oryd/hydra:latest - ports: - - "4444:4444" # Public port - - "4445:4445" # Admin port - - "5555:5555" # Port for hydra token user - command: - serve all --dangerous-force-http - environment: - - URLS_SELF_ISSUER=http://127.0.0.1:4444 - - URLS_CONSENT=http://127.0.0.1:3000/consent - - URLS_LOGIN=http://127.0.0.1:3000/login - - URLS_LOGOUT=http://127.0.0.1:3000/logout - - SECRETS_SYSTEM=youReallyNeedToChangeThis - - OIDC_SUBJECT_TYPES_SUPPORTED=public,pairwise - - OIDC_SUBJECT_TYPE_PAIRWISE_SALT=youReallyNeedToChangeThis - - DSN=postgres://hydra:secret@postgresd:5432/hydra?sslmode=disable&max_conns=20&max_idle_conns=4 - - OAUTH2_ACCESS_TOKEN_STRATEGY=jwt - - OIDC_SUBJECT_IDENTIFIERS_ENABLED=public - - SERVE_PUBLIC_CORS_ENABLED=true - - SERVE_PUBLIC_CORS_ALLOWED_METHODS=POST,GET,PUT,DELETE - - SERVE_ADMIN_CORS_ENABLED=true - - SERVE_ADMIN_CORS_ALLOWED_METHODS=POST,GET,PUT,DELETE - depends_on: - - hydra-migrate - networks: - - lionize - restart: unless-stopped - - consent: - environment: - - HYDRA_ADMIN_URL=http://hydra:4445 - image: oryd/hydra-login-consent-node:v1.0.0-rc.10 - ports: - - "3000:3000" - networks: - - lionize - restart: unless-stopped - - hydra-migrate: - image: oryd/hydra:latest + mssql: + image: mcr.microsoft.com/mssql/server:latest environment: - - DSN=postgres://hydra:secret@postgresd:5432/hydra?sslmode=disable&max_conns=20&max_idle_conns=4 - command: - migrate sql -e --yes - networks: - - lionize - restart: on-failure - - postgresd: - image: postgres:latest + - ACCEPT_EULA=Y + - SA_PASSWORD=z0aiDwJ0205q37Nr ports: - - "5432:5432" - environment: - - POSTGRES_USER=hydra - - POSTGRES_PASSWORD=secret - - POSTGRES_DB=hydra + - "1433:1433" networks: - lionize networks: lionize: - driver: bridge \ No newline at end of file + driver: bridge From 3384438442921029a289899d05418b7ee84171d5 Mon Sep 17 00:00:00 2001 From: Tigran TIKSN Torosyan Date: Wed, 17 Jul 2019 00:19:19 +0300 Subject: [PATCH 024/139] Update dependencies.yml --- docker-compose/dependencies.yml | 6 ------ 1 file changed, 6 deletions(-) diff --git a/docker-compose/dependencies.yml b/docker-compose/dependencies.yml index 523dbaa..1498344 100644 --- a/docker-compose/dependencies.yml +++ b/docker-compose/dependencies.yml @@ -9,9 +9,3 @@ services: - SA_PASSWORD=z0aiDwJ0205q37Nr ports: - "1433:1433" - networks: - - lionize - -networks: - lionize: - driver: bridge From f2fb95922fcc8aea822a8b9a62b040694146989b Mon Sep 17 00:00:00 2001 From: Tigran TIKSN Torosyan Date: Wed, 17 Jul 2019 00:33:07 +0300 Subject: [PATCH 025/139] Update Setup.ps1 --- Setup.ps1 | 1 + 1 file changed, 1 insertion(+) diff --git a/Setup.ps1 b/Setup.ps1 index 7086326..bd04710 100644 --- a/Setup.ps1 +++ b/Setup.ps1 @@ -1,4 +1,5 @@ Install-Module -Name psake +Install-Module -Name PsHosts dotnet tool install --global smite-cli dotnet tool update --global smite-cli From 7e7b21e91f2dfe77cea943e31226bf4fc8ba1a62 Mon Sep 17 00:00:00 2001 From: Tigran TIKSN Torosyan Date: Wed, 17 Jul 2019 00:35:50 +0300 Subject: [PATCH 026/139] Update Setup.ps1 --- Setup.ps1 | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Setup.ps1 b/Setup.ps1 index bd04710..cd570bd 100644 --- a/Setup.ps1 +++ b/Setup.ps1 @@ -17,6 +17,8 @@ if ($IsLinux) { } if ($IsWindows) { choco install kubernetes-cli + + Add-HostEntry -Name mssql -Loopback -Force } elseif ($IsFedora) { sudo dnf -y install docker-compose From 02b7217e3b319746a2d72b8ff98ea3cde9663ae9 Mon Sep 17 00:00:00 2001 From: Tigran TIKSN Torosyan Date: Wed, 17 Jul 2019 11:30:39 +0300 Subject: [PATCH 027/139] Create microservices.yml --- docker-compose/microservices.yml | 6 ++++++ 1 file changed, 6 insertions(+) create mode 100644 docker-compose/microservices.yml diff --git a/docker-compose/microservices.yml b/docker-compose/microservices.yml new file mode 100644 index 0000000..4588a96 --- /dev/null +++ b/docker-compose/microservices.yml @@ -0,0 +1,6 @@ +version: '3.7' + +services: + + identity: + image: tiksn/lionize-identity-management-service From ab4cda7752476c41edbd61b6654fbb908199bdf8 Mon Sep 17 00:00:00 2001 From: Tigran TIKSN Torosyan Date: Wed, 17 Jul 2019 11:32:55 +0300 Subject: [PATCH 028/139] Update docker-compose-tasks.ps1 --- docker-compose-tasks.ps1 | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docker-compose-tasks.ps1 b/docker-compose-tasks.ps1 index bdb6699..e8ccdc8 100644 --- a/docker-compose-tasks.ps1 +++ b/docker-compose-tasks.ps1 @@ -3,9 +3,9 @@ Properties { } Task Pull { - Exec { docker-compose -f (Resolve-Path "docker-compose/dependencies.yml").Path pull } + Exec { docker-compose -f (Resolve-Path "docker-compose/dependencies.yml").Path -f (Resolve-Path "docker-compose/microservices.yml").Path pull } } Task Setup -depends Pull { - Exec { docker-compose -f (Resolve-Path "docker-compose/dependencies.yml").Path up -d } + Exec { docker-compose -f (Resolve-Path "docker-compose/dependencies.yml").Path -f (Resolve-Path "docker-compose/microservices.yml").Path up -d } } From f9a0ad35edf1fc5649214bc9f11d8e826ab4699e Mon Sep 17 00:00:00 2001 From: Tigran TIKSN Torosyan Date: Wed, 17 Jul 2019 22:30:12 +0300 Subject: [PATCH 029/139] secret added --- ClientSecrets.txt | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 ClientSecrets.txt diff --git a/ClientSecrets.txt b/ClientSecrets.txt new file mode 100644 index 0000000..7f43744 --- /dev/null +++ b/ClientSecrets.txt @@ -0,0 +1,20 @@ +Client_0 HR7FsThALW0k6MD1Bo+PLOaJss2Bz7RiTsWIWlsIs+veTtrVf6HmBoY13NRORcWMhvRVr1G1m01pY2NyuNMSHDTUF7e1ua1FoqtGTPPgEwgA+9NmsgSaKLOMbBw+c06zIsCgei4N18xHEAylbk5aiVBacr3/rGkvOu4EKE2RBi5dkykzP5ja8yQGH6L49LlkMuLL5AGQs3ZWcEA/CK5/tgndSNslJ0m3f3+Y+IzGN0U0oPVqxSItzOCz3M9Ymup1h2mZGqzePwuYFGSC97rpkDn7Cmi5FPDmsHv6cUt6XuWVI3EjLR2YVmDq0rC+q9QlykuWXY+BvHJ4smkx487AHQ== +Client_1 tX/t1EnFYxtitAfOQkAoBabVpv/kAVUTZ/+rerNmcpIqtPo+vQDbBOh6+tt57S83imSLDifAObQq2W1KGuho+0J1pI5F6Uel+qEWagZ5mXnPc+9P22RraXtGFOSSkOr/Ev+YBEih8qAc5ROFqc6tsD/zeqb4GCDeCTsT/9RjE2m2FlgH4ZQxLoFPM/VQ5r+smGSknxZEB/neuvsNjfPLuNKqzpJ2ps6qwkwlqeUqjiN7ZmZwv3RTcg9eKCeZJKCNg3ojpRgsNfKV+dzJHl0UtCzYkSeMW/leV1uDGH2nEZ6rlyZqBugKTzF028aXiVOySXT7wZN5ASiAxU68qR117Q== +Client_2 5z4ehzeprUPNQvYYfzPHzQjRzgisUAoxlv7qQZlOpRP+7d5Yasx7oMa39FGD6KhN/oC02E5sQZcz7PE4v2yqfpziGZFVbmM7Vi5C9Vu5rq1VnEMYms3FkaxGJH3bQuBaDHW0oc8W948deIIgKkw7ej5E4iIokeTOHIjkD0nlYBNN6OjmBA3eP6Sz+iJLpWdgCqo/ll++MXqR5oRHMehGOBdu0kJjVXUxZqN9dJfBg3cghASepcm0j7ZtVR6Jlw28bcEK3dIl/LU1DjC8QLzjz2MMJq3kp5NNukOL9gBWqM+WwQfVt6Wk+4dPaZeZ9076iYW7fHBf18YuvSKPmQa03g== +Client_3 ZWElf7UOGL1oKyaUPfu0wvSRbHqbK1436UCm+oMUYYCaijE30s9Ee23+FEU4Q4gzCGCbCJk6QzoD7pV0Zx46U8mm+bPJffAlTPENnBcZ/qa4cvEieVnnYEb3M+M5zxNPxMB7kknUaYpwdrunLKYi6vDvvPQsF9pwvpls0kkM633evthWnWxc4wlmsQKePzOf1EnzSRMeIqzmCtOvZ5ZBZIs+yW7OzEyDktnrxWXX0n9lzf0AGaFpv5srb5KYrHtyJU13X3XF0Qj9b7c5M11GDjhUSZqZQUrp1ArSoly56+VeeJ8YYHIJoPv1AqnqMIs+5WFaRGLg2eQCjYtq8i+rRA== +Client_4 hNHbur0ursVKqZ+jPqH/o36UvftepoJ+n7oV0uefrsxJvSUZVdGAtrOU+rlANaZhjufsXXKw5d1OXRoCGdveq/vTWYB75U6tEwZIyqzJPWkUs0P/slBamNhIy/i2fZzXtU++bdsl5qmYP0lraBswhB+x7mWX3/iqeMGoMhpW9pZqcBRdCs+N782aZnMG7i+9F0bYBY82P9ZWE/QafbOOQkizAfgG03pQI/+Y/XiFpIqR6xvTffEGMzE+Bvbac3EaCyQqUu03tkTMiOGQnkFe0W9qiZKYu8RXrc7Hx8yDdbCNfvJTWlGcWjTWB/UPdpXv4DWGcOrfgVBf0qUfcO93SQ== +Client_5 EjADH08Kdh7OLl7Bs85HNznY55f8Bcat/KH0h6t96UVfvuPfcnWf1b5oobuBwJyRi27mmAffTAxqVSOtFu5yUUUZYvXraMTDOBHZlGMLLDsFY/w9llE9f3HWdB1S8b/P9VB2aF6mpSKpIl/1BrioXinnqLPyNbrz2+OEFPOncUZSCp4TlcTdXr3Zk3PySHi4LRX0a0kM3MCWgox7IpEvArEYo/walclkCUn1GaFGAZNqzObesgb9RS3efBI3YjwsqpHC2aV8npdMj2H/FsMfT4H5EFWqUU+rG13PPBm2LaYNyW8PhCfu7i5OkSOk/S9pvi2RPVLmglhBFr5HrGF+lQ== +Client_6 YbvyTVQPylkLIidbvysHHS1lfesl71QmRxbObWmmQczP/MLpC+IVrmI3MjC+JpkVD6EaR+STb3FmywU+QVzvZeBbi8JpHhFLUM6I7b0kaCB8uF7Ii/rnPI1QgkDc1m0GR8xPY5vXq/GPzvYVCoGzQmLkwon+J9nlc041GZvQbnlhgqXx1AWFpAxsObwD0jILnEDd9xTjByDyae9MopJVvmB9tIjbwm1dXx18ku4d4aEcKX1b83ZlfXuF/moVOQJ6Fnpchh2qMNnTgJj3ZnUy1YdNL3kV+svpFzcMVsQCRyUaAntzwFuEcvmjiHPebRYFUijiyAqJZRuucm7mndkV0A== +Client_7 OHPcZPm+FSzJvIBxclgLqSAHBJsffxuRnWDETeyd1R+NtzpqkbIMkxO2/k0J86lWZ8TFltV6sbhXS8aZ+sdALOdg5LsdoBhu+nCHaYHNh6q3buYn1z9JEgWBE0Xrc5lMdtJmqA7tOcasV5tk80g3isMb4ovgGFSnF9G1m43SgofXOvOvZ96cyTUfe4Cj5B+9SoiBz5ENa119v5E8N5052dQUjbhViCLkfxhWwZzTAzKy+FEEULL1yc+VMahNX5GY5aKsj1ZnaMFmnVB4t6rBqbtfij9LNIghHsTpwFd6lyCGvtv6J3TbS5CQnrNifRIk1Ifs7tRSTLAZinCSfahq6w== +Client_8 BTDx+M7GgkaDP6+7ltS/obLE68+NqUs0cirhnQNIzegmsq4yixlWDQWlapWjkBpEys/gubyaXVvkvYak5eRDO3LGleMmjRaYbt7K5z+2kOEQnNI0aBMri1RSTc6SsSggYi4i3Ps2Hj25R0vdz3YcLiyllEkRDtNemgmP1D9HBry2qYUQk7Tm2X6VeyDITrzeNh+h7B3eDlRbw0Hxp0r+cUGOJyXxC5p3v7rLfJKylkxNsJ4fphme15owtM9y9DIzlgrfOSaW7SqEKS1jE5LBqS30pPes3son71CKwFbKBMuHl+WH01wltsJzm3zrO8MIbwuifk87h7g/t0rWCy3Tug== +Client_9 JGLbfKw51tDO7TQ4Q047tIyCUUsohntMDyxIGxJPq5Wg4FeJX0ZcNTXSr2IGT3Xxe5VJidyIkZ3mj21/8bq9f0KfmGL2slRGJRsWVtcZRcC3VqB9BSK4F0+5otDZ3EN6FC8gZ7cT+slAA2PAcjvGzUmtyJoaQHof5oATPA+EbEjYm0Gn+d4Io1vWPAG++KUT89WGLBSoX9O1AIA3AL25u5cb59b6HtNrpCQ+QwR4Ye3a/0k5/kAzLztu8vld0aOeHYBqohDPGdQBG4jwaRvPPJ6SXAB0gL1W57iaiyzaDdKAoCaDDr7dC+Z0N+O4Q8Ufn7Vay3WjKZzDE7tYNI2oJg== +Client_10 DbVvyfVLLd+1URn/SNqeo/N67HeAQl3dd4m/+wOF1lnMENUC0/wqU4d7FSOJKlTpdBdkuaAxpspYklFrizLcMHrAMjcEnND3UJnvBCw5VEw11ofrIB24m2oLqkGqv8dVn+Woyfcd5dhHbWkHQaKeHz0FNrWq8A9dB5bN+fKPTJDSmWVHkIpVF/GupLKzsFnHbYoDpYgRqq7VS8FgUOzmuCDYNag8Vo6zrx7D+0xcqlY8BYxni6cHwO63cUXJ9ccFyOyS2nuxixb8UPVqTa5ieaBqI0pffyx40HW5heVI6bpXvjNgys/bi3l1ajuxnXJAVPikXtF8pUm/GQoF+AUxsw== +Client_11 ZjsSj3sCrtGPmNDqFPHHMgN5MOyji+jaGeqgscXVknREt9R2iuPEUknTzzmruzTNUtcCf9VED9pSOHWRYf0LuQZcpV0cUKcgtN2jz7yvL1210l/u0xKeAKf5JFJtM/FMyBYyThXXsQEv4sv3oD8eogkX3I6eHeXzvqS2IitVs4DsVwelfeBI3SFdv/FHp19n2oJJVVdiraswP5BwIY7V2i9KC0k4eSUoz/5tQV70rBZFT0epC14piqlcdT1P17yTh+TB/JwVLmFcIYVY9WxMO5N6K9JGLM/RIICg2wPn2fhC2rl5Mq96LyDmTerY0ZQ8Dzmq1avqTFsV8NwbdFNedA== +Client_12 R4wVG7PTCOT//LFg3uT4Tuxky8o9BE1YjV5jQtJfusyH2KJMu3mIOzDG1a847Hwx+I0vEIeUN0M/vY1UcMYRoEHk2AZCq5Jy25CZdy6dH6DiMUlFMKpF86BfDf7rNMtqtDVuUxR270z6vDT3+sAUoZ3tcj59zHCXn+Rl4p6UhqfEL8L5L8yMa0L8SnN1TvjgS2xg/sGM7ejF1rMvEAyuZjWNMsv+GnHRYAb7gIL8IVHshJcxM4jlOELZNFgYXVs2TeM96Bst4jD6j527kGxmyLViQ4x1fTKtp/qJJOYYuAOrxTKevjg1vqFmNqTqKqfVc2ujtRrPwNCxkEAho75K4g== +Client_13 15oPyzrICXwthOoPRo7CfVK0sXp1AuncBGHtLvcTG+McVMxQGtybqmImh5XksYoizcPP7wzPbNSwM8bY29uEGmgG8vHBcmJ2GAYYT3pT91LWymE0QyvXTOf4n+cVws+GoW0s3r6YYVphWdYGth1ZXDtzARF6UNY9L6YKyNJ6YFY3ka0NJhiUPmgG0+pV0ZXKnkKsocC+DFCW768YjpiI5viAziVvTDUi38Ooc33s6F4QQCqPzr6VeIVddjdpe6/Pfuzx1AJwWlEMicH8FZjTqQdRCE5u+Bc66lWfEtb+uWQU2fWQ+xNbn+XYg0X9mWPsicwwGHNgYYbUt+qs0Ed7Dg== +Client_14 0F3oPKNCrvP1aGiVddI8UPKziAnOofG0d2+8RCivz55ddHWgsCZIRx48Igv3zBECepm5Hb5yQC9rNMU0hmrLRZnKOABcnJ/LakHrkX7lvKteucmO9rHf6jRGNHxhFMGzcdxyLJMQpd757bJ9hq6whncZ1cygPE/n6k3MFmcjalZ/Nx+hc48XTRPrlQj+YmOFla4FRz70EjWNikFGRI921oNc/U+PDxLnAoi5taZH6IjpRoG5HiIXiyXqE+lN0QmEdL6FomQU9oWbHUW2O1yORqG5XP0NvbhgRXIqpPspmjB/NEHowUYj1VD7HQHdYVDIW81HlHULdrcGJF3y6lGJcg== +Client_15 ghQ3BhumhFuVh6wSn7eD4yFhSC3hBbtzvonhnekw6v5xqn7JKkmstUnr/+5fZBdPoXnRiAhckH1Yw0eRxOdyZJytoPQ5urnXtZPk9gbNFFpykvtvX2H2FRkAcGYCGvBieJpRscMiFue/+dN1eJp2i6/tHzLrAwQ7t4vbOElT1ZqigX1re2KXT3wTr2aOgJ1/iuS2FPu+dnWWFvk3R96dbCM40vYdCw9NVs+12FOerTfuW65lncGf5AoH1WVpXweedUNCVa6mYn/VaL4rCJ4i+GnCSewvOM5ime3rFTWq5PbIF2IPW1eJR/kvjzQCc9xs5N38phYbbjx04LzAukxJKw== +Client_16 hMdj8TwTnBE5AfIAqJpfJRF/MVetPd+sqCWaepvJjK3lZK87EOov0UDqbRUpbZTagJauOhvxfUfnt0gWeCF1cHRFG0TqJBUmUF8Wws/KgzuRwPoFGlKR8+doU1miGVkfdP2g41JQ71uBh+q72rp3HTMNhbcncFUisydcgtG8hDYG903SKp/pQdGeg5Nn1hgs8TUllZSh9wOofi8q822KxAKzteNtpfKTI0PmiO3Cut0PMJCblu+iZP9JKqtvv05jFL6QsyE1v0tCkXFQu28W5cNSGsPc7i4TEVDjI3tGI2T1gnMuMga82XBFWAV9UaiQMkToHaSKhyaQfKLQUpzQ+w== +Client_17 bQxbOPvos7yWQVKXlSmVv6dS8DZeBsBq+02dtWTrh9R0XJdx9m+VSpErh2I475Bn5uIo/6uZnWdM8D2uS/1Yqrp+IjiRJMk3vaalM39dMgu8Ns+Cw4co2r8wJQUy5/+T09yousxY1cIZ8UIF9Gro7r4x8RQu1uczVUh5Yf/DBdamEl+itXg+ZGAMadFEI+ZVRzZHAPXqZf31dWWE33PCVetsX+IKRjhF8o20IWwV7jJhIxrIewThvK1irEATuoTsShPm2MMESgH+Ag1nNkOQ4IYyIrtZ+trni6I1p5n4MjgIx9dZLxVuXdgYynn2eYZp0sy54JfJkk85/k0hz6NnBQ== +Client_18 z9Vebms2sHHExOJBL2DxERzL1c0/UqE/NYcgMMhNjjWxxKohGhj9mxtIG9LnUSDYDTsEA82Zxn0zHzjkFoCodzaskGq2z/cEzTqy9jbOWORnRyOMSIpoF/4s7frfGYSbn6ScOsG1Ij1E/zaT589GZMdUfM9cHC6rQ3hsieL8JbO1F1eSMh0isSXmR0lU1S8u5ogyipy1PoN18PZISZhaR9qC3tB4tDGqMcupdtTlV25JPaNZyZoX/9jTHEIm2miMiwBv0fdetTFWiFjRC8iukJmI/gv1AX0/at73pJjvg1diHerUdYV36odyAkFBRvMQJYuonttcl4qCL2YYZxCYZw== +Client_19 BAFu7t3aGhQQFIOD/jz9JOvnfwxH5XsFhmBSRh5fg3bZmzxA1wQzSnCUjsfZFItFMkIsf5CLIB6GaWh8iNT2sJAMqWL/vU3mtDWcslezLHHUDBPcMgPlTXseuW6ctsKcnd03zGooRnX0Rstb723H0jz2qHzBGn2MJ1zn4QPfSf1zABV6fGAHq8ae5+w4il0OVuYxpg5G2oNfqqUNQWRxFfzN6O9YTFbc7vy1IjKRVJz/2YocrqPvLCWRGtG7+mphLNLwaqFttgqQVbcSkLhRzlUIDWjZVWZZ3rvKxjGFIPSRU/Zgoer7kSKAjFjr3ZxtQEx7s+wBiNZrlozlou/YCg== From 96bafba1c980ca2be9550914e8adde577f962aa6 Mon Sep 17 00:00:00 2001 From: Tigran TIKSN Torosyan Date: Wed, 17 Jul 2019 22:30:21 +0300 Subject: [PATCH 030/139] Create Data.sql --- Data.sql | 376 +++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 376 insertions(+) create mode 100644 Data.sql diff --git a/Data.sql b/Data.sql new file mode 100644 index 0000000..20b0565 --- /dev/null +++ b/Data.sql @@ -0,0 +1,376 @@ +USE [IdentityManagementService] +GO +INSERT [dbo].[AspNetUsers] ([Id], [UserName], [NormalizedUserName], [Email], [NormalizedEmail], [EmailConfirmed], [PasswordHash], [SecurityStamp], [ConcurrencyStamp], [PhoneNumber], [PhoneNumberConfirmed], [TwoFactorEnabled], [LockoutEnd], [LockoutEnabled], [AccessFailedCount]) VALUES (N'5e4fd556-0caa-487b-b9eb-d3c29725df55', N'alice', N'ALICE', NULL, NULL, 0, N'AQAAAAEAACcQAAAAEFiXrtBAUFBrX398NIJNIPvSWohm+Jo7rPE3Huj5zHmwMSpTNmeT3xAvRsf5aJ0a8A==', N'DOD6VZMCYZRP7MH7PQTDCAULSVIHJXAD', N'c10a73a3-cf12-41ca-a992-eed62896b03c', NULL, 0, 0, NULL, 1, 0) +GO +INSERT [dbo].[AspNetUsers] ([Id], [UserName], [NormalizedUserName], [Email], [NormalizedEmail], [EmailConfirmed], [PasswordHash], [SecurityStamp], [ConcurrencyStamp], [PhoneNumber], [PhoneNumberConfirmed], [TwoFactorEnabled], [LockoutEnd], [LockoutEnabled], [AccessFailedCount]) VALUES (N'ff8a22f6-0991-42ba-9c05-d9ab987cd224', N'bob', N'BOB', NULL, NULL, 0, N'AQAAAAEAACcQAAAAEKqG/0MHNgjY5e280CXs3RhHDPZ5+vhjgEstXR/6ZUXcj6dWakXUI21g6Cy735uZUg==', N'JJNUYHF3P6DUNZET4N5HUXZEN4SMC2F7', N'a6eff5a6-1ff2-4806-b9fd-ca2c99205353', NULL, 0, 0, NULL, 1, 0) +GO +SET IDENTITY_INSERT [dbo].[AspNetUserClaims] ON +GO +INSERT [dbo].[AspNetUserClaims] ([Id], [UserId], [ClaimType], [ClaimValue]) VALUES (1, N'5e4fd556-0caa-487b-b9eb-d3c29725df55', N'name', N'Alice Smith') +GO +INSERT [dbo].[AspNetUserClaims] ([Id], [UserId], [ClaimType], [ClaimValue]) VALUES (2, N'5e4fd556-0caa-487b-b9eb-d3c29725df55', N'given_name', N'Alice') +GO +INSERT [dbo].[AspNetUserClaims] ([Id], [UserId], [ClaimType], [ClaimValue]) VALUES (3, N'5e4fd556-0caa-487b-b9eb-d3c29725df55', N'family_name', N'Smith') +GO +INSERT [dbo].[AspNetUserClaims] ([Id], [UserId], [ClaimType], [ClaimValue]) VALUES (4, N'5e4fd556-0caa-487b-b9eb-d3c29725df55', N'email', N'AliceSmith@email.com') +GO +INSERT [dbo].[AspNetUserClaims] ([Id], [UserId], [ClaimType], [ClaimValue]) VALUES (5, N'5e4fd556-0caa-487b-b9eb-d3c29725df55', N'email_verified', N'true') +GO +INSERT [dbo].[AspNetUserClaims] ([Id], [UserId], [ClaimType], [ClaimValue]) VALUES (6, N'5e4fd556-0caa-487b-b9eb-d3c29725df55', N'website', N'http://alice.com') +GO +INSERT [dbo].[AspNetUserClaims] ([Id], [UserId], [ClaimType], [ClaimValue]) VALUES (7, N'5e4fd556-0caa-487b-b9eb-d3c29725df55', N'address', N'{ ''street_address'': ''One Hacker Way'', ''locality'': ''Heidelberg'', ''postal_code'': 69118, ''country'': ''Germany'' }') +GO +INSERT [dbo].[AspNetUserClaims] ([Id], [UserId], [ClaimType], [ClaimValue]) VALUES (8, N'ff8a22f6-0991-42ba-9c05-d9ab987cd224', N'name', N'Bob Smith') +GO +INSERT [dbo].[AspNetUserClaims] ([Id], [UserId], [ClaimType], [ClaimValue]) VALUES (9, N'ff8a22f6-0991-42ba-9c05-d9ab987cd224', N'given_name', N'Bob') +GO +INSERT [dbo].[AspNetUserClaims] ([Id], [UserId], [ClaimType], [ClaimValue]) VALUES (10, N'ff8a22f6-0991-42ba-9c05-d9ab987cd224', N'family_name', N'Smith') +GO +INSERT [dbo].[AspNetUserClaims] ([Id], [UserId], [ClaimType], [ClaimValue]) VALUES (11, N'ff8a22f6-0991-42ba-9c05-d9ab987cd224', N'email', N'BobSmith@email.com') +GO +INSERT [dbo].[AspNetUserClaims] ([Id], [UserId], [ClaimType], [ClaimValue]) VALUES (12, N'ff8a22f6-0991-42ba-9c05-d9ab987cd224', N'email_verified', N'true') +GO +INSERT [dbo].[AspNetUserClaims] ([Id], [UserId], [ClaimType], [ClaimValue]) VALUES (13, N'ff8a22f6-0991-42ba-9c05-d9ab987cd224', N'website', N'http://bob.com') +GO +INSERT [dbo].[AspNetUserClaims] ([Id], [UserId], [ClaimType], [ClaimValue]) VALUES (14, N'ff8a22f6-0991-42ba-9c05-d9ab987cd224', N'address', N'{ ''street_address'': ''One Hacker Way'', ''locality'': ''Heidelberg'', ''postal_code'': 69118, ''country'': ''Germany'' }') +GO +INSERT [dbo].[AspNetUserClaims] ([Id], [UserId], [ClaimType], [ClaimValue]) VALUES (15, N'ff8a22f6-0991-42ba-9c05-d9ab987cd224', N'location', N'somewhere') +GO +SET IDENTITY_INSERT [dbo].[AspNetUserClaims] OFF +GO +SET IDENTITY_INSERT [dbo].[Clients] ON +GO +INSERT [dbo].[Clients] ([Id], [Enabled], [ClientId], [ProtocolType], [RequireClientSecret], [ClientName], [Description], [ClientUri], [LogoUri], [RequireConsent], [AllowRememberConsent], [AlwaysIncludeUserClaimsInIdToken], [RequirePkce], [AllowPlainTextPkce], [AllowAccessTokensViaBrowser], [FrontChannelLogoutUri], [FrontChannelLogoutSessionRequired], [BackChannelLogoutUri], [BackChannelLogoutSessionRequired], [AllowOfflineAccess], [IdentityTokenLifetime], [AccessTokenLifetime], [AuthorizationCodeLifetime], [ConsentLifetime], [AbsoluteRefreshTokenLifetime], [SlidingRefreshTokenLifetime], [RefreshTokenUsage], [UpdateAccessTokenClaimsOnRefresh], [RefreshTokenExpiration], [AccessTokenType], [EnableLocalLogin], [IncludeJwtId], [AlwaysSendClientClaims], [ClientClaimsPrefix], [PairWiseSubjectSalt], [Created], [Updated], [LastAccessed], [UserSsoLifetime], [UserCodeType], [DeviceCodeLifetime], [NonEditable]) VALUES (1, 1, N'Client_0', N'oidc', 1, N'Client 0 Client', NULL, N'http://identityserver.io', NULL, 1, 1, 0, 0, 0, 0, NULL, 1, NULL, 1, 0, 300, 3600, 300, NULL, 2592000, 1296000, 1, 0, 1, 0, 1, 0, 0, N'client_', NULL, CAST(N'2019-07-17T19:25:06.3074530' AS DateTime2), NULL, NULL, NULL, NULL, 300, 0) +GO +INSERT [dbo].[Clients] ([Id], [Enabled], [ClientId], [ProtocolType], [RequireClientSecret], [ClientName], [Description], [ClientUri], [LogoUri], [RequireConsent], [AllowRememberConsent], [AlwaysIncludeUserClaimsInIdToken], [RequirePkce], [AllowPlainTextPkce], [AllowAccessTokensViaBrowser], [FrontChannelLogoutUri], [FrontChannelLogoutSessionRequired], [BackChannelLogoutUri], [BackChannelLogoutSessionRequired], [AllowOfflineAccess], [IdentityTokenLifetime], [AccessTokenLifetime], [AuthorizationCodeLifetime], [ConsentLifetime], [AbsoluteRefreshTokenLifetime], [SlidingRefreshTokenLifetime], [RefreshTokenUsage], [UpdateAccessTokenClaimsOnRefresh], [RefreshTokenExpiration], [AccessTokenType], [EnableLocalLogin], [IncludeJwtId], [AlwaysSendClientClaims], [ClientClaimsPrefix], [PairWiseSubjectSalt], [Created], [Updated], [LastAccessed], [UserSsoLifetime], [UserCodeType], [DeviceCodeLifetime], [NonEditable]) VALUES (2, 1, N'Client_17', N'oidc', 1, N'Client 17 Client', NULL, N'http://identityserver.io', NULL, 1, 1, 0, 0, 0, 0, NULL, 1, NULL, 1, 0, 300, 3600, 300, NULL, 2592000, 1296000, 1, 0, 1, 0, 1, 0, 0, N'client_', NULL, CAST(N'2019-07-17T19:25:06.4198847' AS DateTime2), NULL, NULL, NULL, NULL, 300, 0) +GO +INSERT [dbo].[Clients] ([Id], [Enabled], [ClientId], [ProtocolType], [RequireClientSecret], [ClientName], [Description], [ClientUri], [LogoUri], [RequireConsent], [AllowRememberConsent], [AlwaysIncludeUserClaimsInIdToken], [RequirePkce], [AllowPlainTextPkce], [AllowAccessTokensViaBrowser], [FrontChannelLogoutUri], [FrontChannelLogoutSessionRequired], [BackChannelLogoutUri], [BackChannelLogoutSessionRequired], [AllowOfflineAccess], [IdentityTokenLifetime], [AccessTokenLifetime], [AuthorizationCodeLifetime], [ConsentLifetime], [AbsoluteRefreshTokenLifetime], [SlidingRefreshTokenLifetime], [RefreshTokenUsage], [UpdateAccessTokenClaimsOnRefresh], [RefreshTokenExpiration], [AccessTokenType], [EnableLocalLogin], [IncludeJwtId], [AlwaysSendClientClaims], [ClientClaimsPrefix], [PairWiseSubjectSalt], [Created], [Updated], [LastAccessed], [UserSsoLifetime], [UserCodeType], [DeviceCodeLifetime], [NonEditable]) VALUES (3, 1, N'Client_16', N'oidc', 1, N'Client 16 Client', NULL, N'http://identityserver.io', NULL, 1, 1, 0, 0, 0, 0, NULL, 1, NULL, 1, 0, 300, 3600, 300, NULL, 2592000, 1296000, 1, 0, 1, 0, 1, 0, 0, N'client_', NULL, CAST(N'2019-07-17T19:25:06.4193397' AS DateTime2), NULL, NULL, NULL, NULL, 300, 0) +GO +INSERT [dbo].[Clients] ([Id], [Enabled], [ClientId], [ProtocolType], [RequireClientSecret], [ClientName], [Description], [ClientUri], [LogoUri], [RequireConsent], [AllowRememberConsent], [AlwaysIncludeUserClaimsInIdToken], [RequirePkce], [AllowPlainTextPkce], [AllowAccessTokensViaBrowser], [FrontChannelLogoutUri], [FrontChannelLogoutSessionRequired], [BackChannelLogoutUri], [BackChannelLogoutSessionRequired], [AllowOfflineAccess], [IdentityTokenLifetime], [AccessTokenLifetime], [AuthorizationCodeLifetime], [ConsentLifetime], [AbsoluteRefreshTokenLifetime], [SlidingRefreshTokenLifetime], [RefreshTokenUsage], [UpdateAccessTokenClaimsOnRefresh], [RefreshTokenExpiration], [AccessTokenType], [EnableLocalLogin], [IncludeJwtId], [AlwaysSendClientClaims], [ClientClaimsPrefix], [PairWiseSubjectSalt], [Created], [Updated], [LastAccessed], [UserSsoLifetime], [UserCodeType], [DeviceCodeLifetime], [NonEditable]) VALUES (4, 1, N'Client_15', N'oidc', 1, N'Client 15 Client', NULL, N'http://identityserver.io', NULL, 1, 1, 0, 0, 0, 0, NULL, 1, NULL, 1, 0, 300, 3600, 300, NULL, 2592000, 1296000, 1, 0, 1, 0, 1, 0, 0, N'client_', NULL, CAST(N'2019-07-17T19:25:06.4172185' AS DateTime2), NULL, NULL, NULL, NULL, 300, 0) +GO +INSERT [dbo].[Clients] ([Id], [Enabled], [ClientId], [ProtocolType], [RequireClientSecret], [ClientName], [Description], [ClientUri], [LogoUri], [RequireConsent], [AllowRememberConsent], [AlwaysIncludeUserClaimsInIdToken], [RequirePkce], [AllowPlainTextPkce], [AllowAccessTokensViaBrowser], [FrontChannelLogoutUri], [FrontChannelLogoutSessionRequired], [BackChannelLogoutUri], [BackChannelLogoutSessionRequired], [AllowOfflineAccess], [IdentityTokenLifetime], [AccessTokenLifetime], [AuthorizationCodeLifetime], [ConsentLifetime], [AbsoluteRefreshTokenLifetime], [SlidingRefreshTokenLifetime], [RefreshTokenUsage], [UpdateAccessTokenClaimsOnRefresh], [RefreshTokenExpiration], [AccessTokenType], [EnableLocalLogin], [IncludeJwtId], [AlwaysSendClientClaims], [ClientClaimsPrefix], [PairWiseSubjectSalt], [Created], [Updated], [LastAccessed], [UserSsoLifetime], [UserCodeType], [DeviceCodeLifetime], [NonEditable]) VALUES (5, 1, N'Client_14', N'oidc', 1, N'Client 14 Client', NULL, N'http://identityserver.io', NULL, 1, 1, 0, 0, 0, 0, NULL, 1, NULL, 1, 0, 300, 3600, 300, NULL, 2592000, 1296000, 1, 0, 1, 0, 1, 0, 0, N'client_', NULL, CAST(N'2019-07-17T19:25:06.4165624' AS DateTime2), NULL, NULL, NULL, NULL, 300, 0) +GO +INSERT [dbo].[Clients] ([Id], [Enabled], [ClientId], [ProtocolType], [RequireClientSecret], [ClientName], [Description], [ClientUri], [LogoUri], [RequireConsent], [AllowRememberConsent], [AlwaysIncludeUserClaimsInIdToken], [RequirePkce], [AllowPlainTextPkce], [AllowAccessTokensViaBrowser], [FrontChannelLogoutUri], [FrontChannelLogoutSessionRequired], [BackChannelLogoutUri], [BackChannelLogoutSessionRequired], [AllowOfflineAccess], [IdentityTokenLifetime], [AccessTokenLifetime], [AuthorizationCodeLifetime], [ConsentLifetime], [AbsoluteRefreshTokenLifetime], [SlidingRefreshTokenLifetime], [RefreshTokenUsage], [UpdateAccessTokenClaimsOnRefresh], [RefreshTokenExpiration], [AccessTokenType], [EnableLocalLogin], [IncludeJwtId], [AlwaysSendClientClaims], [ClientClaimsPrefix], [PairWiseSubjectSalt], [Created], [Updated], [LastAccessed], [UserSsoLifetime], [UserCodeType], [DeviceCodeLifetime], [NonEditable]) VALUES (6, 1, N'Client_13', N'oidc', 1, N'Client 13 Client', NULL, N'http://identityserver.io', NULL, 1, 1, 0, 0, 0, 0, NULL, 1, NULL, 1, 0, 300, 3600, 300, NULL, 2592000, 1296000, 1, 0, 1, 0, 1, 0, 0, N'client_', NULL, CAST(N'2019-07-17T19:25:06.4156326' AS DateTime2), NULL, NULL, NULL, NULL, 300, 0) +GO +INSERT [dbo].[Clients] ([Id], [Enabled], [ClientId], [ProtocolType], [RequireClientSecret], [ClientName], [Description], [ClientUri], [LogoUri], [RequireConsent], [AllowRememberConsent], [AlwaysIncludeUserClaimsInIdToken], [RequirePkce], [AllowPlainTextPkce], [AllowAccessTokensViaBrowser], [FrontChannelLogoutUri], [FrontChannelLogoutSessionRequired], [BackChannelLogoutUri], [BackChannelLogoutSessionRequired], [AllowOfflineAccess], [IdentityTokenLifetime], [AccessTokenLifetime], [AuthorizationCodeLifetime], [ConsentLifetime], [AbsoluteRefreshTokenLifetime], [SlidingRefreshTokenLifetime], [RefreshTokenUsage], [UpdateAccessTokenClaimsOnRefresh], [RefreshTokenExpiration], [AccessTokenType], [EnableLocalLogin], [IncludeJwtId], [AlwaysSendClientClaims], [ClientClaimsPrefix], [PairWiseSubjectSalt], [Created], [Updated], [LastAccessed], [UserSsoLifetime], [UserCodeType], [DeviceCodeLifetime], [NonEditable]) VALUES (7, 1, N'Client_12', N'oidc', 1, N'Client 12 Client', NULL, N'http://identityserver.io', NULL, 1, 1, 0, 0, 0, 0, NULL, 1, NULL, 1, 0, 300, 3600, 300, NULL, 2592000, 1296000, 1, 0, 1, 0, 1, 0, 0, N'client_', NULL, CAST(N'2019-07-17T19:25:06.4151104' AS DateTime2), NULL, NULL, NULL, NULL, 300, 0) +GO +INSERT [dbo].[Clients] ([Id], [Enabled], [ClientId], [ProtocolType], [RequireClientSecret], [ClientName], [Description], [ClientUri], [LogoUri], [RequireConsent], [AllowRememberConsent], [AlwaysIncludeUserClaimsInIdToken], [RequirePkce], [AllowPlainTextPkce], [AllowAccessTokensViaBrowser], [FrontChannelLogoutUri], [FrontChannelLogoutSessionRequired], [BackChannelLogoutUri], [BackChannelLogoutSessionRequired], [AllowOfflineAccess], [IdentityTokenLifetime], [AccessTokenLifetime], [AuthorizationCodeLifetime], [ConsentLifetime], [AbsoluteRefreshTokenLifetime], [SlidingRefreshTokenLifetime], [RefreshTokenUsage], [UpdateAccessTokenClaimsOnRefresh], [RefreshTokenExpiration], [AccessTokenType], [EnableLocalLogin], [IncludeJwtId], [AlwaysSendClientClaims], [ClientClaimsPrefix], [PairWiseSubjectSalt], [Created], [Updated], [LastAccessed], [UserSsoLifetime], [UserCodeType], [DeviceCodeLifetime], [NonEditable]) VALUES (8, 1, N'Client_11', N'oidc', 1, N'Client 11 Client', NULL, N'http://identityserver.io', NULL, 1, 1, 0, 0, 0, 0, NULL, 1, NULL, 1, 0, 300, 3600, 300, NULL, 2592000, 1296000, 1, 0, 1, 0, 1, 0, 0, N'client_', NULL, CAST(N'2019-07-17T19:25:06.4146409' AS DateTime2), NULL, NULL, NULL, NULL, 300, 0) +GO +INSERT [dbo].[Clients] ([Id], [Enabled], [ClientId], [ProtocolType], [RequireClientSecret], [ClientName], [Description], [ClientUri], [LogoUri], [RequireConsent], [AllowRememberConsent], [AlwaysIncludeUserClaimsInIdToken], [RequirePkce], [AllowPlainTextPkce], [AllowAccessTokensViaBrowser], [FrontChannelLogoutUri], [FrontChannelLogoutSessionRequired], [BackChannelLogoutUri], [BackChannelLogoutSessionRequired], [AllowOfflineAccess], [IdentityTokenLifetime], [AccessTokenLifetime], [AuthorizationCodeLifetime], [ConsentLifetime], [AbsoluteRefreshTokenLifetime], [SlidingRefreshTokenLifetime], [RefreshTokenUsage], [UpdateAccessTokenClaimsOnRefresh], [RefreshTokenExpiration], [AccessTokenType], [EnableLocalLogin], [IncludeJwtId], [AlwaysSendClientClaims], [ClientClaimsPrefix], [PairWiseSubjectSalt], [Created], [Updated], [LastAccessed], [UserSsoLifetime], [UserCodeType], [DeviceCodeLifetime], [NonEditable]) VALUES (9, 1, N'Client_10', N'oidc', 1, N'Client 10 Client', NULL, N'http://identityserver.io', NULL, 1, 1, 0, 0, 0, 0, NULL, 1, NULL, 1, 0, 300, 3600, 300, NULL, 2592000, 1296000, 1, 0, 1, 0, 1, 0, 0, N'client_', NULL, CAST(N'2019-07-17T19:25:06.4141537' AS DateTime2), NULL, NULL, NULL, NULL, 300, 0) +GO +INSERT [dbo].[Clients] ([Id], [Enabled], [ClientId], [ProtocolType], [RequireClientSecret], [ClientName], [Description], [ClientUri], [LogoUri], [RequireConsent], [AllowRememberConsent], [AlwaysIncludeUserClaimsInIdToken], [RequirePkce], [AllowPlainTextPkce], [AllowAccessTokensViaBrowser], [FrontChannelLogoutUri], [FrontChannelLogoutSessionRequired], [BackChannelLogoutUri], [BackChannelLogoutSessionRequired], [AllowOfflineAccess], [IdentityTokenLifetime], [AccessTokenLifetime], [AuthorizationCodeLifetime], [ConsentLifetime], [AbsoluteRefreshTokenLifetime], [SlidingRefreshTokenLifetime], [RefreshTokenUsage], [UpdateAccessTokenClaimsOnRefresh], [RefreshTokenExpiration], [AccessTokenType], [EnableLocalLogin], [IncludeJwtId], [AlwaysSendClientClaims], [ClientClaimsPrefix], [PairWiseSubjectSalt], [Created], [Updated], [LastAccessed], [UserSsoLifetime], [UserCodeType], [DeviceCodeLifetime], [NonEditable]) VALUES (10, 1, N'Client_9', N'oidc', 1, N'Client 9 Client', NULL, N'http://identityserver.io', NULL, 1, 1, 0, 0, 0, 0, NULL, 1, NULL, 1, 0, 300, 3600, 300, NULL, 2592000, 1296000, 1, 0, 1, 0, 1, 0, 0, N'client_', NULL, CAST(N'2019-07-17T19:25:06.4136438' AS DateTime2), NULL, NULL, NULL, NULL, 300, 0) +GO +INSERT [dbo].[Clients] ([Id], [Enabled], [ClientId], [ProtocolType], [RequireClientSecret], [ClientName], [Description], [ClientUri], [LogoUri], [RequireConsent], [AllowRememberConsent], [AlwaysIncludeUserClaimsInIdToken], [RequirePkce], [AllowPlainTextPkce], [AllowAccessTokensViaBrowser], [FrontChannelLogoutUri], [FrontChannelLogoutSessionRequired], [BackChannelLogoutUri], [BackChannelLogoutSessionRequired], [AllowOfflineAccess], [IdentityTokenLifetime], [AccessTokenLifetime], [AuthorizationCodeLifetime], [ConsentLifetime], [AbsoluteRefreshTokenLifetime], [SlidingRefreshTokenLifetime], [RefreshTokenUsage], [UpdateAccessTokenClaimsOnRefresh], [RefreshTokenExpiration], [AccessTokenType], [EnableLocalLogin], [IncludeJwtId], [AlwaysSendClientClaims], [ClientClaimsPrefix], [PairWiseSubjectSalt], [Created], [Updated], [LastAccessed], [UserSsoLifetime], [UserCodeType], [DeviceCodeLifetime], [NonEditable]) VALUES (11, 1, N'Client_8', N'oidc', 1, N'Client 8 Client', NULL, N'http://identityserver.io', NULL, 1, 1, 0, 0, 0, 0, NULL, 1, NULL, 1, 0, 300, 3600, 300, NULL, 2592000, 1296000, 1, 0, 1, 0, 1, 0, 0, N'client_', NULL, CAST(N'2019-07-17T19:25:06.4130695' AS DateTime2), NULL, NULL, NULL, NULL, 300, 0) +GO +INSERT [dbo].[Clients] ([Id], [Enabled], [ClientId], [ProtocolType], [RequireClientSecret], [ClientName], [Description], [ClientUri], [LogoUri], [RequireConsent], [AllowRememberConsent], [AlwaysIncludeUserClaimsInIdToken], [RequirePkce], [AllowPlainTextPkce], [AllowAccessTokensViaBrowser], [FrontChannelLogoutUri], [FrontChannelLogoutSessionRequired], [BackChannelLogoutUri], [BackChannelLogoutSessionRequired], [AllowOfflineAccess], [IdentityTokenLifetime], [AccessTokenLifetime], [AuthorizationCodeLifetime], [ConsentLifetime], [AbsoluteRefreshTokenLifetime], [SlidingRefreshTokenLifetime], [RefreshTokenUsage], [UpdateAccessTokenClaimsOnRefresh], [RefreshTokenExpiration], [AccessTokenType], [EnableLocalLogin], [IncludeJwtId], [AlwaysSendClientClaims], [ClientClaimsPrefix], [PairWiseSubjectSalt], [Created], [Updated], [LastAccessed], [UserSsoLifetime], [UserCodeType], [DeviceCodeLifetime], [NonEditable]) VALUES (12, 1, N'Client_7', N'oidc', 1, N'Client 7 Client', NULL, N'http://identityserver.io', NULL, 1, 1, 0, 0, 0, 0, NULL, 1, NULL, 1, 0, 300, 3600, 300, NULL, 2592000, 1296000, 1, 0, 1, 0, 1, 0, 0, N'client_', NULL, CAST(N'2019-07-17T19:25:06.4106335' AS DateTime2), NULL, NULL, NULL, NULL, 300, 0) +GO +INSERT [dbo].[Clients] ([Id], [Enabled], [ClientId], [ProtocolType], [RequireClientSecret], [ClientName], [Description], [ClientUri], [LogoUri], [RequireConsent], [AllowRememberConsent], [AlwaysIncludeUserClaimsInIdToken], [RequirePkce], [AllowPlainTextPkce], [AllowAccessTokensViaBrowser], [FrontChannelLogoutUri], [FrontChannelLogoutSessionRequired], [BackChannelLogoutUri], [BackChannelLogoutSessionRequired], [AllowOfflineAccess], [IdentityTokenLifetime], [AccessTokenLifetime], [AuthorizationCodeLifetime], [ConsentLifetime], [AbsoluteRefreshTokenLifetime], [SlidingRefreshTokenLifetime], [RefreshTokenUsage], [UpdateAccessTokenClaimsOnRefresh], [RefreshTokenExpiration], [AccessTokenType], [EnableLocalLogin], [IncludeJwtId], [AlwaysSendClientClaims], [ClientClaimsPrefix], [PairWiseSubjectSalt], [Created], [Updated], [LastAccessed], [UserSsoLifetime], [UserCodeType], [DeviceCodeLifetime], [NonEditable]) VALUES (13, 1, N'Client_6', N'oidc', 1, N'Client 6 Client', NULL, N'http://identityserver.io', NULL, 1, 1, 0, 0, 0, 0, NULL, 1, NULL, 1, 0, 300, 3600, 300, NULL, 2592000, 1296000, 1, 0, 1, 0, 1, 0, 0, N'client_', NULL, CAST(N'2019-07-17T19:25:06.4097861' AS DateTime2), NULL, NULL, NULL, NULL, 300, 0) +GO +INSERT [dbo].[Clients] ([Id], [Enabled], [ClientId], [ProtocolType], [RequireClientSecret], [ClientName], [Description], [ClientUri], [LogoUri], [RequireConsent], [AllowRememberConsent], [AlwaysIncludeUserClaimsInIdToken], [RequirePkce], [AllowPlainTextPkce], [AllowAccessTokensViaBrowser], [FrontChannelLogoutUri], [FrontChannelLogoutSessionRequired], [BackChannelLogoutUri], [BackChannelLogoutSessionRequired], [AllowOfflineAccess], [IdentityTokenLifetime], [AccessTokenLifetime], [AuthorizationCodeLifetime], [ConsentLifetime], [AbsoluteRefreshTokenLifetime], [SlidingRefreshTokenLifetime], [RefreshTokenUsage], [UpdateAccessTokenClaimsOnRefresh], [RefreshTokenExpiration], [AccessTokenType], [EnableLocalLogin], [IncludeJwtId], [AlwaysSendClientClaims], [ClientClaimsPrefix], [PairWiseSubjectSalt], [Created], [Updated], [LastAccessed], [UserSsoLifetime], [UserCodeType], [DeviceCodeLifetime], [NonEditable]) VALUES (14, 1, N'Client_5', N'oidc', 1, N'Client 5 Client', NULL, N'http://identityserver.io', NULL, 1, 1, 0, 0, 0, 0, NULL, 1, NULL, 1, 0, 300, 3600, 300, NULL, 2592000, 1296000, 1, 0, 1, 0, 1, 0, 0, N'client_', NULL, CAST(N'2019-07-17T19:25:06.4092640' AS DateTime2), NULL, NULL, NULL, NULL, 300, 0) +GO +INSERT [dbo].[Clients] ([Id], [Enabled], [ClientId], [ProtocolType], [RequireClientSecret], [ClientName], [Description], [ClientUri], [LogoUri], [RequireConsent], [AllowRememberConsent], [AlwaysIncludeUserClaimsInIdToken], [RequirePkce], [AllowPlainTextPkce], [AllowAccessTokensViaBrowser], [FrontChannelLogoutUri], [FrontChannelLogoutSessionRequired], [BackChannelLogoutUri], [BackChannelLogoutSessionRequired], [AllowOfflineAccess], [IdentityTokenLifetime], [AccessTokenLifetime], [AuthorizationCodeLifetime], [ConsentLifetime], [AbsoluteRefreshTokenLifetime], [SlidingRefreshTokenLifetime], [RefreshTokenUsage], [UpdateAccessTokenClaimsOnRefresh], [RefreshTokenExpiration], [AccessTokenType], [EnableLocalLogin], [IncludeJwtId], [AlwaysSendClientClaims], [ClientClaimsPrefix], [PairWiseSubjectSalt], [Created], [Updated], [LastAccessed], [UserSsoLifetime], [UserCodeType], [DeviceCodeLifetime], [NonEditable]) VALUES (15, 1, N'Client_4', N'oidc', 1, N'Client 4 Client', NULL, N'http://identityserver.io', NULL, 1, 1, 0, 0, 0, 0, NULL, 1, NULL, 1, 0, 300, 3600, 300, NULL, 2592000, 1296000, 1, 0, 1, 0, 1, 0, 0, N'client_', NULL, CAST(N'2019-07-17T19:25:06.4087165' AS DateTime2), NULL, NULL, NULL, NULL, 300, 0) +GO +INSERT [dbo].[Clients] ([Id], [Enabled], [ClientId], [ProtocolType], [RequireClientSecret], [ClientName], [Description], [ClientUri], [LogoUri], [RequireConsent], [AllowRememberConsent], [AlwaysIncludeUserClaimsInIdToken], [RequirePkce], [AllowPlainTextPkce], [AllowAccessTokensViaBrowser], [FrontChannelLogoutUri], [FrontChannelLogoutSessionRequired], [BackChannelLogoutUri], [BackChannelLogoutSessionRequired], [AllowOfflineAccess], [IdentityTokenLifetime], [AccessTokenLifetime], [AuthorizationCodeLifetime], [ConsentLifetime], [AbsoluteRefreshTokenLifetime], [SlidingRefreshTokenLifetime], [RefreshTokenUsage], [UpdateAccessTokenClaimsOnRefresh], [RefreshTokenExpiration], [AccessTokenType], [EnableLocalLogin], [IncludeJwtId], [AlwaysSendClientClaims], [ClientClaimsPrefix], [PairWiseSubjectSalt], [Created], [Updated], [LastAccessed], [UserSsoLifetime], [UserCodeType], [DeviceCodeLifetime], [NonEditable]) VALUES (16, 1, N'Client_3', N'oidc', 1, N'Client 3 Client', NULL, N'http://identityserver.io', NULL, 1, 1, 0, 0, 0, 0, NULL, 1, NULL, 1, 0, 300, 3600, 300, NULL, 2592000, 1296000, 1, 0, 1, 0, 1, 0, 0, N'client_', NULL, CAST(N'2019-07-17T19:25:06.4082211' AS DateTime2), NULL, NULL, NULL, NULL, 300, 0) +GO +INSERT [dbo].[Clients] ([Id], [Enabled], [ClientId], [ProtocolType], [RequireClientSecret], [ClientName], [Description], [ClientUri], [LogoUri], [RequireConsent], [AllowRememberConsent], [AlwaysIncludeUserClaimsInIdToken], [RequirePkce], [AllowPlainTextPkce], [AllowAccessTokensViaBrowser], [FrontChannelLogoutUri], [FrontChannelLogoutSessionRequired], [BackChannelLogoutUri], [BackChannelLogoutSessionRequired], [AllowOfflineAccess], [IdentityTokenLifetime], [AccessTokenLifetime], [AuthorizationCodeLifetime], [ConsentLifetime], [AbsoluteRefreshTokenLifetime], [SlidingRefreshTokenLifetime], [RefreshTokenUsage], [UpdateAccessTokenClaimsOnRefresh], [RefreshTokenExpiration], [AccessTokenType], [EnableLocalLogin], [IncludeJwtId], [AlwaysSendClientClaims], [ClientClaimsPrefix], [PairWiseSubjectSalt], [Created], [Updated], [LastAccessed], [UserSsoLifetime], [UserCodeType], [DeviceCodeLifetime], [NonEditable]) VALUES (17, 1, N'Client_2', N'oidc', 1, N'Client 2 Client', NULL, N'http://identityserver.io', NULL, 1, 1, 0, 0, 0, 0, NULL, 1, NULL, 1, 0, 300, 3600, 300, NULL, 2592000, 1296000, 1, 0, 1, 0, 1, 0, 0, N'client_', NULL, CAST(N'2019-07-17T19:25:06.4075896' AS DateTime2), NULL, NULL, NULL, NULL, 300, 0) +GO +INSERT [dbo].[Clients] ([Id], [Enabled], [ClientId], [ProtocolType], [RequireClientSecret], [ClientName], [Description], [ClientUri], [LogoUri], [RequireConsent], [AllowRememberConsent], [AlwaysIncludeUserClaimsInIdToken], [RequirePkce], [AllowPlainTextPkce], [AllowAccessTokensViaBrowser], [FrontChannelLogoutUri], [FrontChannelLogoutSessionRequired], [BackChannelLogoutUri], [BackChannelLogoutSessionRequired], [AllowOfflineAccess], [IdentityTokenLifetime], [AccessTokenLifetime], [AuthorizationCodeLifetime], [ConsentLifetime], [AbsoluteRefreshTokenLifetime], [SlidingRefreshTokenLifetime], [RefreshTokenUsage], [UpdateAccessTokenClaimsOnRefresh], [RefreshTokenExpiration], [AccessTokenType], [EnableLocalLogin], [IncludeJwtId], [AlwaysSendClientClaims], [ClientClaimsPrefix], [PairWiseSubjectSalt], [Created], [Updated], [LastAccessed], [UserSsoLifetime], [UserCodeType], [DeviceCodeLifetime], [NonEditable]) VALUES (18, 1, N'Client_1', N'oidc', 1, N'Client 1 Client', NULL, N'http://identityserver.io', NULL, 1, 1, 0, 0, 0, 0, NULL, 1, NULL, 1, 0, 300, 3600, 300, NULL, 2592000, 1296000, 1, 0, 1, 0, 1, 0, 0, N'client_', NULL, CAST(N'2019-07-17T19:25:06.4034661' AS DateTime2), NULL, NULL, NULL, NULL, 300, 0) +GO +INSERT [dbo].[Clients] ([Id], [Enabled], [ClientId], [ProtocolType], [RequireClientSecret], [ClientName], [Description], [ClientUri], [LogoUri], [RequireConsent], [AllowRememberConsent], [AlwaysIncludeUserClaimsInIdToken], [RequirePkce], [AllowPlainTextPkce], [AllowAccessTokensViaBrowser], [FrontChannelLogoutUri], [FrontChannelLogoutSessionRequired], [BackChannelLogoutUri], [BackChannelLogoutSessionRequired], [AllowOfflineAccess], [IdentityTokenLifetime], [AccessTokenLifetime], [AuthorizationCodeLifetime], [ConsentLifetime], [AbsoluteRefreshTokenLifetime], [SlidingRefreshTokenLifetime], [RefreshTokenUsage], [UpdateAccessTokenClaimsOnRefresh], [RefreshTokenExpiration], [AccessTokenType], [EnableLocalLogin], [IncludeJwtId], [AlwaysSendClientClaims], [ClientClaimsPrefix], [PairWiseSubjectSalt], [Created], [Updated], [LastAccessed], [UserSsoLifetime], [UserCodeType], [DeviceCodeLifetime], [NonEditable]) VALUES (19, 1, N'Client_18', N'oidc', 1, N'Client 18 Client', NULL, N'http://identityserver.io', NULL, 1, 1, 0, 0, 0, 0, NULL, 1, NULL, 1, 0, 300, 3600, 300, NULL, 2592000, 1296000, 1, 0, 1, 0, 1, 0, 0, N'client_', NULL, CAST(N'2019-07-17T19:25:06.4203358' AS DateTime2), NULL, NULL, NULL, NULL, 300, 0) +GO +INSERT [dbo].[Clients] ([Id], [Enabled], [ClientId], [ProtocolType], [RequireClientSecret], [ClientName], [Description], [ClientUri], [LogoUri], [RequireConsent], [AllowRememberConsent], [AlwaysIncludeUserClaimsInIdToken], [RequirePkce], [AllowPlainTextPkce], [AllowAccessTokensViaBrowser], [FrontChannelLogoutUri], [FrontChannelLogoutSessionRequired], [BackChannelLogoutUri], [BackChannelLogoutSessionRequired], [AllowOfflineAccess], [IdentityTokenLifetime], [AccessTokenLifetime], [AuthorizationCodeLifetime], [ConsentLifetime], [AbsoluteRefreshTokenLifetime], [SlidingRefreshTokenLifetime], [RefreshTokenUsage], [UpdateAccessTokenClaimsOnRefresh], [RefreshTokenExpiration], [AccessTokenType], [EnableLocalLogin], [IncludeJwtId], [AlwaysSendClientClaims], [ClientClaimsPrefix], [PairWiseSubjectSalt], [Created], [Updated], [LastAccessed], [UserSsoLifetime], [UserCodeType], [DeviceCodeLifetime], [NonEditable]) VALUES (20, 1, N'Client_19', N'oidc', 1, N'Client 19 Client', NULL, N'http://identityserver.io', NULL, 1, 1, 0, 0, 0, 0, NULL, 1, NULL, 1, 0, 300, 3600, 300, NULL, 2592000, 1296000, 1, 0, 1, 0, 1, 0, 0, N'client_', NULL, CAST(N'2019-07-17T19:25:06.4207247' AS DateTime2), NULL, NULL, NULL, NULL, 300, 0) +GO +SET IDENTITY_INSERT [dbo].[Clients] OFF +GO +SET IDENTITY_INSERT [dbo].[ClientGrantTypes] ON +GO +INSERT [dbo].[ClientGrantTypes] ([Id], [GrantType], [ClientId]) VALUES (1, N'client_credentials', 1) +GO +INSERT [dbo].[ClientGrantTypes] ([Id], [GrantType], [ClientId]) VALUES (2, N'client_credentials', 9) +GO +INSERT [dbo].[ClientGrantTypes] ([Id], [GrantType], [ClientId]) VALUES (3, N'client_credentials', 11) +GO +INSERT [dbo].[ClientGrantTypes] ([Id], [GrantType], [ClientId]) VALUES (4, N'password', 8) +GO +INSERT [dbo].[ClientGrantTypes] ([Id], [GrantType], [ClientId]) VALUES (5, N'password', 12) +GO +INSERT [dbo].[ClientGrantTypes] ([Id], [GrantType], [ClientId]) VALUES (6, N'client_credentials', 13) +GO +INSERT [dbo].[ClientGrantTypes] ([Id], [GrantType], [ClientId]) VALUES (7, N'client_credentials', 7) +GO +INSERT [dbo].[ClientGrantTypes] ([Id], [GrantType], [ClientId]) VALUES (8, N'password', 14) +GO +INSERT [dbo].[ClientGrantTypes] ([Id], [GrantType], [ClientId]) VALUES (9, N'password', 20) +GO +INSERT [dbo].[ClientGrantTypes] ([Id], [GrantType], [ClientId]) VALUES (10, N'client_credentials', 19) +GO +INSERT [dbo].[ClientGrantTypes] ([Id], [GrantType], [ClientId]) VALUES (11, N'password', 10) +GO +INSERT [dbo].[ClientGrantTypes] ([Id], [GrantType], [ClientId]) VALUES (12, N'client_credentials', 15) +GO +INSERT [dbo].[ClientGrantTypes] ([Id], [GrantType], [ClientId]) VALUES (13, N'client_credentials', 5) +GO +INSERT [dbo].[ClientGrantTypes] ([Id], [GrantType], [ClientId]) VALUES (14, N'password', 16) +GO +INSERT [dbo].[ClientGrantTypes] ([Id], [GrantType], [ClientId]) VALUES (15, N'password', 4) +GO +INSERT [dbo].[ClientGrantTypes] ([Id], [GrantType], [ClientId]) VALUES (16, N'password', 6) +GO +INSERT [dbo].[ClientGrantTypes] ([Id], [GrantType], [ClientId]) VALUES (17, N'client_credentials', 17) +GO +INSERT [dbo].[ClientGrantTypes] ([Id], [GrantType], [ClientId]) VALUES (18, N'password', 18) +GO +INSERT [dbo].[ClientGrantTypes] ([Id], [GrantType], [ClientId]) VALUES (19, N'password', 2) +GO +INSERT [dbo].[ClientGrantTypes] ([Id], [GrantType], [ClientId]) VALUES (20, N'client_credentials', 3) +GO +SET IDENTITY_INSERT [dbo].[ClientGrantTypes] OFF +GO +SET IDENTITY_INSERT [dbo].[ClientScopes] ON +GO +INSERT [dbo].[ClientScopes] ([Id], [Scope], [ClientId]) VALUES (1, N'openid', 4) +GO +INSERT [dbo].[ClientScopes] ([Id], [Scope], [ClientId]) VALUES (2, N'api2.read_only', 8) +GO +INSERT [dbo].[ClientScopes] ([Id], [Scope], [ClientId]) VALUES (3, N'api1', 8) +GO +INSERT [dbo].[ClientScopes] ([Id], [Scope], [ClientId]) VALUES (4, N'email', 8) +GO +INSERT [dbo].[ClientScopes] ([Id], [Scope], [ClientId]) VALUES (5, N'profile', 8) +GO +INSERT [dbo].[ClientScopes] ([Id], [Scope], [ClientId]) VALUES (6, N'openid', 8) +GO +INSERT [dbo].[ClientScopes] ([Id], [Scope], [ClientId]) VALUES (7, N'api1', 3) +GO +INSERT [dbo].[ClientScopes] ([Id], [Scope], [ClientId]) VALUES (8, N'api2.read_only', 3) +GO +INSERT [dbo].[ClientScopes] ([Id], [Scope], [ClientId]) VALUES (9, N'profile', 19) +GO +INSERT [dbo].[ClientScopes] ([Id], [Scope], [ClientId]) VALUES (10, N'api2.read_only', 9) +GO +INSERT [dbo].[ClientScopes] ([Id], [Scope], [ClientId]) VALUES (11, N'api1', 9) +GO +INSERT [dbo].[ClientScopes] ([Id], [Scope], [ClientId]) VALUES (12, N'email', 9) +GO +INSERT [dbo].[ClientScopes] ([Id], [Scope], [ClientId]) VALUES (13, N'profile', 9) +GO +INSERT [dbo].[ClientScopes] ([Id], [Scope], [ClientId]) VALUES (14, N'email', 2) +GO +INSERT [dbo].[ClientScopes] ([Id], [Scope], [ClientId]) VALUES (15, N'openid', 9) +GO +INSERT [dbo].[ClientScopes] ([Id], [Scope], [ClientId]) VALUES (16, N'api2.read_only', 20) +GO +INSERT [dbo].[ClientScopes] ([Id], [Scope], [ClientId]) VALUES (17, N'api2.read_only', 10) +GO +INSERT [dbo].[ClientScopes] ([Id], [Scope], [ClientId]) VALUES (18, N'api1', 10) +GO +INSERT [dbo].[ClientScopes] ([Id], [Scope], [ClientId]) VALUES (19, N'email', 10) +GO +INSERT [dbo].[ClientScopes] ([Id], [Scope], [ClientId]) VALUES (20, N'openid', 19) +GO +INSERT [dbo].[ClientScopes] ([Id], [Scope], [ClientId]) VALUES (21, N'email', 3) +GO +INSERT [dbo].[ClientScopes] ([Id], [Scope], [ClientId]) VALUES (22, N'openid', 7) +GO +INSERT [dbo].[ClientScopes] ([Id], [Scope], [ClientId]) VALUES (23, N'profile', 4) +GO +INSERT [dbo].[ClientScopes] ([Id], [Scope], [ClientId]) VALUES (24, N'api2.read_only', 2) +GO +INSERT [dbo].[ClientScopes] ([Id], [Scope], [ClientId]) VALUES (25, N'api2.read_only', 5) +GO +INSERT [dbo].[ClientScopes] ([Id], [Scope], [ClientId]) VALUES (26, N'api1', 5) +GO +INSERT [dbo].[ClientScopes] ([Id], [Scope], [ClientId]) VALUES (27, N'email', 4) +GO +INSERT [dbo].[ClientScopes] ([Id], [Scope], [ClientId]) VALUES (28, N'email', 5) +GO +INSERT [dbo].[ClientScopes] ([Id], [Scope], [ClientId]) VALUES (29, N'profile', 5) +GO +INSERT [dbo].[ClientScopes] ([Id], [Scope], [ClientId]) VALUES (30, N'openid', 5) +GO +INSERT [dbo].[ClientScopes] ([Id], [Scope], [ClientId]) VALUES (31, N'api1', 4) +GO +INSERT [dbo].[ClientScopes] ([Id], [Scope], [ClientId]) VALUES (32, N'api2.read_only', 6) +GO +INSERT [dbo].[ClientScopes] ([Id], [Scope], [ClientId]) VALUES (33, N'profile', 3) +GO +INSERT [dbo].[ClientScopes] ([Id], [Scope], [ClientId]) VALUES (34, N'api1', 6) +GO +INSERT [dbo].[ClientScopes] ([Id], [Scope], [ClientId]) VALUES (35, N'email', 6) +GO +INSERT [dbo].[ClientScopes] ([Id], [Scope], [ClientId]) VALUES (36, N'profile', 6) +GO +INSERT [dbo].[ClientScopes] ([Id], [Scope], [ClientId]) VALUES (37, N'openid', 6) +GO +INSERT [dbo].[ClientScopes] ([Id], [Scope], [ClientId]) VALUES (38, N'api1', 2) +GO +INSERT [dbo].[ClientScopes] ([Id], [Scope], [ClientId]) VALUES (39, N'openid', 3) +GO +INSERT [dbo].[ClientScopes] ([Id], [Scope], [ClientId]) VALUES (40, N'api2.read_only', 7) +GO +INSERT [dbo].[ClientScopes] ([Id], [Scope], [ClientId]) VALUES (41, N'api1', 7) +GO +INSERT [dbo].[ClientScopes] ([Id], [Scope], [ClientId]) VALUES (42, N'email', 7) +GO +INSERT [dbo].[ClientScopes] ([Id], [Scope], [ClientId]) VALUES (43, N'profile', 7) +GO +INSERT [dbo].[ClientScopes] ([Id], [Scope], [ClientId]) VALUES (44, N'api2.read_only', 4) +GO +INSERT [dbo].[ClientScopes] ([Id], [Scope], [ClientId]) VALUES (45, N'profile', 10) +GO +INSERT [dbo].[ClientScopes] ([Id], [Scope], [ClientId]) VALUES (46, N'api1', 11) +GO +INSERT [dbo].[ClientScopes] ([Id], [Scope], [ClientId]) VALUES (47, N'email', 19) +GO +INSERT [dbo].[ClientScopes] ([Id], [Scope], [ClientId]) VALUES (48, N'openid', 20) +GO +INSERT [dbo].[ClientScopes] ([Id], [Scope], [ClientId]) VALUES (49, N'api2.read_only', 16) +GO +INSERT [dbo].[ClientScopes] ([Id], [Scope], [ClientId]) VALUES (50, N'api1', 16) +GO +INSERT [dbo].[ClientScopes] ([Id], [Scope], [ClientId]) VALUES (51, N'email', 16) +GO +INSERT [dbo].[ClientScopes] ([Id], [Scope], [ClientId]) VALUES (52, N'profile', 16) +GO +INSERT [dbo].[ClientScopes] ([Id], [Scope], [ClientId]) VALUES (53, N'openid', 16) +GO +INSERT [dbo].[ClientScopes] ([Id], [Scope], [ClientId]) VALUES (54, N'profile', 20) +GO +INSERT [dbo].[ClientScopes] ([Id], [Scope], [ClientId]) VALUES (55, N'api2.read_only', 17) +GO +INSERT [dbo].[ClientScopes] ([Id], [Scope], [ClientId]) VALUES (56, N'api1', 17) +GO +INSERT [dbo].[ClientScopes] ([Id], [Scope], [ClientId]) VALUES (57, N'email', 17) +GO +INSERT [dbo].[ClientScopes] ([Id], [Scope], [ClientId]) VALUES (58, N'profile', 17) +GO +INSERT [dbo].[ClientScopes] ([Id], [Scope], [ClientId]) VALUES (59, N'openid', 15) +GO +INSERT [dbo].[ClientScopes] ([Id], [Scope], [ClientId]) VALUES (60, N'openid', 17) +GO +INSERT [dbo].[ClientScopes] ([Id], [Scope], [ClientId]) VALUES (61, N'api2.read_only', 18) +GO +INSERT [dbo].[ClientScopes] ([Id], [Scope], [ClientId]) VALUES (62, N'api1', 18) +GO +INSERT [dbo].[ClientScopes] ([Id], [Scope], [ClientId]) VALUES (63, N'email', 18) +GO +INSERT [dbo].[ClientScopes] ([Id], [Scope], [ClientId]) VALUES (64, N'profile', 18) +GO +INSERT [dbo].[ClientScopes] ([Id], [Scope], [ClientId]) VALUES (65, N'openid', 18) +GO +INSERT [dbo].[ClientScopes] ([Id], [Scope], [ClientId]) VALUES (66, N'api1', 20) +GO +INSERT [dbo].[ClientScopes] ([Id], [Scope], [ClientId]) VALUES (67, N'api2.read_only', 1) +GO +INSERT [dbo].[ClientScopes] ([Id], [Scope], [ClientId]) VALUES (68, N'api1', 1) +GO +INSERT [dbo].[ClientScopes] ([Id], [Scope], [ClientId]) VALUES (69, N'email', 1) +GO +INSERT [dbo].[ClientScopes] ([Id], [Scope], [ClientId]) VALUES (70, N'profile', 1) +GO +INSERT [dbo].[ClientScopes] ([Id], [Scope], [ClientId]) VALUES (71, N'openid', 1) +GO +INSERT [dbo].[ClientScopes] ([Id], [Scope], [ClientId]) VALUES (72, N'email', 20) +GO +INSERT [dbo].[ClientScopes] ([Id], [Scope], [ClientId]) VALUES (73, N'openid', 10) +GO +INSERT [dbo].[ClientScopes] ([Id], [Scope], [ClientId]) VALUES (74, N'profile', 15) +GO +INSERT [dbo].[ClientScopes] ([Id], [Scope], [ClientId]) VALUES (75, N'api1', 15) +GO +INSERT [dbo].[ClientScopes] ([Id], [Scope], [ClientId]) VALUES (76, N'api2.read_only', 11) +GO +INSERT [dbo].[ClientScopes] ([Id], [Scope], [ClientId]) VALUES (77, N'openid', 2) +GO +INSERT [dbo].[ClientScopes] ([Id], [Scope], [ClientId]) VALUES (78, N'email', 11) +GO +INSERT [dbo].[ClientScopes] ([Id], [Scope], [ClientId]) VALUES (79, N'profile', 11) +GO +INSERT [dbo].[ClientScopes] ([Id], [Scope], [ClientId]) VALUES (80, N'openid', 11) +GO +INSERT [dbo].[ClientScopes] ([Id], [Scope], [ClientId]) VALUES (81, N'api1', 19) +GO +INSERT [dbo].[ClientScopes] ([Id], [Scope], [ClientId]) VALUES (82, N'api2.read_only', 12) +GO +INSERT [dbo].[ClientScopes] ([Id], [Scope], [ClientId]) VALUES (83, N'api1', 12) +GO +INSERT [dbo].[ClientScopes] ([Id], [Scope], [ClientId]) VALUES (84, N'email', 12) +GO +INSERT [dbo].[ClientScopes] ([Id], [Scope], [ClientId]) VALUES (85, N'profile', 12) +GO +INSERT [dbo].[ClientScopes] ([Id], [Scope], [ClientId]) VALUES (86, N'openid', 12) +GO +INSERT [dbo].[ClientScopes] ([Id], [Scope], [ClientId]) VALUES (87, N'api2.read_only', 19) +GO +INSERT [dbo].[ClientScopes] ([Id], [Scope], [ClientId]) VALUES (88, N'api2.read_only', 13) +GO +INSERT [dbo].[ClientScopes] ([Id], [Scope], [ClientId]) VALUES (89, N'api1', 13) +GO +INSERT [dbo].[ClientScopes] ([Id], [Scope], [ClientId]) VALUES (90, N'email', 13) +GO +INSERT [dbo].[ClientScopes] ([Id], [Scope], [ClientId]) VALUES (91, N'profile', 13) +GO +INSERT [dbo].[ClientScopes] ([Id], [Scope], [ClientId]) VALUES (92, N'openid', 13) +GO +INSERT [dbo].[ClientScopes] ([Id], [Scope], [ClientId]) VALUES (93, N'api2.read_only', 14) +GO +INSERT [dbo].[ClientScopes] ([Id], [Scope], [ClientId]) VALUES (94, N'api1', 14) +GO +INSERT [dbo].[ClientScopes] ([Id], [Scope], [ClientId]) VALUES (95, N'email', 14) +GO +INSERT [dbo].[ClientScopes] ([Id], [Scope], [ClientId]) VALUES (96, N'profile', 14) +GO +INSERT [dbo].[ClientScopes] ([Id], [Scope], [ClientId]) VALUES (97, N'openid', 14) +GO +INSERT [dbo].[ClientScopes] ([Id], [Scope], [ClientId]) VALUES (98, N'api2.read_only', 15) +GO +INSERT [dbo].[ClientScopes] ([Id], [Scope], [ClientId]) VALUES (99, N'email', 15) +GO +INSERT [dbo].[ClientScopes] ([Id], [Scope], [ClientId]) VALUES (100, N'profile', 2) +GO +SET IDENTITY_INSERT [dbo].[ClientScopes] OFF +GO +SET IDENTITY_INSERT [dbo].[ClientSecrets] ON +GO +INSERT [dbo].[ClientSecrets] ([Id], [Description], [Value], [Expiration], [Type], [Created], [ClientId]) VALUES (1, N'Client 18 description', N'z9Vebms2sHHExOJBL2DxERzL1c0/UqE/NYcgMMhNjjWxxKohGhj9mxtIG9LnUSDYDTsEA82Zxn0zHzjkFoCodzaskGq2z/cEzTqy9jbOWORnRyOMSIpoF/4s7frfGYSbn6ScOsG1Ij1E/zaT589GZMdUfM9cHC6rQ3hsieL8JbO1F1eSMh0isSXmR0lU1S8u5ogyipy1PoN18PZISZhaR9qC3tB4tDGqMcupdtTlV25JPaNZyZoX/9jTHEIm2miMiwBv0fdetTFWiFjRC8iukJmI/gv1AX0/at73pJjvg1diHerUdYV36odyAkFBRvMQJYuonttcl4qCL2YYZxCYZw==', CAST(N'2020-07-17T22:25:06.4201984' AS DateTime2), N'SharedSecret', CAST(N'2019-07-17T19:25:06.4203366' AS DateTime2), 19) +GO +INSERT [dbo].[ClientSecrets] ([Id], [Description], [Value], [Expiration], [Type], [Created], [ClientId]) VALUES (2, N'Client 17 description', N'bQxbOPvos7yWQVKXlSmVv6dS8DZeBsBq+02dtWTrh9R0XJdx9m+VSpErh2I475Bn5uIo/6uZnWdM8D2uS/1Yqrp+IjiRJMk3vaalM39dMgu8Ns+Cw4co2r8wJQUy5/+T09yousxY1cIZ8UIF9Gro7r4x8RQu1uczVUh5Yf/DBdamEl+itXg+ZGAMadFEI+ZVRzZHAPXqZf31dWWE33PCVetsX+IKRjhF8o20IWwV7jJhIxrIewThvK1irEATuoTsShPm2MMESgH+Ag1nNkOQ4IYyIrtZ+trni6I1p5n4MjgIx9dZLxVuXdgYynn2eYZp0sy54JfJkk85/k0hz6NnBQ==', CAST(N'2020-07-17T22:25:06.4197061' AS DateTime2), N'SharedSecret', CAST(N'2019-07-17T19:25:06.4198859' AS DateTime2), 2) +GO +INSERT [dbo].[ClientSecrets] ([Id], [Description], [Value], [Expiration], [Type], [Created], [ClientId]) VALUES (3, N'Client 9 description', N'JGLbfKw51tDO7TQ4Q047tIyCUUsohntMDyxIGxJPq5Wg4FeJX0ZcNTXSr2IGT3Xxe5VJidyIkZ3mj21/8bq9f0KfmGL2slRGJRsWVtcZRcC3VqB9BSK4F0+5otDZ3EN6FC8gZ7cT+slAA2PAcjvGzUmtyJoaQHof5oATPA+EbEjYm0Gn+d4Io1vWPAG++KUT89WGLBSoX9O1AIA3AL25u5cb59b6HtNrpCQ+QwR4Ye3a/0k5/kAzLztu8vld0aOeHYBqohDPGdQBG4jwaRvPPJ6SXAB0gL1W57iaiyzaDdKAoCaDDr7dC+Z0N+O4Q8Ufn7Vay3WjKZzDE7tYNI2oJg==', CAST(N'2020-07-17T22:25:06.4134142' AS DateTime2), N'SharedSecret', CAST(N'2019-07-17T19:25:06.4136447' AS DateTime2), 10) +GO +INSERT [dbo].[ClientSecrets] ([Id], [Description], [Value], [Expiration], [Type], [Created], [ClientId]) VALUES (4, N'Client 15 description', N'ghQ3BhumhFuVh6wSn7eD4yFhSC3hBbtzvonhnekw6v5xqn7JKkmstUnr/+5fZBdPoXnRiAhckH1Yw0eRxOdyZJytoPQ5urnXtZPk9gbNFFpykvtvX2H2FRkAcGYCGvBieJpRscMiFue/+dN1eJp2i6/tHzLrAwQ7t4vbOElT1ZqigX1re2KXT3wTr2aOgJ1/iuS2FPu+dnWWFvk3R96dbCM40vYdCw9NVs+12FOerTfuW65lncGf5AoH1WVpXweedUNCVa6mYn/VaL4rCJ4i+GnCSewvOM5ime3rFTWq5PbIF2IPW1eJR/kvjzQCc9xs5N38phYbbjx04LzAukxJKw==', CAST(N'2020-07-17T22:25:06.4170704' AS DateTime2), N'SharedSecret', CAST(N'2019-07-17T19:25:06.4172196' AS DateTime2), 4) +GO +INSERT [dbo].[ClientSecrets] ([Id], [Description], [Value], [Expiration], [Type], [Created], [ClientId]) VALUES (5, N'Client 0 description', N'HR7FsThALW0k6MD1Bo+PLOaJss2Bz7RiTsWIWlsIs+veTtrVf6HmBoY13NRORcWMhvRVr1G1m01pY2NyuNMSHDTUF7e1ua1FoqtGTPPgEwgA+9NmsgSaKLOMbBw+c06zIsCgei4N18xHEAylbk5aiVBacr3/rGkvOu4EKE2RBi5dkykzP5ja8yQGH6L49LlkMuLL5AGQs3ZWcEA/CK5/tgndSNslJ0m3f3+Y+IzGN0U0oPVqxSItzOCz3M9Ymup1h2mZGqzePwuYFGSC97rpkDn7Cmi5FPDmsHv6cUt6XuWVI3EjLR2YVmDq0rC+q9QlykuWXY+BvHJ4smkx487AHQ==', CAST(N'2020-07-17T22:25:06.0026121' AS DateTime2), N'SharedSecret', CAST(N'2019-07-17T19:25:06.3078730' AS DateTime2), 1) +GO +INSERT [dbo].[ClientSecrets] ([Id], [Description], [Value], [Expiration], [Type], [Created], [ClientId]) VALUES (6, N'Client 1 description', N'tX/t1EnFYxtitAfOQkAoBabVpv/kAVUTZ/+rerNmcpIqtPo+vQDbBOh6+tt57S83imSLDifAObQq2W1KGuho+0J1pI5F6Uel+qEWagZ5mXnPc+9P22RraXtGFOSSkOr/Ev+YBEih8qAc5ROFqc6tsD/zeqb4GCDeCTsT/9RjE2m2FlgH4ZQxLoFPM/VQ5r+smGSknxZEB/neuvsNjfPLuNKqzpJ2ps6qwkwlqeUqjiN7ZmZwv3RTcg9eKCeZJKCNg3ojpRgsNfKV+dzJHl0UtCzYkSeMW/leV1uDGH2nEZ6rlyZqBugKTzF028aXiVOySXT7wZN5ASiAxU68qR117Q==', CAST(N'2020-07-17T22:25:06.4022280' AS DateTime2), N'SharedSecret', CAST(N'2019-07-17T19:25:06.4034719' AS DateTime2), 18) +GO +INSERT [dbo].[ClientSecrets] ([Id], [Description], [Value], [Expiration], [Type], [Created], [ClientId]) VALUES (7, N'Client 2 description', N'5z4ehzeprUPNQvYYfzPHzQjRzgisUAoxlv7qQZlOpRP+7d5Yasx7oMa39FGD6KhN/oC02E5sQZcz7PE4v2yqfpziGZFVbmM7Vi5C9Vu5rq1VnEMYms3FkaxGJH3bQuBaDHW0oc8W948deIIgKkw7ej5E4iIokeTOHIjkD0nlYBNN6OjmBA3eP6Sz+iJLpWdgCqo/ll++MXqR5oRHMehGOBdu0kJjVXUxZqN9dJfBg3cghASepcm0j7ZtVR6Jlw28bcEK3dIl/LU1DjC8QLzjz2MMJq3kp5NNukOL9gBWqM+WwQfVt6Wk+4dPaZeZ9076iYW7fHBf18YuvSKPmQa03g==', CAST(N'2020-07-17T22:25:06.4073122' AS DateTime2), N'SharedSecret', CAST(N'2019-07-17T19:25:06.4075910' AS DateTime2), 17) +GO +INSERT [dbo].[ClientSecrets] ([Id], [Description], [Value], [Expiration], [Type], [Created], [ClientId]) VALUES (8, N'Client 3 description', N'ZWElf7UOGL1oKyaUPfu0wvSRbHqbK1436UCm+oMUYYCaijE30s9Ee23+FEU4Q4gzCGCbCJk6QzoD7pV0Zx46U8mm+bPJffAlTPENnBcZ/qa4cvEieVnnYEb3M+M5zxNPxMB7kknUaYpwdrunLKYi6vDvvPQsF9pwvpls0kkM633evthWnWxc4wlmsQKePzOf1EnzSRMeIqzmCtOvZ5ZBZIs+yW7OzEyDktnrxWXX0n9lzf0AGaFpv5srb5KYrHtyJU13X3XF0Qj9b7c5M11GDjhUSZqZQUrp1ArSoly56+VeeJ8YYHIJoPv1AqnqMIs+5WFaRGLg2eQCjYtq8i+rRA==', CAST(N'2020-07-17T22:25:06.4080082' AS DateTime2), N'SharedSecret', CAST(N'2019-07-17T19:25:06.4082220' AS DateTime2), 16) +GO +INSERT [dbo].[ClientSecrets] ([Id], [Description], [Value], [Expiration], [Type], [Created], [ClientId]) VALUES (9, N'Client 4 description', N'hNHbur0ursVKqZ+jPqH/o36UvftepoJ+n7oV0uefrsxJvSUZVdGAtrOU+rlANaZhjufsXXKw5d1OXRoCGdveq/vTWYB75U6tEwZIyqzJPWkUs0P/slBamNhIy/i2fZzXtU++bdsl5qmYP0lraBswhB+x7mWX3/iqeMGoMhpW9pZqcBRdCs+N782aZnMG7i+9F0bYBY82P9ZWE/QafbOOQkizAfgG03pQI/+Y/XiFpIqR6xvTffEGMzE+Bvbac3EaCyQqUu03tkTMiOGQnkFe0W9qiZKYu8RXrc7Hx8yDdbCNfvJTWlGcWjTWB/UPdpXv4DWGcOrfgVBf0qUfcO93SQ==', CAST(N'2020-07-17T22:25:06.4084995' AS DateTime2), N'SharedSecret', CAST(N'2019-07-17T19:25:06.4087174' AS DateTime2), 15) +GO +INSERT [dbo].[ClientSecrets] ([Id], [Description], [Value], [Expiration], [Type], [Created], [ClientId]) VALUES (10, N'Client 5 description', N'EjADH08Kdh7OLl7Bs85HNznY55f8Bcat/KH0h6t96UVfvuPfcnWf1b5oobuBwJyRi27mmAffTAxqVSOtFu5yUUUZYvXraMTDOBHZlGMLLDsFY/w9llE9f3HWdB1S8b/P9VB2aF6mpSKpIl/1BrioXinnqLPyNbrz2+OEFPOncUZSCp4TlcTdXr3Zk3PySHi4LRX0a0kM3MCWgox7IpEvArEYo/walclkCUn1GaFGAZNqzObesgb9RS3efBI3YjwsqpHC2aV8npdMj2H/FsMfT4H5EFWqUU+rG13PPBm2LaYNyW8PhCfu7i5OkSOk/S9pvi2RPVLmglhBFr5HrGF+lQ==', CAST(N'2020-07-17T22:25:06.4090311' AS DateTime2), N'SharedSecret', CAST(N'2019-07-17T19:25:06.4092648' AS DateTime2), 14) +GO +INSERT [dbo].[ClientSecrets] ([Id], [Description], [Value], [Expiration], [Type], [Created], [ClientId]) VALUES (11, N'Client 16 description', N'hMdj8TwTnBE5AfIAqJpfJRF/MVetPd+sqCWaepvJjK3lZK87EOov0UDqbRUpbZTagJauOhvxfUfnt0gWeCF1cHRFG0TqJBUmUF8Wws/KgzuRwPoFGlKR8+doU1miGVkfdP2g41JQ71uBh+q72rp3HTMNhbcncFUisydcgtG8hDYG903SKp/pQdGeg5Nn1hgs8TUllZSh9wOofi8q822KxAKzteNtpfKTI0PmiO3Cut0PMJCblu+iZP9JKqtvv05jFL6QsyE1v0tCkXFQu28W5cNSGsPc7i4TEVDjI3tGI2T1gnMuMga82XBFWAV9UaiQMkToHaSKhyaQfKLQUpzQ+w==', CAST(N'2020-07-17T22:25:06.4185347' AS DateTime2), N'SharedSecret', CAST(N'2019-07-17T19:25:06.4193417' AS DateTime2), 3) +GO +INSERT [dbo].[ClientSecrets] ([Id], [Description], [Value], [Expiration], [Type], [Created], [ClientId]) VALUES (12, N'Client 6 description', N'YbvyTVQPylkLIidbvysHHS1lfesl71QmRxbObWmmQczP/MLpC+IVrmI3MjC+JpkVD6EaR+STb3FmywU+QVzvZeBbi8JpHhFLUM6I7b0kaCB8uF7Ii/rnPI1QgkDc1m0GR8xPY5vXq/GPzvYVCoGzQmLkwon+J9nlc041GZvQbnlhgqXx1AWFpAxsObwD0jILnEDd9xTjByDyae9MopJVvmB9tIjbwm1dXx18ku4d4aEcKX1b83ZlfXuF/moVOQJ6Fnpchh2qMNnTgJj3ZnUy1YdNL3kV+svpFzcMVsQCRyUaAntzwFuEcvmjiHPebRYFUijiyAqJZRuucm7mndkV0A==', CAST(N'2020-07-17T22:25:06.4095528' AS DateTime2), N'SharedSecret', CAST(N'2019-07-17T19:25:06.4097870' AS DateTime2), 13) +GO +INSERT [dbo].[ClientSecrets] ([Id], [Description], [Value], [Expiration], [Type], [Created], [ClientId]) VALUES (13, N'Client 8 description', N'BTDx+M7GgkaDP6+7ltS/obLE68+NqUs0cirhnQNIzegmsq4yixlWDQWlapWjkBpEys/gubyaXVvkvYak5eRDO3LGleMmjRaYbt7K5z+2kOEQnNI0aBMri1RSTc6SsSggYi4i3Ps2Hj25R0vdz3YcLiyllEkRDtNemgmP1D9HBry2qYUQk7Tm2X6VeyDITrzeNh+h7B3eDlRbw0Hxp0r+cUGOJyXxC5p3v7rLfJKylkxNsJ4fphme15owtM9y9DIzlgrfOSaW7SqEKS1jE5LBqS30pPes3son71CKwFbKBMuHl+WH01wltsJzm3zrO8MIbwuifk87h7g/t0rWCy3Tug==', CAST(N'2020-07-17T22:25:06.4109746' AS DateTime2), N'SharedSecret', CAST(N'2019-07-17T19:25:06.4130709' AS DateTime2), 11) +GO +INSERT [dbo].[ClientSecrets] ([Id], [Description], [Value], [Expiration], [Type], [Created], [ClientId]) VALUES (14, N'Client 10 description', N'DbVvyfVLLd+1URn/SNqeo/N67HeAQl3dd4m/+wOF1lnMENUC0/wqU4d7FSOJKlTpdBdkuaAxpspYklFrizLcMHrAMjcEnND3UJnvBCw5VEw11ofrIB24m2oLqkGqv8dVn+Woyfcd5dhHbWkHQaKeHz0FNrWq8A9dB5bN+fKPTJDSmWVHkIpVF/GupLKzsFnHbYoDpYgRqq7VS8FgUOzmuCDYNag8Vo6zrx7D+0xcqlY8BYxni6cHwO63cUXJ9ccFyOyS2nuxixb8UPVqTa5ieaBqI0pffyx40HW5heVI6bpXvjNgys/bi3l1ajuxnXJAVPikXtF8pUm/GQoF+AUxsw==', CAST(N'2020-07-17T22:25:06.4139391' AS DateTime2), N'SharedSecret', CAST(N'2019-07-17T19:25:06.4141546' AS DateTime2), 9) +GO +INSERT [dbo].[ClientSecrets] ([Id], [Description], [Value], [Expiration], [Type], [Created], [ClientId]) VALUES (15, N'Client 11 description', N'ZjsSj3sCrtGPmNDqFPHHMgN5MOyji+jaGeqgscXVknREt9R2iuPEUknTzzmruzTNUtcCf9VED9pSOHWRYf0LuQZcpV0cUKcgtN2jz7yvL1210l/u0xKeAKf5JFJtM/FMyBYyThXXsQEv4sv3oD8eogkX3I6eHeXzvqS2IitVs4DsVwelfeBI3SFdv/FHp19n2oJJVVdiraswP5BwIY7V2i9KC0k4eSUoz/5tQV70rBZFT0epC14piqlcdT1P17yTh+TB/JwVLmFcIYVY9WxMO5N6K9JGLM/RIICg2wPn2fhC2rl5Mq96LyDmTerY0ZQ8Dzmq1avqTFsV8NwbdFNedA==', CAST(N'2020-07-17T22:25:06.4144141' AS DateTime2), N'SharedSecret', CAST(N'2019-07-17T19:25:06.4146417' AS DateTime2), 8) +GO +INSERT [dbo].[ClientSecrets] ([Id], [Description], [Value], [Expiration], [Type], [Created], [ClientId]) VALUES (16, N'Client 12 description', N'R4wVG7PTCOT//LFg3uT4Tuxky8o9BE1YjV5jQtJfusyH2KJMu3mIOzDG1a847Hwx+I0vEIeUN0M/vY1UcMYRoEHk2AZCq5Jy25CZdy6dH6DiMUlFMKpF86BfDf7rNMtqtDVuUxR270z6vDT3+sAUoZ3tcj59zHCXn+Rl4p6UhqfEL8L5L8yMa0L8SnN1TvjgS2xg/sGM7ejF1rMvEAyuZjWNMsv+GnHRYAb7gIL8IVHshJcxM4jlOELZNFgYXVs2TeM96Bst4jD6j527kGxmyLViQ4x1fTKtp/qJJOYYuAOrxTKevjg1vqFmNqTqKqfVc2ujtRrPwNCxkEAho75K4g==', CAST(N'2020-07-17T22:25:06.4149037' AS DateTime2), N'SharedSecret', CAST(N'2019-07-17T19:25:06.4151112' AS DateTime2), 7) +GO +INSERT [dbo].[ClientSecrets] ([Id], [Description], [Value], [Expiration], [Type], [Created], [ClientId]) VALUES (17, N'Client 13 description', N'15oPyzrICXwthOoPRo7CfVK0sXp1AuncBGHtLvcTG+McVMxQGtybqmImh5XksYoizcPP7wzPbNSwM8bY29uEGmgG8vHBcmJ2GAYYT3pT91LWymE0QyvXTOf4n+cVws+GoW0s3r6YYVphWdYGth1ZXDtzARF6UNY9L6YKyNJ6YFY3ka0NJhiUPmgG0+pV0ZXKnkKsocC+DFCW768YjpiI5viAziVvTDUi38Ooc33s6F4QQCqPzr6VeIVddjdpe6/Pfuzx1AJwWlEMicH8FZjTqQdRCE5u+Bc66lWfEtb+uWQU2fWQ+xNbn+XYg0X9mWPsicwwGHNgYYbUt+qs0Ed7Dg==', CAST(N'2020-07-17T22:25:06.4154056' AS DateTime2), N'SharedSecret', CAST(N'2019-07-17T19:25:06.4156335' AS DateTime2), 6) +GO +INSERT [dbo].[ClientSecrets] ([Id], [Description], [Value], [Expiration], [Type], [Created], [ClientId]) VALUES (18, N'Client 14 description', N'0F3oPKNCrvP1aGiVddI8UPKziAnOofG0d2+8RCivz55ddHWgsCZIRx48Igv3zBECepm5Hb5yQC9rNMU0hmrLRZnKOABcnJ/LakHrkX7lvKteucmO9rHf6jRGNHxhFMGzcdxyLJMQpd757bJ9hq6whncZ1cygPE/n6k3MFmcjalZ/Nx+hc48XTRPrlQj+YmOFla4FRz70EjWNikFGRI921oNc/U+PDxLnAoi5taZH6IjpRoG5HiIXiyXqE+lN0QmEdL6FomQU9oWbHUW2O1yORqG5XP0NvbhgRXIqpPspmjB/NEHowUYj1VD7HQHdYVDIW81HlHULdrcGJF3y6lGJcg==', CAST(N'2020-07-17T22:25:06.4158916' AS DateTime2), N'SharedSecret', CAST(N'2019-07-17T19:25:06.4165633' AS DateTime2), 5) +GO +INSERT [dbo].[ClientSecrets] ([Id], [Description], [Value], [Expiration], [Type], [Created], [ClientId]) VALUES (19, N'Client 7 description', N'OHPcZPm+FSzJvIBxclgLqSAHBJsffxuRnWDETeyd1R+NtzpqkbIMkxO2/k0J86lWZ8TFltV6sbhXS8aZ+sdALOdg5LsdoBhu+nCHaYHNh6q3buYn1z9JEgWBE0Xrc5lMdtJmqA7tOcasV5tk80g3isMb4ovgGFSnF9G1m43SgofXOvOvZ96cyTUfe4Cj5B+9SoiBz5ENa119v5E8N5052dQUjbhViCLkfxhWwZzTAzKy+FEEULL1yc+VMahNX5GY5aKsj1ZnaMFmnVB4t6rBqbtfij9LNIghHsTpwFd6lyCGvtv6J3TbS5CQnrNifRIk1Ifs7tRSTLAZinCSfahq6w==', CAST(N'2020-07-17T22:25:06.4103042' AS DateTime2), N'SharedSecret', CAST(N'2019-07-17T19:25:06.4106346' AS DateTime2), 12) +GO +INSERT [dbo].[ClientSecrets] ([Id], [Description], [Value], [Expiration], [Type], [Created], [ClientId]) VALUES (20, N'Client 19 description', N'BAFu7t3aGhQQFIOD/jz9JOvnfwxH5XsFhmBSRh5fg3bZmzxA1wQzSnCUjsfZFItFMkIsf5CLIB6GaWh8iNT2sJAMqWL/vU3mtDWcslezLHHUDBPcMgPlTXseuW6ctsKcnd03zGooRnX0Rstb723H0jz2qHzBGn2MJ1zn4QPfSf1zABV6fGAHq8ae5+w4il0OVuYxpg5G2oNfqqUNQWRxFfzN6O9YTFbc7vy1IjKRVJz/2YocrqPvLCWRGtG7+mphLNLwaqFttgqQVbcSkLhRzlUIDWjZVWZZ3rvKxjGFIPSRU/Zgoer7kSKAjFjr3ZxtQEx7s+wBiNZrlozlou/YCg==', CAST(N'2020-07-17T22:25:06.4205935' AS DateTime2), N'SharedSecret', CAST(N'2019-07-17T19:25:06.4207257' AS DateTime2), 20) +GO +SET IDENTITY_INSERT [dbo].[ClientSecrets] OFF +GO From c6e544dfb680953fd631aec8493abb1b499df05d Mon Sep 17 00:00:00 2001 From: Tigran TIKSN Torosyan Date: Wed, 17 Jul 2019 22:30:25 +0300 Subject: [PATCH 031/139] Update dependencies.yml --- docker-compose/dependencies.yml | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/docker-compose/dependencies.yml b/docker-compose/dependencies.yml index 1498344..833fc0f 100644 --- a/docker-compose/dependencies.yml +++ b/docker-compose/dependencies.yml @@ -9,3 +9,9 @@ services: - SA_PASSWORD=z0aiDwJ0205q37Nr ports: - "1433:1433" + networks: + - lionize + +networks: + lionize: + driver: bridge \ No newline at end of file From 6cf2bacdba96e5870fabe12a70318f13aa384745 Mon Sep 17 00:00:00 2001 From: Tigran TIKSN Torosyan Date: Wed, 17 Jul 2019 22:30:28 +0300 Subject: [PATCH 032/139] Update microservices.yml --- docker-compose/microservices.yml | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/docker-compose/microservices.yml b/docker-compose/microservices.yml index 4588a96..bb46be9 100644 --- a/docker-compose/microservices.yml +++ b/docker-compose/microservices.yml @@ -4,3 +4,9 @@ services: identity: image: tiksn/lionize-identity-management-service + networks: + - lionize + +networks: + lionize: + driver: bridge \ No newline at end of file From ed695c72a65d44d5a9d085472d22b569b4953482 Mon Sep 17 00:00:00 2001 From: Tigran TIKSN Torosyan Date: Sat, 20 Jul 2019 14:46:05 +0300 Subject: [PATCH 033/139] Update microservices.yml --- docker-compose/microservices.yml | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/docker-compose/microservices.yml b/docker-compose/microservices.yml index bb46be9..2a60966 100644 --- a/docker-compose/microservices.yml +++ b/docker-compose/microservices.yml @@ -7,6 +7,13 @@ services: networks: - lionize + web-ui: + image: ashotnazaryan45/lionize-web-ui:latest + ports: + - 3001:3000 + networks: + - lionize + networks: lionize: driver: bridge \ No newline at end of file From 18d6295b9d06e8380769cf14fbf32b1865de3aff Mon Sep 17 00:00:00 2001 From: Tigran TIKSN Torosyan Date: Sat, 20 Jul 2019 14:48:14 +0300 Subject: [PATCH 034/139] Update microservices.yml --- docker-compose/microservices.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docker-compose/microservices.yml b/docker-compose/microservices.yml index 2a60966..5787056 100644 --- a/docker-compose/microservices.yml +++ b/docker-compose/microservices.yml @@ -10,7 +10,7 @@ services: web-ui: image: ashotnazaryan45/lionize-web-ui:latest ports: - - 3001:3000 + - "3001:3000" networks: - lionize From ac780b4dca7e2a56d43c4b7efa05824277d3103d Mon Sep 17 00:00:00 2001 From: Tigran TIKSN Torosyan Date: Sun, 21 Jul 2019 11:49:48 +0300 Subject: [PATCH 035/139] Update microservices.yml --- docker-compose/microservices.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docker-compose/microservices.yml b/docker-compose/microservices.yml index 5787056..91fe675 100644 --- a/docker-compose/microservices.yml +++ b/docker-compose/microservices.yml @@ -10,7 +10,7 @@ services: web-ui: image: ashotnazaryan45/lionize-web-ui:latest ports: - - "3001:3000" + - "8080:80" networks: - lionize From 48d3263d1b42b7d643fd528b91020c24f6691678 Mon Sep 17 00:00:00 2001 From: Tigran TIKSN Torosyan Date: Wed, 24 Jul 2019 23:12:36 +0300 Subject: [PATCH 036/139] Update Setup.ps1 --- Setup.ps1 | 1 + 1 file changed, 1 insertion(+) diff --git a/Setup.ps1 b/Setup.ps1 index cd570bd..2d22cac 100644 --- a/Setup.ps1 +++ b/Setup.ps1 @@ -1,5 +1,6 @@ Install-Module -Name psake Install-Module -Name PsHosts +Install-Module -Name dbatools dotnet tool install --global smite-cli dotnet tool update --global smite-cli From 267d40ed6859fa72bf3d85aa8e85f299d4313799 Mon Sep 17 00:00:00 2001 From: Tigran TIKSN Torosyan Date: Wed, 24 Jul 2019 23:24:13 +0300 Subject: [PATCH 037/139] Update Data.sql --- Data.sql | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Data.sql b/Data.sql index 20b0565..4b3fb83 100644 --- a/Data.sql +++ b/Data.sql @@ -1,8 +1,8 @@ USE [IdentityManagementService] GO -INSERT [dbo].[AspNetUsers] ([Id], [UserName], [NormalizedUserName], [Email], [NormalizedEmail], [EmailConfirmed], [PasswordHash], [SecurityStamp], [ConcurrencyStamp], [PhoneNumber], [PhoneNumberConfirmed], [TwoFactorEnabled], [LockoutEnd], [LockoutEnabled], [AccessFailedCount]) VALUES (N'5e4fd556-0caa-487b-b9eb-d3c29725df55', N'alice', N'ALICE', NULL, NULL, 0, N'AQAAAAEAACcQAAAAEFiXrtBAUFBrX398NIJNIPvSWohm+Jo7rPE3Huj5zHmwMSpTNmeT3xAvRsf5aJ0a8A==', N'DOD6VZMCYZRP7MH7PQTDCAULSVIHJXAD', N'c10a73a3-cf12-41ca-a992-eed62896b03c', NULL, 0, 0, NULL, 1, 0) +IF NOT EXISTS ( SELECT * FROM [dbo].[AspNetUsers] WHERE [Id] = N'5e4fd556-0caa-487b-b9eb-d3c29725df55') INSERT [dbo].[AspNetUsers] ([Id], [UserName], [NormalizedUserName], [Email], [NormalizedEmail], [EmailConfirmed], [PasswordHash], [SecurityStamp], [ConcurrencyStamp], [PhoneNumber], [PhoneNumberConfirmed], [TwoFactorEnabled], [LockoutEnd], [LockoutEnabled], [AccessFailedCount]) VALUES (N'5e4fd556-0caa-487b-b9eb-d3c29725df55', N'alice', N'ALICE', NULL, NULL, 0, N'AQAAAAEAACcQAAAAEFiXrtBAUFBrX398NIJNIPvSWohm+Jo7rPE3Huj5zHmwMSpTNmeT3xAvRsf5aJ0a8A==', N'DOD6VZMCYZRP7MH7PQTDCAULSVIHJXAD', N'c10a73a3-cf12-41ca-a992-eed62896b03c', NULL, 0, 0, NULL, 1, 0) GO -INSERT [dbo].[AspNetUsers] ([Id], [UserName], [NormalizedUserName], [Email], [NormalizedEmail], [EmailConfirmed], [PasswordHash], [SecurityStamp], [ConcurrencyStamp], [PhoneNumber], [PhoneNumberConfirmed], [TwoFactorEnabled], [LockoutEnd], [LockoutEnabled], [AccessFailedCount]) VALUES (N'ff8a22f6-0991-42ba-9c05-d9ab987cd224', N'bob', N'BOB', NULL, NULL, 0, N'AQAAAAEAACcQAAAAEKqG/0MHNgjY5e280CXs3RhHDPZ5+vhjgEstXR/6ZUXcj6dWakXUI21g6Cy735uZUg==', N'JJNUYHF3P6DUNZET4N5HUXZEN4SMC2F7', N'a6eff5a6-1ff2-4806-b9fd-ca2c99205353', NULL, 0, 0, NULL, 1, 0) +IF NOT EXISTS ( SELECT * FROM [dbo].[AspNetUsers] WHERE [Id] = N'ff8a22f6-0991-42ba-9c05-d9ab987cd224') INSERT [dbo].[AspNetUsers] ([Id], [UserName], [NormalizedUserName], [Email], [NormalizedEmail], [EmailConfirmed], [PasswordHash], [SecurityStamp], [ConcurrencyStamp], [PhoneNumber], [PhoneNumberConfirmed], [TwoFactorEnabled], [LockoutEnd], [LockoutEnabled], [AccessFailedCount]) VALUES (N'ff8a22f6-0991-42ba-9c05-d9ab987cd224', N'bob', N'BOB', NULL, NULL, 0, N'AQAAAAEAACcQAAAAEKqG/0MHNgjY5e280CXs3RhHDPZ5+vhjgEstXR/6ZUXcj6dWakXUI21g6Cy735uZUg==', N'JJNUYHF3P6DUNZET4N5HUXZEN4SMC2F7', N'a6eff5a6-1ff2-4806-b9fd-ca2c99205353', NULL, 0, 0, NULL, 1, 0) GO SET IDENTITY_INSERT [dbo].[AspNetUserClaims] ON GO From 744c4e365bfba9c2be811f84c8e89a91903ebc15 Mon Sep 17 00:00:00 2001 From: Tigran TIKSN Torosyan Date: Wed, 24 Jul 2019 23:24:17 +0300 Subject: [PATCH 038/139] Update docker-compose-tasks.ps1 --- docker-compose-tasks.ps1 | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/docker-compose-tasks.ps1 b/docker-compose-tasks.ps1 index e8ccdc8..d6be634 100644 --- a/docker-compose-tasks.ps1 +++ b/docker-compose-tasks.ps1 @@ -6,6 +6,17 @@ Task Pull { Exec { docker-compose -f (Resolve-Path "docker-compose/dependencies.yml").Path -f (Resolve-Path "docker-compose/microservices.yml").Path pull } } -Task Setup -depends Pull { +Task Run -depends Pull { Exec { docker-compose -f (Resolve-Path "docker-compose/dependencies.yml").Path -f (Resolve-Path "docker-compose/microservices.yml").Path up -d } } + +Task ApplyScript { + $username = "sa" + $password = ConvertTo-SecureString -String "z0aiDwJ0205q37Nr" -AsPlainText -Force + $credential = New-Object System.Management.Automation.PSCredential($username,$password) + Invoke-DbaQuery -SqlInstance "localhost,1433" -SqlCredential $credential -Database "IdentityManagementService" -MessagesToOutput -File "Data.sql" -EnableException + + +} + +Task Setup -depends ApplyScript From d2584bfa544f13d2a162e9d5131585ca1d623344 Mon Sep 17 00:00:00 2001 From: Tigran TIKSN Torosyan Date: Wed, 24 Jul 2019 23:25:52 +0300 Subject: [PATCH 039/139] Update docker-compose-tasks.ps1 --- docker-compose-tasks.ps1 | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/docker-compose-tasks.ps1 b/docker-compose-tasks.ps1 index d6be634..4fdd9e7 100644 --- a/docker-compose-tasks.ps1 +++ b/docker-compose-tasks.ps1 @@ -10,13 +10,13 @@ Task Run -depends Pull { Exec { docker-compose -f (Resolve-Path "docker-compose/dependencies.yml").Path -f (Resolve-Path "docker-compose/microservices.yml").Path up -d } } -Task ApplyScript { +Task ApplyScript -depends Run { $username = "sa" $password = ConvertTo-SecureString -String "z0aiDwJ0205q37Nr" -AsPlainText -Force - $credential = New-Object System.Management.Automation.PSCredential($username,$password) + $credential = New-Object System.Management.Automation.PSCredential($username, $password) Invoke-DbaQuery -SqlInstance "localhost,1433" -SqlCredential $credential -Database "IdentityManagementService" -MessagesToOutput -File "Data.sql" -EnableException } -Task Setup -depends ApplyScript +Task Setup -depends ApplyScript, Run From 636d1d59b2a53dd29b2c5597f7565fa611fa7490 Mon Sep 17 00:00:00 2001 From: Tigran TIKSN Torosyan Date: Thu, 25 Jul 2019 17:03:04 +0300 Subject: [PATCH 040/139] clients updated --- ClientSecrets.txt | 4 ++-- Data.sql | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/ClientSecrets.txt b/ClientSecrets.txt index 7f43744..c09ccbb 100644 --- a/ClientSecrets.txt +++ b/ClientSecrets.txt @@ -1,5 +1,5 @@ -Client_0 HR7FsThALW0k6MD1Bo+PLOaJss2Bz7RiTsWIWlsIs+veTtrVf6HmBoY13NRORcWMhvRVr1G1m01pY2NyuNMSHDTUF7e1ua1FoqtGTPPgEwgA+9NmsgSaKLOMbBw+c06zIsCgei4N18xHEAylbk5aiVBacr3/rGkvOu4EKE2RBi5dkykzP5ja8yQGH6L49LlkMuLL5AGQs3ZWcEA/CK5/tgndSNslJ0m3f3+Y+IzGN0U0oPVqxSItzOCz3M9Ymup1h2mZGqzePwuYFGSC97rpkDn7Cmi5FPDmsHv6cUt6XuWVI3EjLR2YVmDq0rC+q9QlykuWXY+BvHJ4smkx487AHQ== -Client_1 tX/t1EnFYxtitAfOQkAoBabVpv/kAVUTZ/+rerNmcpIqtPo+vQDbBOh6+tt57S83imSLDifAObQq2W1KGuho+0J1pI5F6Uel+qEWagZ5mXnPc+9P22RraXtGFOSSkOr/Ev+YBEih8qAc5ROFqc6tsD/zeqb4GCDeCTsT/9RjE2m2FlgH4ZQxLoFPM/VQ5r+smGSknxZEB/neuvsNjfPLuNKqzpJ2ps6qwkwlqeUqjiN7ZmZwv3RTcg9eKCeZJKCNg3ojpRgsNfKV+dzJHl0UtCzYkSeMW/leV1uDGH2nEZ6rlyZqBugKTzF028aXiVOySXT7wZN5ASiAxU68qR117Q== +UserManagementClient HR7FsThALW0k6MD1Bo+PLOaJss2Bz7RiTsWIWlsIs+veTtrVf6HmBoY13NRORcWMhvRVr1G1m01pY2NyuNMSHDTUF7e1ua1FoqtGTPPgEwgA+9NmsgSaKLOMbBw+c06zIsCgei4N18xHEAylbk5aiVBacr3/rGkvOu4EKE2RBi5dkykzP5ja8yQGH6L49LlkMuLL5AGQs3ZWcEA/CK5/tgndSNslJ0m3f3+Y+IzGN0U0oPVqxSItzOCz3M9Ymup1h2mZGqzePwuYFGSC97rpkDn7Cmi5FPDmsHv6cUt6XuWVI3EjLR2YVmDq0rC+q9QlykuWXY+BvHJ4smkx487AHQ== +TaskManagementServiceClient tX/t1EnFYxtitAfOQkAoBabVpv/kAVUTZ/+rerNmcpIqtPo+vQDbBOh6+tt57S83imSLDifAObQq2W1KGuho+0J1pI5F6Uel+qEWagZ5mXnPc+9P22RraXtGFOSSkOr/Ev+YBEih8qAc5ROFqc6tsD/zeqb4GCDeCTsT/9RjE2m2FlgH4ZQxLoFPM/VQ5r+smGSknxZEB/neuvsNjfPLuNKqzpJ2ps6qwkwlqeUqjiN7ZmZwv3RTcg9eKCeZJKCNg3ojpRgsNfKV+dzJHl0UtCzYkSeMW/leV1uDGH2nEZ6rlyZqBugKTzF028aXiVOySXT7wZN5ASiAxU68qR117Q== Client_2 5z4ehzeprUPNQvYYfzPHzQjRzgisUAoxlv7qQZlOpRP+7d5Yasx7oMa39FGD6KhN/oC02E5sQZcz7PE4v2yqfpziGZFVbmM7Vi5C9Vu5rq1VnEMYms3FkaxGJH3bQuBaDHW0oc8W948deIIgKkw7ej5E4iIokeTOHIjkD0nlYBNN6OjmBA3eP6Sz+iJLpWdgCqo/ll++MXqR5oRHMehGOBdu0kJjVXUxZqN9dJfBg3cghASepcm0j7ZtVR6Jlw28bcEK3dIl/LU1DjC8QLzjz2MMJq3kp5NNukOL9gBWqM+WwQfVt6Wk+4dPaZeZ9076iYW7fHBf18YuvSKPmQa03g== Client_3 ZWElf7UOGL1oKyaUPfu0wvSRbHqbK1436UCm+oMUYYCaijE30s9Ee23+FEU4Q4gzCGCbCJk6QzoD7pV0Zx46U8mm+bPJffAlTPENnBcZ/qa4cvEieVnnYEb3M+M5zxNPxMB7kknUaYpwdrunLKYi6vDvvPQsF9pwvpls0kkM633evthWnWxc4wlmsQKePzOf1EnzSRMeIqzmCtOvZ5ZBZIs+yW7OzEyDktnrxWXX0n9lzf0AGaFpv5srb5KYrHtyJU13X3XF0Qj9b7c5M11GDjhUSZqZQUrp1ArSoly56+VeeJ8YYHIJoPv1AqnqMIs+5WFaRGLg2eQCjYtq8i+rRA== Client_4 hNHbur0ursVKqZ+jPqH/o36UvftepoJ+n7oV0uefrsxJvSUZVdGAtrOU+rlANaZhjufsXXKw5d1OXRoCGdveq/vTWYB75U6tEwZIyqzJPWkUs0P/slBamNhIy/i2fZzXtU++bdsl5qmYP0lraBswhB+x7mWX3/iqeMGoMhpW9pZqcBRdCs+N782aZnMG7i+9F0bYBY82P9ZWE/QafbOOQkizAfgG03pQI/+Y/XiFpIqR6xvTffEGMzE+Bvbac3EaCyQqUu03tkTMiOGQnkFe0W9qiZKYu8RXrc7Hx8yDdbCNfvJTWlGcWjTWB/UPdpXv4DWGcOrfgVBf0qUfcO93SQ== diff --git a/Data.sql b/Data.sql index 4b3fb83..fe917f9 100644 --- a/Data.sql +++ b/Data.sql @@ -40,9 +40,9 @@ SET IDENTITY_INSERT [dbo].[AspNetUserClaims] OFF GO SET IDENTITY_INSERT [dbo].[Clients] ON GO -INSERT [dbo].[Clients] ([Id], [Enabled], [ClientId], [ProtocolType], [RequireClientSecret], [ClientName], [Description], [ClientUri], [LogoUri], [RequireConsent], [AllowRememberConsent], [AlwaysIncludeUserClaimsInIdToken], [RequirePkce], [AllowPlainTextPkce], [AllowAccessTokensViaBrowser], [FrontChannelLogoutUri], [FrontChannelLogoutSessionRequired], [BackChannelLogoutUri], [BackChannelLogoutSessionRequired], [AllowOfflineAccess], [IdentityTokenLifetime], [AccessTokenLifetime], [AuthorizationCodeLifetime], [ConsentLifetime], [AbsoluteRefreshTokenLifetime], [SlidingRefreshTokenLifetime], [RefreshTokenUsage], [UpdateAccessTokenClaimsOnRefresh], [RefreshTokenExpiration], [AccessTokenType], [EnableLocalLogin], [IncludeJwtId], [AlwaysSendClientClaims], [ClientClaimsPrefix], [PairWiseSubjectSalt], [Created], [Updated], [LastAccessed], [UserSsoLifetime], [UserCodeType], [DeviceCodeLifetime], [NonEditable]) VALUES (1, 1, N'Client_0', N'oidc', 1, N'Client 0 Client', NULL, N'http://identityserver.io', NULL, 1, 1, 0, 0, 0, 0, NULL, 1, NULL, 1, 0, 300, 3600, 300, NULL, 2592000, 1296000, 1, 0, 1, 0, 1, 0, 0, N'client_', NULL, CAST(N'2019-07-17T19:25:06.3074530' AS DateTime2), NULL, NULL, NULL, NULL, 300, 0) +INSERT [dbo].[Clients] ([Id], [Enabled], [ClientId], [ProtocolType], [RequireClientSecret], [ClientName], [Description], [ClientUri], [LogoUri], [RequireConsent], [AllowRememberConsent], [AlwaysIncludeUserClaimsInIdToken], [RequirePkce], [AllowPlainTextPkce], [AllowAccessTokensViaBrowser], [FrontChannelLogoutUri], [FrontChannelLogoutSessionRequired], [BackChannelLogoutUri], [BackChannelLogoutSessionRequired], [AllowOfflineAccess], [IdentityTokenLifetime], [AccessTokenLifetime], [AuthorizationCodeLifetime], [ConsentLifetime], [AbsoluteRefreshTokenLifetime], [SlidingRefreshTokenLifetime], [RefreshTokenUsage], [UpdateAccessTokenClaimsOnRefresh], [RefreshTokenExpiration], [AccessTokenType], [EnableLocalLogin], [IncludeJwtId], [AlwaysSendClientClaims], [ClientClaimsPrefix], [PairWiseSubjectSalt], [Created], [Updated], [LastAccessed], [UserSsoLifetime], [UserCodeType], [DeviceCodeLifetime], [NonEditable]) VALUES (1, 1, N'UserManagementClient', N'oidc', 1, N'Client 0 Client', NULL, N'http://identityserver.io', NULL, 1, 1, 0, 0, 0, 0, NULL, 1, NULL, 1, 0, 300, 3600, 300, NULL, 2592000, 1296000, 1, 0, 1, 0, 1, 0, 0, N'client_', NULL, CAST(N'2019-07-17T19:25:06.3074530' AS DateTime2), NULL, NULL, NULL, NULL, 300, 0) GO -INSERT [dbo].[Clients] ([Id], [Enabled], [ClientId], [ProtocolType], [RequireClientSecret], [ClientName], [Description], [ClientUri], [LogoUri], [RequireConsent], [AllowRememberConsent], [AlwaysIncludeUserClaimsInIdToken], [RequirePkce], [AllowPlainTextPkce], [AllowAccessTokensViaBrowser], [FrontChannelLogoutUri], [FrontChannelLogoutSessionRequired], [BackChannelLogoutUri], [BackChannelLogoutSessionRequired], [AllowOfflineAccess], [IdentityTokenLifetime], [AccessTokenLifetime], [AuthorizationCodeLifetime], [ConsentLifetime], [AbsoluteRefreshTokenLifetime], [SlidingRefreshTokenLifetime], [RefreshTokenUsage], [UpdateAccessTokenClaimsOnRefresh], [RefreshTokenExpiration], [AccessTokenType], [EnableLocalLogin], [IncludeJwtId], [AlwaysSendClientClaims], [ClientClaimsPrefix], [PairWiseSubjectSalt], [Created], [Updated], [LastAccessed], [UserSsoLifetime], [UserCodeType], [DeviceCodeLifetime], [NonEditable]) VALUES (2, 1, N'Client_17', N'oidc', 1, N'Client 17 Client', NULL, N'http://identityserver.io', NULL, 1, 1, 0, 0, 0, 0, NULL, 1, NULL, 1, 0, 300, 3600, 300, NULL, 2592000, 1296000, 1, 0, 1, 0, 1, 0, 0, N'client_', NULL, CAST(N'2019-07-17T19:25:06.4198847' AS DateTime2), NULL, NULL, NULL, NULL, 300, 0) +INSERT [dbo].[Clients] ([Id], [Enabled], [ClientId], [ProtocolType], [RequireClientSecret], [ClientName], [Description], [ClientUri], [LogoUri], [RequireConsent], [AllowRememberConsent], [AlwaysIncludeUserClaimsInIdToken], [RequirePkce], [AllowPlainTextPkce], [AllowAccessTokensViaBrowser], [FrontChannelLogoutUri], [FrontChannelLogoutSessionRequired], [BackChannelLogoutUri], [BackChannelLogoutSessionRequired], [AllowOfflineAccess], [IdentityTokenLifetime], [AccessTokenLifetime], [AuthorizationCodeLifetime], [ConsentLifetime], [AbsoluteRefreshTokenLifetime], [SlidingRefreshTokenLifetime], [RefreshTokenUsage], [UpdateAccessTokenClaimsOnRefresh], [RefreshTokenExpiration], [AccessTokenType], [EnableLocalLogin], [IncludeJwtId], [AlwaysSendClientClaims], [ClientClaimsPrefix], [PairWiseSubjectSalt], [Created], [Updated], [LastAccessed], [UserSsoLifetime], [UserCodeType], [DeviceCodeLifetime], [NonEditable]) VALUES (2, 1, N'TaskManagementServiceClient', N'oidc', 1, N'Client 17 Client', NULL, N'http://identityserver.io', NULL, 1, 1, 0, 0, 0, 0, NULL, 1, NULL, 1, 0, 300, 3600, 300, NULL, 2592000, 1296000, 1, 0, 1, 0, 1, 0, 0, N'client_', NULL, CAST(N'2019-07-17T19:25:06.4198847' AS DateTime2), NULL, NULL, NULL, NULL, 300, 0) GO INSERT [dbo].[Clients] ([Id], [Enabled], [ClientId], [ProtocolType], [RequireClientSecret], [ClientName], [Description], [ClientUri], [LogoUri], [RequireConsent], [AllowRememberConsent], [AlwaysIncludeUserClaimsInIdToken], [RequirePkce], [AllowPlainTextPkce], [AllowAccessTokensViaBrowser], [FrontChannelLogoutUri], [FrontChannelLogoutSessionRequired], [BackChannelLogoutUri], [BackChannelLogoutSessionRequired], [AllowOfflineAccess], [IdentityTokenLifetime], [AccessTokenLifetime], [AuthorizationCodeLifetime], [ConsentLifetime], [AbsoluteRefreshTokenLifetime], [SlidingRefreshTokenLifetime], [RefreshTokenUsage], [UpdateAccessTokenClaimsOnRefresh], [RefreshTokenExpiration], [AccessTokenType], [EnableLocalLogin], [IncludeJwtId], [AlwaysSendClientClaims], [ClientClaimsPrefix], [PairWiseSubjectSalt], [Created], [Updated], [LastAccessed], [UserSsoLifetime], [UserCodeType], [DeviceCodeLifetime], [NonEditable]) VALUES (3, 1, N'Client_16', N'oidc', 1, N'Client 16 Client', NULL, N'http://identityserver.io', NULL, 1, 1, 0, 0, 0, 0, NULL, 1, NULL, 1, 0, 300, 3600, 300, NULL, 2592000, 1296000, 1, 0, 1, 0, 1, 0, 0, N'client_', NULL, CAST(N'2019-07-17T19:25:06.4193397' AS DateTime2), NULL, NULL, NULL, NULL, 300, 0) GO From ed1a4ab875c7f83efab88793a06b68c6493a1b30 Mon Sep 17 00:00:00 2001 From: Tigran TIKSN Torosyan Date: Sat, 10 Aug 2019 14:10:48 +0300 Subject: [PATCH 041/139] Update microservices.yml --- docker-compose/microservices.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/docker-compose/microservices.yml b/docker-compose/microservices.yml index 91fe675..31ded43 100644 --- a/docker-compose/microservices.yml +++ b/docker-compose/microservices.yml @@ -4,6 +4,8 @@ services: identity: image: tiksn/lionize-identity-management-service + ports: + - "8081:80" networks: - lionize From 4aa2fff098dbbc7ae24d3d44b3f6f127239caf20 Mon Sep 17 00:00:00 2001 From: Tigran TIKSN Torosyan Date: Sat, 10 Aug 2019 14:14:13 +0300 Subject: [PATCH 042/139] Update dependencies.yml --- docker-compose/dependencies.yml | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/docker-compose/dependencies.yml b/docker-compose/dependencies.yml index 833fc0f..a992552 100644 --- a/docker-compose/dependencies.yml +++ b/docker-compose/dependencies.yml @@ -12,6 +12,15 @@ services: networks: - lionize + rabbitmq: + image: rabbitmq:management-alpine + container_name: rabbitmq + ports: + - 5672:5672 + - 15672:15672 + networks: + - lionize + networks: lionize: driver: bridge \ No newline at end of file From fcad2fc602924123eae175ab27f2b6f1ab78fe93 Mon Sep 17 00:00:00 2001 From: Tigran TIKSN Torosyan Date: Sat, 10 Aug 2019 14:20:00 +0300 Subject: [PATCH 043/139] Update dependencies.yml --- docker-compose/dependencies.yml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/docker-compose/dependencies.yml b/docker-compose/dependencies.yml index a992552..1a6c83e 100644 --- a/docker-compose/dependencies.yml +++ b/docker-compose/dependencies.yml @@ -15,6 +15,9 @@ services: rabbitmq: image: rabbitmq:management-alpine container_name: rabbitmq + environment: + RABBITMQ_DEFAULT_USER: rabbit + RABBITMQ_DEFAULT_PASS: EvtNt7PKZqNNT06T ports: - 5672:5672 - 15672:15672 From 63c66c420344a41e6682c3ab604b9f8ebf40e592 Mon Sep 17 00:00:00 2001 From: Tigran TIKSN Torosyan Date: Sat, 10 Aug 2019 16:37:59 +0300 Subject: [PATCH 044/139] Update Data.sql --- Data.sql | 34 ++-------------------------------- 1 file changed, 2 insertions(+), 32 deletions(-) diff --git a/Data.sql b/Data.sql index fe917f9..19fe28f 100644 --- a/Data.sql +++ b/Data.sql @@ -6,36 +6,6 @@ IF NOT EXISTS ( SELECT * FROM [dbo].[AspNetUsers] WHERE [Id] = N'ff8a22f6-0991-4 GO SET IDENTITY_INSERT [dbo].[AspNetUserClaims] ON GO -INSERT [dbo].[AspNetUserClaims] ([Id], [UserId], [ClaimType], [ClaimValue]) VALUES (1, N'5e4fd556-0caa-487b-b9eb-d3c29725df55', N'name', N'Alice Smith') -GO -INSERT [dbo].[AspNetUserClaims] ([Id], [UserId], [ClaimType], [ClaimValue]) VALUES (2, N'5e4fd556-0caa-487b-b9eb-d3c29725df55', N'given_name', N'Alice') -GO -INSERT [dbo].[AspNetUserClaims] ([Id], [UserId], [ClaimType], [ClaimValue]) VALUES (3, N'5e4fd556-0caa-487b-b9eb-d3c29725df55', N'family_name', N'Smith') -GO -INSERT [dbo].[AspNetUserClaims] ([Id], [UserId], [ClaimType], [ClaimValue]) VALUES (4, N'5e4fd556-0caa-487b-b9eb-d3c29725df55', N'email', N'AliceSmith@email.com') -GO -INSERT [dbo].[AspNetUserClaims] ([Id], [UserId], [ClaimType], [ClaimValue]) VALUES (5, N'5e4fd556-0caa-487b-b9eb-d3c29725df55', N'email_verified', N'true') -GO -INSERT [dbo].[AspNetUserClaims] ([Id], [UserId], [ClaimType], [ClaimValue]) VALUES (6, N'5e4fd556-0caa-487b-b9eb-d3c29725df55', N'website', N'http://alice.com') -GO -INSERT [dbo].[AspNetUserClaims] ([Id], [UserId], [ClaimType], [ClaimValue]) VALUES (7, N'5e4fd556-0caa-487b-b9eb-d3c29725df55', N'address', N'{ ''street_address'': ''One Hacker Way'', ''locality'': ''Heidelberg'', ''postal_code'': 69118, ''country'': ''Germany'' }') -GO -INSERT [dbo].[AspNetUserClaims] ([Id], [UserId], [ClaimType], [ClaimValue]) VALUES (8, N'ff8a22f6-0991-42ba-9c05-d9ab987cd224', N'name', N'Bob Smith') -GO -INSERT [dbo].[AspNetUserClaims] ([Id], [UserId], [ClaimType], [ClaimValue]) VALUES (9, N'ff8a22f6-0991-42ba-9c05-d9ab987cd224', N'given_name', N'Bob') -GO -INSERT [dbo].[AspNetUserClaims] ([Id], [UserId], [ClaimType], [ClaimValue]) VALUES (10, N'ff8a22f6-0991-42ba-9c05-d9ab987cd224', N'family_name', N'Smith') -GO -INSERT [dbo].[AspNetUserClaims] ([Id], [UserId], [ClaimType], [ClaimValue]) VALUES (11, N'ff8a22f6-0991-42ba-9c05-d9ab987cd224', N'email', N'BobSmith@email.com') -GO -INSERT [dbo].[AspNetUserClaims] ([Id], [UserId], [ClaimType], [ClaimValue]) VALUES (12, N'ff8a22f6-0991-42ba-9c05-d9ab987cd224', N'email_verified', N'true') -GO -INSERT [dbo].[AspNetUserClaims] ([Id], [UserId], [ClaimType], [ClaimValue]) VALUES (13, N'ff8a22f6-0991-42ba-9c05-d9ab987cd224', N'website', N'http://bob.com') -GO -INSERT [dbo].[AspNetUserClaims] ([Id], [UserId], [ClaimType], [ClaimValue]) VALUES (14, N'ff8a22f6-0991-42ba-9c05-d9ab987cd224', N'address', N'{ ''street_address'': ''One Hacker Way'', ''locality'': ''Heidelberg'', ''postal_code'': 69118, ''country'': ''Germany'' }') -GO -INSERT [dbo].[AspNetUserClaims] ([Id], [UserId], [ClaimType], [ClaimValue]) VALUES (15, N'ff8a22f6-0991-42ba-9c05-d9ab987cd224', N'location', N'somewhere') -GO SET IDENTITY_INSERT [dbo].[AspNetUserClaims] OFF GO SET IDENTITY_INSERT [dbo].[Clients] ON @@ -84,7 +54,7 @@ SET IDENTITY_INSERT [dbo].[Clients] OFF GO SET IDENTITY_INSERT [dbo].[ClientGrantTypes] ON GO -INSERT [dbo].[ClientGrantTypes] ([Id], [GrantType], [ClientId]) VALUES (1, N'client_credentials', 1) +INSERT [dbo].[ClientGrantTypes] ([Id], [GrantType], [ClientId]) VALUES (1, N'password', 1) GO INSERT [dbo].[ClientGrantTypes] ([Id], [GrantType], [ClientId]) VALUES (2, N'client_credentials', 9) GO @@ -340,7 +310,7 @@ INSERT [dbo].[ClientSecrets] ([Id], [Description], [Value], [Expiration], [Type] GO INSERT [dbo].[ClientSecrets] ([Id], [Description], [Value], [Expiration], [Type], [Created], [ClientId]) VALUES (4, N'Client 15 description', N'ghQ3BhumhFuVh6wSn7eD4yFhSC3hBbtzvonhnekw6v5xqn7JKkmstUnr/+5fZBdPoXnRiAhckH1Yw0eRxOdyZJytoPQ5urnXtZPk9gbNFFpykvtvX2H2FRkAcGYCGvBieJpRscMiFue/+dN1eJp2i6/tHzLrAwQ7t4vbOElT1ZqigX1re2KXT3wTr2aOgJ1/iuS2FPu+dnWWFvk3R96dbCM40vYdCw9NVs+12FOerTfuW65lncGf5AoH1WVpXweedUNCVa6mYn/VaL4rCJ4i+GnCSewvOM5ime3rFTWq5PbIF2IPW1eJR/kvjzQCc9xs5N38phYbbjx04LzAukxJKw==', CAST(N'2020-07-17T22:25:06.4170704' AS DateTime2), N'SharedSecret', CAST(N'2019-07-17T19:25:06.4172196' AS DateTime2), 4) GO -INSERT [dbo].[ClientSecrets] ([Id], [Description], [Value], [Expiration], [Type], [Created], [ClientId]) VALUES (5, N'Client 0 description', N'HR7FsThALW0k6MD1Bo+PLOaJss2Bz7RiTsWIWlsIs+veTtrVf6HmBoY13NRORcWMhvRVr1G1m01pY2NyuNMSHDTUF7e1ua1FoqtGTPPgEwgA+9NmsgSaKLOMbBw+c06zIsCgei4N18xHEAylbk5aiVBacr3/rGkvOu4EKE2RBi5dkykzP5ja8yQGH6L49LlkMuLL5AGQs3ZWcEA/CK5/tgndSNslJ0m3f3+Y+IzGN0U0oPVqxSItzOCz3M9Ymup1h2mZGqzePwuYFGSC97rpkDn7Cmi5FPDmsHv6cUt6XuWVI3EjLR2YVmDq0rC+q9QlykuWXY+BvHJ4smkx487AHQ==', CAST(N'2020-07-17T22:25:06.0026121' AS DateTime2), N'SharedSecret', CAST(N'2019-07-17T19:25:06.3078730' AS DateTime2), 1) +INSERT [dbo].[ClientSecrets] ([Id], [Description], [Value], [Expiration], [Type], [Created], [ClientId]) VALUES (5, N'User Management Client', N'HR7FsThALW0k6MD1Bo+PLOaJss2Bz7RiTsWIWlsIs+veTtrVf6HmBoY13NRORcWMhvRVr1G1m01pY2NyuNMSHDTUF7e1ua1FoqtGTPPgEwgA+9NmsgSaKLOMbBw+c06zIsCgei4N18xHEAylbk5aiVBacr3/rGkvOu4EKE2RBi5dkykzP5ja8yQGH6L49LlkMuLL5AGQs3ZWcEA/CK5/tgndSNslJ0m3f3+Y+IzGN0U0oPVqxSItzOCz3M9Ymup1h2mZGqzePwuYFGSC97rpkDn7Cmi5FPDmsHv6cUt6XuWVI3EjLR2YVmDq0rC+q9QlykuWXY+BvHJ4smkx487AHQ==', CAST(N'2020-07-17T22:25:06.0026121' AS DateTime2), N'SharedSecret', CAST(N'2019-07-17T19:25:06.3078730' AS DateTime2), 1) GO INSERT [dbo].[ClientSecrets] ([Id], [Description], [Value], [Expiration], [Type], [Created], [ClientId]) VALUES (6, N'Client 1 description', N'tX/t1EnFYxtitAfOQkAoBabVpv/kAVUTZ/+rerNmcpIqtPo+vQDbBOh6+tt57S83imSLDifAObQq2W1KGuho+0J1pI5F6Uel+qEWagZ5mXnPc+9P22RraXtGFOSSkOr/Ev+YBEih8qAc5ROFqc6tsD/zeqb4GCDeCTsT/9RjE2m2FlgH4ZQxLoFPM/VQ5r+smGSknxZEB/neuvsNjfPLuNKqzpJ2ps6qwkwlqeUqjiN7ZmZwv3RTcg9eKCeZJKCNg3ojpRgsNfKV+dzJHl0UtCzYkSeMW/leV1uDGH2nEZ6rlyZqBugKTzF028aXiVOySXT7wZN5ASiAxU68qR117Q==', CAST(N'2020-07-17T22:25:06.4022280' AS DateTime2), N'SharedSecret', CAST(N'2019-07-17T19:25:06.4034719' AS DateTime2), 18) GO From 07e78280ba5048491537a009aa52797686e3187b Mon Sep 17 00:00:00 2001 From: Tigran TIKSN Torosyan Date: Sat, 10 Aug 2019 16:46:34 +0300 Subject: [PATCH 045/139] Update microservices.yml --- docker-compose/microservices.yml | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/docker-compose/microservices.yml b/docker-compose/microservices.yml index 31ded43..6ede7de 100644 --- a/docker-compose/microservices.yml +++ b/docker-compose/microservices.yml @@ -9,6 +9,13 @@ services: networks: - lionize + tasks: + image: tiksn/lionize-task-management-service + ports: + - "8083:80" + networks: + - lionize + web-ui: image: ashotnazaryan45/lionize-web-ui:latest ports: From 977818153367da13d8b07824c0712061e9d76818 Mon Sep 17 00:00:00 2001 From: Tigran TIKSN Torosyan Date: Sun, 11 Aug 2019 13:37:49 +0300 Subject: [PATCH 046/139] Create variables.env --- docker-compose/variables.env | 2 ++ 1 file changed, 2 insertions(+) create mode 100644 docker-compose/variables.env diff --git a/docker-compose/variables.env b/docker-compose/variables.env new file mode 100644 index 0000000..ac82c37 --- /dev/null +++ b/docker-compose/variables.env @@ -0,0 +1,2 @@ +Cors__Origins__0=http://localhost:4200 +Cors__Origins__1=http://localhost:8080 \ No newline at end of file From c58a27f2355d6c9616c1c3f54fc41897878a29a3 Mon Sep 17 00:00:00 2001 From: Tigran TIKSN Torosyan Date: Sun, 11 Aug 2019 13:37:53 +0300 Subject: [PATCH 047/139] Update microservices.yml --- docker-compose/microservices.yml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/docker-compose/microservices.yml b/docker-compose/microservices.yml index 6ede7de..25948c0 100644 --- a/docker-compose/microservices.yml +++ b/docker-compose/microservices.yml @@ -13,6 +13,8 @@ services: image: tiksn/lionize-task-management-service ports: - "8083:80" + env_file: + - variables.env networks: - lionize @@ -20,6 +22,8 @@ services: image: ashotnazaryan45/lionize-web-ui:latest ports: - "8080:80" + env_file: + - variables.env networks: - lionize From 9d150eeb484973c3e08134efbb0de0a778b668d2 Mon Sep 17 00:00:00 2001 From: Tigran TIKSN Torosyan Date: Sun, 11 Aug 2019 16:00:00 +0300 Subject: [PATCH 048/139] Update Setup.ps1 --- Setup.ps1 | 1 + 1 file changed, 1 insertion(+) diff --git a/Setup.ps1 b/Setup.ps1 index 2d22cac..571ac46 100644 --- a/Setup.ps1 +++ b/Setup.ps1 @@ -1,6 +1,7 @@ Install-Module -Name psake Install-Module -Name PsHosts Install-Module -Name dbatools +Install-Module -Name SqlServer dotnet tool install --global smite-cli dotnet tool update --global smite-cli From 3db9ecc9845a7fcb863c0122ba3013d543e5d99f Mon Sep 17 00:00:00 2001 From: Tigran TIKSN Torosyan Date: Sun, 11 Aug 2019 16:00:12 +0300 Subject: [PATCH 049/139] Update Setup.ps1 --- Setup.ps1 | 1 - 1 file changed, 1 deletion(-) diff --git a/Setup.ps1 b/Setup.ps1 index 571ac46..4286fff 100644 --- a/Setup.ps1 +++ b/Setup.ps1 @@ -1,6 +1,5 @@ Install-Module -Name psake Install-Module -Name PsHosts -Install-Module -Name dbatools Install-Module -Name SqlServer dotnet tool install --global smite-cli From f401de618de6ac46a6f3d661f2387c6b5066b69c Mon Sep 17 00:00:00 2001 From: Tigran TIKSN Torosyan Date: Sun, 11 Aug 2019 16:00:21 +0300 Subject: [PATCH 050/139] Update docker-compose-tasks.ps1 --- docker-compose-tasks.ps1 | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/docker-compose-tasks.ps1 b/docker-compose-tasks.ps1 index 4fdd9e7..d40130e 100644 --- a/docker-compose-tasks.ps1 +++ b/docker-compose-tasks.ps1 @@ -11,12 +11,12 @@ Task Run -depends Pull { } Task ApplyScript -depends Run { + + $serverInstance = "localhost,1433" $username = "sa" $password = ConvertTo-SecureString -String "z0aiDwJ0205q37Nr" -AsPlainText -Force $credential = New-Object System.Management.Automation.PSCredential($username, $password) - Invoke-DbaQuery -SqlInstance "localhost,1433" -SqlCredential $credential -Database "IdentityManagementService" -MessagesToOutput -File "Data.sql" -EnableException - - + Invoke-SqlCmd -ServerInstance $serverInstance -Credential $credential -Database 'IdentityManagementService' -InputFile 'Data.sql' -OutputSqlErrors $true } Task Setup -depends ApplyScript, Run From ac26168f43ae48042f948977993ca3b66e45dd0a Mon Sep 17 00:00:00 2001 From: Tigran TIKSN Torosyan Date: Sun, 11 Aug 2019 16:02:49 +0300 Subject: [PATCH 051/139] Update Data.sql --- Data.sql | 86 ++++++++++++++++++++++++++++---------------------------- 1 file changed, 43 insertions(+), 43 deletions(-) diff --git a/Data.sql b/Data.sql index 19fe28f..d336222 100644 --- a/Data.sql +++ b/Data.sql @@ -4,55 +4,55 @@ IF NOT EXISTS ( SELECT * FROM [dbo].[AspNetUsers] WHERE [Id] = N'5e4fd556-0caa-4 GO IF NOT EXISTS ( SELECT * FROM [dbo].[AspNetUsers] WHERE [Id] = N'ff8a22f6-0991-42ba-9c05-d9ab987cd224') INSERT [dbo].[AspNetUsers] ([Id], [UserName], [NormalizedUserName], [Email], [NormalizedEmail], [EmailConfirmed], [PasswordHash], [SecurityStamp], [ConcurrencyStamp], [PhoneNumber], [PhoneNumberConfirmed], [TwoFactorEnabled], [LockoutEnd], [LockoutEnabled], [AccessFailedCount]) VALUES (N'ff8a22f6-0991-42ba-9c05-d9ab987cd224', N'bob', N'BOB', NULL, NULL, 0, N'AQAAAAEAACcQAAAAEKqG/0MHNgjY5e280CXs3RhHDPZ5+vhjgEstXR/6ZUXcj6dWakXUI21g6Cy735uZUg==', N'JJNUYHF3P6DUNZET4N5HUXZEN4SMC2F7', N'a6eff5a6-1ff2-4806-b9fd-ca2c99205353', NULL, 0, 0, NULL, 1, 0) GO -SET IDENTITY_INSERT [dbo].[AspNetUserClaims] ON +SET IDENTITY_INSERT [dbo].[AspNetUserClaims] ON GO SET IDENTITY_INSERT [dbo].[AspNetUserClaims] OFF GO -SET IDENTITY_INSERT [dbo].[Clients] ON +SET IDENTITY_INSERT [dbo].[Clients] ON GO INSERT [dbo].[Clients] ([Id], [Enabled], [ClientId], [ProtocolType], [RequireClientSecret], [ClientName], [Description], [ClientUri], [LogoUri], [RequireConsent], [AllowRememberConsent], [AlwaysIncludeUserClaimsInIdToken], [RequirePkce], [AllowPlainTextPkce], [AllowAccessTokensViaBrowser], [FrontChannelLogoutUri], [FrontChannelLogoutSessionRequired], [BackChannelLogoutUri], [BackChannelLogoutSessionRequired], [AllowOfflineAccess], [IdentityTokenLifetime], [AccessTokenLifetime], [AuthorizationCodeLifetime], [ConsentLifetime], [AbsoluteRefreshTokenLifetime], [SlidingRefreshTokenLifetime], [RefreshTokenUsage], [UpdateAccessTokenClaimsOnRefresh], [RefreshTokenExpiration], [AccessTokenType], [EnableLocalLogin], [IncludeJwtId], [AlwaysSendClientClaims], [ClientClaimsPrefix], [PairWiseSubjectSalt], [Created], [Updated], [LastAccessed], [UserSsoLifetime], [UserCodeType], [DeviceCodeLifetime], [NonEditable]) VALUES (1, 1, N'UserManagementClient', N'oidc', 1, N'Client 0 Client', NULL, N'http://identityserver.io', NULL, 1, 1, 0, 0, 0, 0, NULL, 1, NULL, 1, 0, 300, 3600, 300, NULL, 2592000, 1296000, 1, 0, 1, 0, 1, 0, 0, N'client_', NULL, CAST(N'2019-07-17T19:25:06.3074530' AS DateTime2), NULL, NULL, NULL, NULL, 300, 0) GO -INSERT [dbo].[Clients] ([Id], [Enabled], [ClientId], [ProtocolType], [RequireClientSecret], [ClientName], [Description], [ClientUri], [LogoUri], [RequireConsent], [AllowRememberConsent], [AlwaysIncludeUserClaimsInIdToken], [RequirePkce], [AllowPlainTextPkce], [AllowAccessTokensViaBrowser], [FrontChannelLogoutUri], [FrontChannelLogoutSessionRequired], [BackChannelLogoutUri], [BackChannelLogoutSessionRequired], [AllowOfflineAccess], [IdentityTokenLifetime], [AccessTokenLifetime], [AuthorizationCodeLifetime], [ConsentLifetime], [AbsoluteRefreshTokenLifetime], [SlidingRefreshTokenLifetime], [RefreshTokenUsage], [UpdateAccessTokenClaimsOnRefresh], [RefreshTokenExpiration], [AccessTokenType], [EnableLocalLogin], [IncludeJwtId], [AlwaysSendClientClaims], [ClientClaimsPrefix], [PairWiseSubjectSalt], [Created], [Updated], [LastAccessed], [UserSsoLifetime], [UserCodeType], [DeviceCodeLifetime], [NonEditable]) VALUES (2, 1, N'TaskManagementServiceClient', N'oidc', 1, N'Client 17 Client', NULL, N'http://identityserver.io', NULL, 1, 1, 0, 0, 0, 0, NULL, 1, NULL, 1, 0, 300, 3600, 300, NULL, 2592000, 1296000, 1, 0, 1, 0, 1, 0, 0, N'client_', NULL, CAST(N'2019-07-17T19:25:06.4198847' AS DateTime2), NULL, NULL, NULL, NULL, 300, 0) -GO -INSERT [dbo].[Clients] ([Id], [Enabled], [ClientId], [ProtocolType], [RequireClientSecret], [ClientName], [Description], [ClientUri], [LogoUri], [RequireConsent], [AllowRememberConsent], [AlwaysIncludeUserClaimsInIdToken], [RequirePkce], [AllowPlainTextPkce], [AllowAccessTokensViaBrowser], [FrontChannelLogoutUri], [FrontChannelLogoutSessionRequired], [BackChannelLogoutUri], [BackChannelLogoutSessionRequired], [AllowOfflineAccess], [IdentityTokenLifetime], [AccessTokenLifetime], [AuthorizationCodeLifetime], [ConsentLifetime], [AbsoluteRefreshTokenLifetime], [SlidingRefreshTokenLifetime], [RefreshTokenUsage], [UpdateAccessTokenClaimsOnRefresh], [RefreshTokenExpiration], [AccessTokenType], [EnableLocalLogin], [IncludeJwtId], [AlwaysSendClientClaims], [ClientClaimsPrefix], [PairWiseSubjectSalt], [Created], [Updated], [LastAccessed], [UserSsoLifetime], [UserCodeType], [DeviceCodeLifetime], [NonEditable]) VALUES (3, 1, N'Client_16', N'oidc', 1, N'Client 16 Client', NULL, N'http://identityserver.io', NULL, 1, 1, 0, 0, 0, 0, NULL, 1, NULL, 1, 0, 300, 3600, 300, NULL, 2592000, 1296000, 1, 0, 1, 0, 1, 0, 0, N'client_', NULL, CAST(N'2019-07-17T19:25:06.4193397' AS DateTime2), NULL, NULL, NULL, NULL, 300, 0) -GO -INSERT [dbo].[Clients] ([Id], [Enabled], [ClientId], [ProtocolType], [RequireClientSecret], [ClientName], [Description], [ClientUri], [LogoUri], [RequireConsent], [AllowRememberConsent], [AlwaysIncludeUserClaimsInIdToken], [RequirePkce], [AllowPlainTextPkce], [AllowAccessTokensViaBrowser], [FrontChannelLogoutUri], [FrontChannelLogoutSessionRequired], [BackChannelLogoutUri], [BackChannelLogoutSessionRequired], [AllowOfflineAccess], [IdentityTokenLifetime], [AccessTokenLifetime], [AuthorizationCodeLifetime], [ConsentLifetime], [AbsoluteRefreshTokenLifetime], [SlidingRefreshTokenLifetime], [RefreshTokenUsage], [UpdateAccessTokenClaimsOnRefresh], [RefreshTokenExpiration], [AccessTokenType], [EnableLocalLogin], [IncludeJwtId], [AlwaysSendClientClaims], [ClientClaimsPrefix], [PairWiseSubjectSalt], [Created], [Updated], [LastAccessed], [UserSsoLifetime], [UserCodeType], [DeviceCodeLifetime], [NonEditable]) VALUES (4, 1, N'Client_15', N'oidc', 1, N'Client 15 Client', NULL, N'http://identityserver.io', NULL, 1, 1, 0, 0, 0, 0, NULL, 1, NULL, 1, 0, 300, 3600, 300, NULL, 2592000, 1296000, 1, 0, 1, 0, 1, 0, 0, N'client_', NULL, CAST(N'2019-07-17T19:25:06.4172185' AS DateTime2), NULL, NULL, NULL, NULL, 300, 0) -GO -INSERT [dbo].[Clients] ([Id], [Enabled], [ClientId], [ProtocolType], [RequireClientSecret], [ClientName], [Description], [ClientUri], [LogoUri], [RequireConsent], [AllowRememberConsent], [AlwaysIncludeUserClaimsInIdToken], [RequirePkce], [AllowPlainTextPkce], [AllowAccessTokensViaBrowser], [FrontChannelLogoutUri], [FrontChannelLogoutSessionRequired], [BackChannelLogoutUri], [BackChannelLogoutSessionRequired], [AllowOfflineAccess], [IdentityTokenLifetime], [AccessTokenLifetime], [AuthorizationCodeLifetime], [ConsentLifetime], [AbsoluteRefreshTokenLifetime], [SlidingRefreshTokenLifetime], [RefreshTokenUsage], [UpdateAccessTokenClaimsOnRefresh], [RefreshTokenExpiration], [AccessTokenType], [EnableLocalLogin], [IncludeJwtId], [AlwaysSendClientClaims], [ClientClaimsPrefix], [PairWiseSubjectSalt], [Created], [Updated], [LastAccessed], [UserSsoLifetime], [UserCodeType], [DeviceCodeLifetime], [NonEditable]) VALUES (5, 1, N'Client_14', N'oidc', 1, N'Client 14 Client', NULL, N'http://identityserver.io', NULL, 1, 1, 0, 0, 0, 0, NULL, 1, NULL, 1, 0, 300, 3600, 300, NULL, 2592000, 1296000, 1, 0, 1, 0, 1, 0, 0, N'client_', NULL, CAST(N'2019-07-17T19:25:06.4165624' AS DateTime2), NULL, NULL, NULL, NULL, 300, 0) -GO -INSERT [dbo].[Clients] ([Id], [Enabled], [ClientId], [ProtocolType], [RequireClientSecret], [ClientName], [Description], [ClientUri], [LogoUri], [RequireConsent], [AllowRememberConsent], [AlwaysIncludeUserClaimsInIdToken], [RequirePkce], [AllowPlainTextPkce], [AllowAccessTokensViaBrowser], [FrontChannelLogoutUri], [FrontChannelLogoutSessionRequired], [BackChannelLogoutUri], [BackChannelLogoutSessionRequired], [AllowOfflineAccess], [IdentityTokenLifetime], [AccessTokenLifetime], [AuthorizationCodeLifetime], [ConsentLifetime], [AbsoluteRefreshTokenLifetime], [SlidingRefreshTokenLifetime], [RefreshTokenUsage], [UpdateAccessTokenClaimsOnRefresh], [RefreshTokenExpiration], [AccessTokenType], [EnableLocalLogin], [IncludeJwtId], [AlwaysSendClientClaims], [ClientClaimsPrefix], [PairWiseSubjectSalt], [Created], [Updated], [LastAccessed], [UserSsoLifetime], [UserCodeType], [DeviceCodeLifetime], [NonEditable]) VALUES (6, 1, N'Client_13', N'oidc', 1, N'Client 13 Client', NULL, N'http://identityserver.io', NULL, 1, 1, 0, 0, 0, 0, NULL, 1, NULL, 1, 0, 300, 3600, 300, NULL, 2592000, 1296000, 1, 0, 1, 0, 1, 0, 0, N'client_', NULL, CAST(N'2019-07-17T19:25:06.4156326' AS DateTime2), NULL, NULL, NULL, NULL, 300, 0) -GO -INSERT [dbo].[Clients] ([Id], [Enabled], [ClientId], [ProtocolType], [RequireClientSecret], [ClientName], [Description], [ClientUri], [LogoUri], [RequireConsent], [AllowRememberConsent], [AlwaysIncludeUserClaimsInIdToken], [RequirePkce], [AllowPlainTextPkce], [AllowAccessTokensViaBrowser], [FrontChannelLogoutUri], [FrontChannelLogoutSessionRequired], [BackChannelLogoutUri], [BackChannelLogoutSessionRequired], [AllowOfflineAccess], [IdentityTokenLifetime], [AccessTokenLifetime], [AuthorizationCodeLifetime], [ConsentLifetime], [AbsoluteRefreshTokenLifetime], [SlidingRefreshTokenLifetime], [RefreshTokenUsage], [UpdateAccessTokenClaimsOnRefresh], [RefreshTokenExpiration], [AccessTokenType], [EnableLocalLogin], [IncludeJwtId], [AlwaysSendClientClaims], [ClientClaimsPrefix], [PairWiseSubjectSalt], [Created], [Updated], [LastAccessed], [UserSsoLifetime], [UserCodeType], [DeviceCodeLifetime], [NonEditable]) VALUES (7, 1, N'Client_12', N'oidc', 1, N'Client 12 Client', NULL, N'http://identityserver.io', NULL, 1, 1, 0, 0, 0, 0, NULL, 1, NULL, 1, 0, 300, 3600, 300, NULL, 2592000, 1296000, 1, 0, 1, 0, 1, 0, 0, N'client_', NULL, CAST(N'2019-07-17T19:25:06.4151104' AS DateTime2), NULL, NULL, NULL, NULL, 300, 0) -GO -INSERT [dbo].[Clients] ([Id], [Enabled], [ClientId], [ProtocolType], [RequireClientSecret], [ClientName], [Description], [ClientUri], [LogoUri], [RequireConsent], [AllowRememberConsent], [AlwaysIncludeUserClaimsInIdToken], [RequirePkce], [AllowPlainTextPkce], [AllowAccessTokensViaBrowser], [FrontChannelLogoutUri], [FrontChannelLogoutSessionRequired], [BackChannelLogoutUri], [BackChannelLogoutSessionRequired], [AllowOfflineAccess], [IdentityTokenLifetime], [AccessTokenLifetime], [AuthorizationCodeLifetime], [ConsentLifetime], [AbsoluteRefreshTokenLifetime], [SlidingRefreshTokenLifetime], [RefreshTokenUsage], [UpdateAccessTokenClaimsOnRefresh], [RefreshTokenExpiration], [AccessTokenType], [EnableLocalLogin], [IncludeJwtId], [AlwaysSendClientClaims], [ClientClaimsPrefix], [PairWiseSubjectSalt], [Created], [Updated], [LastAccessed], [UserSsoLifetime], [UserCodeType], [DeviceCodeLifetime], [NonEditable]) VALUES (8, 1, N'Client_11', N'oidc', 1, N'Client 11 Client', NULL, N'http://identityserver.io', NULL, 1, 1, 0, 0, 0, 0, NULL, 1, NULL, 1, 0, 300, 3600, 300, NULL, 2592000, 1296000, 1, 0, 1, 0, 1, 0, 0, N'client_', NULL, CAST(N'2019-07-17T19:25:06.4146409' AS DateTime2), NULL, NULL, NULL, NULL, 300, 0) -GO -INSERT [dbo].[Clients] ([Id], [Enabled], [ClientId], [ProtocolType], [RequireClientSecret], [ClientName], [Description], [ClientUri], [LogoUri], [RequireConsent], [AllowRememberConsent], [AlwaysIncludeUserClaimsInIdToken], [RequirePkce], [AllowPlainTextPkce], [AllowAccessTokensViaBrowser], [FrontChannelLogoutUri], [FrontChannelLogoutSessionRequired], [BackChannelLogoutUri], [BackChannelLogoutSessionRequired], [AllowOfflineAccess], [IdentityTokenLifetime], [AccessTokenLifetime], [AuthorizationCodeLifetime], [ConsentLifetime], [AbsoluteRefreshTokenLifetime], [SlidingRefreshTokenLifetime], [RefreshTokenUsage], [UpdateAccessTokenClaimsOnRefresh], [RefreshTokenExpiration], [AccessTokenType], [EnableLocalLogin], [IncludeJwtId], [AlwaysSendClientClaims], [ClientClaimsPrefix], [PairWiseSubjectSalt], [Created], [Updated], [LastAccessed], [UserSsoLifetime], [UserCodeType], [DeviceCodeLifetime], [NonEditable]) VALUES (9, 1, N'Client_10', N'oidc', 1, N'Client 10 Client', NULL, N'http://identityserver.io', NULL, 1, 1, 0, 0, 0, 0, NULL, 1, NULL, 1, 0, 300, 3600, 300, NULL, 2592000, 1296000, 1, 0, 1, 0, 1, 0, 0, N'client_', NULL, CAST(N'2019-07-17T19:25:06.4141537' AS DateTime2), NULL, NULL, NULL, NULL, 300, 0) -GO -INSERT [dbo].[Clients] ([Id], [Enabled], [ClientId], [ProtocolType], [RequireClientSecret], [ClientName], [Description], [ClientUri], [LogoUri], [RequireConsent], [AllowRememberConsent], [AlwaysIncludeUserClaimsInIdToken], [RequirePkce], [AllowPlainTextPkce], [AllowAccessTokensViaBrowser], [FrontChannelLogoutUri], [FrontChannelLogoutSessionRequired], [BackChannelLogoutUri], [BackChannelLogoutSessionRequired], [AllowOfflineAccess], [IdentityTokenLifetime], [AccessTokenLifetime], [AuthorizationCodeLifetime], [ConsentLifetime], [AbsoluteRefreshTokenLifetime], [SlidingRefreshTokenLifetime], [RefreshTokenUsage], [UpdateAccessTokenClaimsOnRefresh], [RefreshTokenExpiration], [AccessTokenType], [EnableLocalLogin], [IncludeJwtId], [AlwaysSendClientClaims], [ClientClaimsPrefix], [PairWiseSubjectSalt], [Created], [Updated], [LastAccessed], [UserSsoLifetime], [UserCodeType], [DeviceCodeLifetime], [NonEditable]) VALUES (10, 1, N'Client_9', N'oidc', 1, N'Client 9 Client', NULL, N'http://identityserver.io', NULL, 1, 1, 0, 0, 0, 0, NULL, 1, NULL, 1, 0, 300, 3600, 300, NULL, 2592000, 1296000, 1, 0, 1, 0, 1, 0, 0, N'client_', NULL, CAST(N'2019-07-17T19:25:06.4136438' AS DateTime2), NULL, NULL, NULL, NULL, 300, 0) -GO -INSERT [dbo].[Clients] ([Id], [Enabled], [ClientId], [ProtocolType], [RequireClientSecret], [ClientName], [Description], [ClientUri], [LogoUri], [RequireConsent], [AllowRememberConsent], [AlwaysIncludeUserClaimsInIdToken], [RequirePkce], [AllowPlainTextPkce], [AllowAccessTokensViaBrowser], [FrontChannelLogoutUri], [FrontChannelLogoutSessionRequired], [BackChannelLogoutUri], [BackChannelLogoutSessionRequired], [AllowOfflineAccess], [IdentityTokenLifetime], [AccessTokenLifetime], [AuthorizationCodeLifetime], [ConsentLifetime], [AbsoluteRefreshTokenLifetime], [SlidingRefreshTokenLifetime], [RefreshTokenUsage], [UpdateAccessTokenClaimsOnRefresh], [RefreshTokenExpiration], [AccessTokenType], [EnableLocalLogin], [IncludeJwtId], [AlwaysSendClientClaims], [ClientClaimsPrefix], [PairWiseSubjectSalt], [Created], [Updated], [LastAccessed], [UserSsoLifetime], [UserCodeType], [DeviceCodeLifetime], [NonEditable]) VALUES (11, 1, N'Client_8', N'oidc', 1, N'Client 8 Client', NULL, N'http://identityserver.io', NULL, 1, 1, 0, 0, 0, 0, NULL, 1, NULL, 1, 0, 300, 3600, 300, NULL, 2592000, 1296000, 1, 0, 1, 0, 1, 0, 0, N'client_', NULL, CAST(N'2019-07-17T19:25:06.4130695' AS DateTime2), NULL, NULL, NULL, NULL, 300, 0) -GO -INSERT [dbo].[Clients] ([Id], [Enabled], [ClientId], [ProtocolType], [RequireClientSecret], [ClientName], [Description], [ClientUri], [LogoUri], [RequireConsent], [AllowRememberConsent], [AlwaysIncludeUserClaimsInIdToken], [RequirePkce], [AllowPlainTextPkce], [AllowAccessTokensViaBrowser], [FrontChannelLogoutUri], [FrontChannelLogoutSessionRequired], [BackChannelLogoutUri], [BackChannelLogoutSessionRequired], [AllowOfflineAccess], [IdentityTokenLifetime], [AccessTokenLifetime], [AuthorizationCodeLifetime], [ConsentLifetime], [AbsoluteRefreshTokenLifetime], [SlidingRefreshTokenLifetime], [RefreshTokenUsage], [UpdateAccessTokenClaimsOnRefresh], [RefreshTokenExpiration], [AccessTokenType], [EnableLocalLogin], [IncludeJwtId], [AlwaysSendClientClaims], [ClientClaimsPrefix], [PairWiseSubjectSalt], [Created], [Updated], [LastAccessed], [UserSsoLifetime], [UserCodeType], [DeviceCodeLifetime], [NonEditable]) VALUES (12, 1, N'Client_7', N'oidc', 1, N'Client 7 Client', NULL, N'http://identityserver.io', NULL, 1, 1, 0, 0, 0, 0, NULL, 1, NULL, 1, 0, 300, 3600, 300, NULL, 2592000, 1296000, 1, 0, 1, 0, 1, 0, 0, N'client_', NULL, CAST(N'2019-07-17T19:25:06.4106335' AS DateTime2), NULL, NULL, NULL, NULL, 300, 0) -GO -INSERT [dbo].[Clients] ([Id], [Enabled], [ClientId], [ProtocolType], [RequireClientSecret], [ClientName], [Description], [ClientUri], [LogoUri], [RequireConsent], [AllowRememberConsent], [AlwaysIncludeUserClaimsInIdToken], [RequirePkce], [AllowPlainTextPkce], [AllowAccessTokensViaBrowser], [FrontChannelLogoutUri], [FrontChannelLogoutSessionRequired], [BackChannelLogoutUri], [BackChannelLogoutSessionRequired], [AllowOfflineAccess], [IdentityTokenLifetime], [AccessTokenLifetime], [AuthorizationCodeLifetime], [ConsentLifetime], [AbsoluteRefreshTokenLifetime], [SlidingRefreshTokenLifetime], [RefreshTokenUsage], [UpdateAccessTokenClaimsOnRefresh], [RefreshTokenExpiration], [AccessTokenType], [EnableLocalLogin], [IncludeJwtId], [AlwaysSendClientClaims], [ClientClaimsPrefix], [PairWiseSubjectSalt], [Created], [Updated], [LastAccessed], [UserSsoLifetime], [UserCodeType], [DeviceCodeLifetime], [NonEditable]) VALUES (13, 1, N'Client_6', N'oidc', 1, N'Client 6 Client', NULL, N'http://identityserver.io', NULL, 1, 1, 0, 0, 0, 0, NULL, 1, NULL, 1, 0, 300, 3600, 300, NULL, 2592000, 1296000, 1, 0, 1, 0, 1, 0, 0, N'client_', NULL, CAST(N'2019-07-17T19:25:06.4097861' AS DateTime2), NULL, NULL, NULL, NULL, 300, 0) -GO -INSERT [dbo].[Clients] ([Id], [Enabled], [ClientId], [ProtocolType], [RequireClientSecret], [ClientName], [Description], [ClientUri], [LogoUri], [RequireConsent], [AllowRememberConsent], [AlwaysIncludeUserClaimsInIdToken], [RequirePkce], [AllowPlainTextPkce], [AllowAccessTokensViaBrowser], [FrontChannelLogoutUri], [FrontChannelLogoutSessionRequired], [BackChannelLogoutUri], [BackChannelLogoutSessionRequired], [AllowOfflineAccess], [IdentityTokenLifetime], [AccessTokenLifetime], [AuthorizationCodeLifetime], [ConsentLifetime], [AbsoluteRefreshTokenLifetime], [SlidingRefreshTokenLifetime], [RefreshTokenUsage], [UpdateAccessTokenClaimsOnRefresh], [RefreshTokenExpiration], [AccessTokenType], [EnableLocalLogin], [IncludeJwtId], [AlwaysSendClientClaims], [ClientClaimsPrefix], [PairWiseSubjectSalt], [Created], [Updated], [LastAccessed], [UserSsoLifetime], [UserCodeType], [DeviceCodeLifetime], [NonEditable]) VALUES (14, 1, N'Client_5', N'oidc', 1, N'Client 5 Client', NULL, N'http://identityserver.io', NULL, 1, 1, 0, 0, 0, 0, NULL, 1, NULL, 1, 0, 300, 3600, 300, NULL, 2592000, 1296000, 1, 0, 1, 0, 1, 0, 0, N'client_', NULL, CAST(N'2019-07-17T19:25:06.4092640' AS DateTime2), NULL, NULL, NULL, NULL, 300, 0) -GO -INSERT [dbo].[Clients] ([Id], [Enabled], [ClientId], [ProtocolType], [RequireClientSecret], [ClientName], [Description], [ClientUri], [LogoUri], [RequireConsent], [AllowRememberConsent], [AlwaysIncludeUserClaimsInIdToken], [RequirePkce], [AllowPlainTextPkce], [AllowAccessTokensViaBrowser], [FrontChannelLogoutUri], [FrontChannelLogoutSessionRequired], [BackChannelLogoutUri], [BackChannelLogoutSessionRequired], [AllowOfflineAccess], [IdentityTokenLifetime], [AccessTokenLifetime], [AuthorizationCodeLifetime], [ConsentLifetime], [AbsoluteRefreshTokenLifetime], [SlidingRefreshTokenLifetime], [RefreshTokenUsage], [UpdateAccessTokenClaimsOnRefresh], [RefreshTokenExpiration], [AccessTokenType], [EnableLocalLogin], [IncludeJwtId], [AlwaysSendClientClaims], [ClientClaimsPrefix], [PairWiseSubjectSalt], [Created], [Updated], [LastAccessed], [UserSsoLifetime], [UserCodeType], [DeviceCodeLifetime], [NonEditable]) VALUES (15, 1, N'Client_4', N'oidc', 1, N'Client 4 Client', NULL, N'http://identityserver.io', NULL, 1, 1, 0, 0, 0, 0, NULL, 1, NULL, 1, 0, 300, 3600, 300, NULL, 2592000, 1296000, 1, 0, 1, 0, 1, 0, 0, N'client_', NULL, CAST(N'2019-07-17T19:25:06.4087165' AS DateTime2), NULL, NULL, NULL, NULL, 300, 0) -GO -INSERT [dbo].[Clients] ([Id], [Enabled], [ClientId], [ProtocolType], [RequireClientSecret], [ClientName], [Description], [ClientUri], [LogoUri], [RequireConsent], [AllowRememberConsent], [AlwaysIncludeUserClaimsInIdToken], [RequirePkce], [AllowPlainTextPkce], [AllowAccessTokensViaBrowser], [FrontChannelLogoutUri], [FrontChannelLogoutSessionRequired], [BackChannelLogoutUri], [BackChannelLogoutSessionRequired], [AllowOfflineAccess], [IdentityTokenLifetime], [AccessTokenLifetime], [AuthorizationCodeLifetime], [ConsentLifetime], [AbsoluteRefreshTokenLifetime], [SlidingRefreshTokenLifetime], [RefreshTokenUsage], [UpdateAccessTokenClaimsOnRefresh], [RefreshTokenExpiration], [AccessTokenType], [EnableLocalLogin], [IncludeJwtId], [AlwaysSendClientClaims], [ClientClaimsPrefix], [PairWiseSubjectSalt], [Created], [Updated], [LastAccessed], [UserSsoLifetime], [UserCodeType], [DeviceCodeLifetime], [NonEditable]) VALUES (16, 1, N'Client_3', N'oidc', 1, N'Client 3 Client', NULL, N'http://identityserver.io', NULL, 1, 1, 0, 0, 0, 0, NULL, 1, NULL, 1, 0, 300, 3600, 300, NULL, 2592000, 1296000, 1, 0, 1, 0, 1, 0, 0, N'client_', NULL, CAST(N'2019-07-17T19:25:06.4082211' AS DateTime2), NULL, NULL, NULL, NULL, 300, 0) -GO -INSERT [dbo].[Clients] ([Id], [Enabled], [ClientId], [ProtocolType], [RequireClientSecret], [ClientName], [Description], [ClientUri], [LogoUri], [RequireConsent], [AllowRememberConsent], [AlwaysIncludeUserClaimsInIdToken], [RequirePkce], [AllowPlainTextPkce], [AllowAccessTokensViaBrowser], [FrontChannelLogoutUri], [FrontChannelLogoutSessionRequired], [BackChannelLogoutUri], [BackChannelLogoutSessionRequired], [AllowOfflineAccess], [IdentityTokenLifetime], [AccessTokenLifetime], [AuthorizationCodeLifetime], [ConsentLifetime], [AbsoluteRefreshTokenLifetime], [SlidingRefreshTokenLifetime], [RefreshTokenUsage], [UpdateAccessTokenClaimsOnRefresh], [RefreshTokenExpiration], [AccessTokenType], [EnableLocalLogin], [IncludeJwtId], [AlwaysSendClientClaims], [ClientClaimsPrefix], [PairWiseSubjectSalt], [Created], [Updated], [LastAccessed], [UserSsoLifetime], [UserCodeType], [DeviceCodeLifetime], [NonEditable]) VALUES (17, 1, N'Client_2', N'oidc', 1, N'Client 2 Client', NULL, N'http://identityserver.io', NULL, 1, 1, 0, 0, 0, 0, NULL, 1, NULL, 1, 0, 300, 3600, 300, NULL, 2592000, 1296000, 1, 0, 1, 0, 1, 0, 0, N'client_', NULL, CAST(N'2019-07-17T19:25:06.4075896' AS DateTime2), NULL, NULL, NULL, NULL, 300, 0) -GO -INSERT [dbo].[Clients] ([Id], [Enabled], [ClientId], [ProtocolType], [RequireClientSecret], [ClientName], [Description], [ClientUri], [LogoUri], [RequireConsent], [AllowRememberConsent], [AlwaysIncludeUserClaimsInIdToken], [RequirePkce], [AllowPlainTextPkce], [AllowAccessTokensViaBrowser], [FrontChannelLogoutUri], [FrontChannelLogoutSessionRequired], [BackChannelLogoutUri], [BackChannelLogoutSessionRequired], [AllowOfflineAccess], [IdentityTokenLifetime], [AccessTokenLifetime], [AuthorizationCodeLifetime], [ConsentLifetime], [AbsoluteRefreshTokenLifetime], [SlidingRefreshTokenLifetime], [RefreshTokenUsage], [UpdateAccessTokenClaimsOnRefresh], [RefreshTokenExpiration], [AccessTokenType], [EnableLocalLogin], [IncludeJwtId], [AlwaysSendClientClaims], [ClientClaimsPrefix], [PairWiseSubjectSalt], [Created], [Updated], [LastAccessed], [UserSsoLifetime], [UserCodeType], [DeviceCodeLifetime], [NonEditable]) VALUES (18, 1, N'Client_1', N'oidc', 1, N'Client 1 Client', NULL, N'http://identityserver.io', NULL, 1, 1, 0, 0, 0, 0, NULL, 1, NULL, 1, 0, 300, 3600, 300, NULL, 2592000, 1296000, 1, 0, 1, 0, 1, 0, 0, N'client_', NULL, CAST(N'2019-07-17T19:25:06.4034661' AS DateTime2), NULL, NULL, NULL, NULL, 300, 0) -GO -INSERT [dbo].[Clients] ([Id], [Enabled], [ClientId], [ProtocolType], [RequireClientSecret], [ClientName], [Description], [ClientUri], [LogoUri], [RequireConsent], [AllowRememberConsent], [AlwaysIncludeUserClaimsInIdToken], [RequirePkce], [AllowPlainTextPkce], [AllowAccessTokensViaBrowser], [FrontChannelLogoutUri], [FrontChannelLogoutSessionRequired], [BackChannelLogoutUri], [BackChannelLogoutSessionRequired], [AllowOfflineAccess], [IdentityTokenLifetime], [AccessTokenLifetime], [AuthorizationCodeLifetime], [ConsentLifetime], [AbsoluteRefreshTokenLifetime], [SlidingRefreshTokenLifetime], [RefreshTokenUsage], [UpdateAccessTokenClaimsOnRefresh], [RefreshTokenExpiration], [AccessTokenType], [EnableLocalLogin], [IncludeJwtId], [AlwaysSendClientClaims], [ClientClaimsPrefix], [PairWiseSubjectSalt], [Created], [Updated], [LastAccessed], [UserSsoLifetime], [UserCodeType], [DeviceCodeLifetime], [NonEditable]) VALUES (19, 1, N'Client_18', N'oidc', 1, N'Client 18 Client', NULL, N'http://identityserver.io', NULL, 1, 1, 0, 0, 0, 0, NULL, 1, NULL, 1, 0, 300, 3600, 300, NULL, 2592000, 1296000, 1, 0, 1, 0, 1, 0, 0, N'client_', NULL, CAST(N'2019-07-17T19:25:06.4203358' AS DateTime2), NULL, NULL, NULL, NULL, 300, 0) -GO -INSERT [dbo].[Clients] ([Id], [Enabled], [ClientId], [ProtocolType], [RequireClientSecret], [ClientName], [Description], [ClientUri], [LogoUri], [RequireConsent], [AllowRememberConsent], [AlwaysIncludeUserClaimsInIdToken], [RequirePkce], [AllowPlainTextPkce], [AllowAccessTokensViaBrowser], [FrontChannelLogoutUri], [FrontChannelLogoutSessionRequired], [BackChannelLogoutUri], [BackChannelLogoutSessionRequired], [AllowOfflineAccess], [IdentityTokenLifetime], [AccessTokenLifetime], [AuthorizationCodeLifetime], [ConsentLifetime], [AbsoluteRefreshTokenLifetime], [SlidingRefreshTokenLifetime], [RefreshTokenUsage], [UpdateAccessTokenClaimsOnRefresh], [RefreshTokenExpiration], [AccessTokenType], [EnableLocalLogin], [IncludeJwtId], [AlwaysSendClientClaims], [ClientClaimsPrefix], [PairWiseSubjectSalt], [Created], [Updated], [LastAccessed], [UserSsoLifetime], [UserCodeType], [DeviceCodeLifetime], [NonEditable]) VALUES (20, 1, N'Client_19', N'oidc', 1, N'Client 19 Client', NULL, N'http://identityserver.io', NULL, 1, 1, 0, 0, 0, 0, NULL, 1, NULL, 1, 0, 300, 3600, 300, NULL, 2592000, 1296000, 1, 0, 1, 0, 1, 0, 0, N'client_', NULL, CAST(N'2019-07-17T19:25:06.4207247' AS DateTime2), NULL, NULL, NULL, NULL, 300, 0) -GO +-- INSERT [dbo].[Clients] ([Id], [Enabled], [ClientId], [ProtocolType], [RequireClientSecret], [ClientName], [Description], [ClientUri], [LogoUri], [RequireConsent], [AllowRememberConsent], [AlwaysIncludeUserClaimsInIdToken], [RequirePkce], [AllowPlainTextPkce], [AllowAccessTokensViaBrowser], [FrontChannelLogoutUri], [FrontChannelLogoutSessionRequired], [BackChannelLogoutUri], [BackChannelLogoutSessionRequired], [AllowOfflineAccess], [IdentityTokenLifetime], [AccessTokenLifetime], [AuthorizationCodeLifetime], [ConsentLifetime], [AbsoluteRefreshTokenLifetime], [SlidingRefreshTokenLifetime], [RefreshTokenUsage], [UpdateAccessTokenClaimsOnRefresh], [RefreshTokenExpiration], [AccessTokenType], [EnableLocalLogin], [IncludeJwtId], [AlwaysSendClientClaims], [ClientClaimsPrefix], [PairWiseSubjectSalt], [Created], [Updated], [LastAccessed], [UserSsoLifetime], [UserCodeType], [DeviceCodeLifetime], [NonEditable]) VALUES (2, 1, N'TaskManagementServiceClient', N'oidc', 1, N'Client 17 Client', NULL, N'http://identityserver.io', NULL, 1, 1, 0, 0, 0, 0, NULL, 1, NULL, 1, 0, 300, 3600, 300, NULL, 2592000, 1296000, 1, 0, 1, 0, 1, 0, 0, N'client_', NULL, CAST(N'2019-07-17T19:25:06.4198847' AS DateTime2), NULL, NULL, NULL, NULL, 300, 0) +-- GO +-- INSERT [dbo].[Clients] ([Id], [Enabled], [ClientId], [ProtocolType], [RequireClientSecret], [ClientName], [Description], [ClientUri], [LogoUri], [RequireConsent], [AllowRememberConsent], [AlwaysIncludeUserClaimsInIdToken], [RequirePkce], [AllowPlainTextPkce], [AllowAccessTokensViaBrowser], [FrontChannelLogoutUri], [FrontChannelLogoutSessionRequired], [BackChannelLogoutUri], [BackChannelLogoutSessionRequired], [AllowOfflineAccess], [IdentityTokenLifetime], [AccessTokenLifetime], [AuthorizationCodeLifetime], [ConsentLifetime], [AbsoluteRefreshTokenLifetime], [SlidingRefreshTokenLifetime], [RefreshTokenUsage], [UpdateAccessTokenClaimsOnRefresh], [RefreshTokenExpiration], [AccessTokenType], [EnableLocalLogin], [IncludeJwtId], [AlwaysSendClientClaims], [ClientClaimsPrefix], [PairWiseSubjectSalt], [Created], [Updated], [LastAccessed], [UserSsoLifetime], [UserCodeType], [DeviceCodeLifetime], [NonEditable]) VALUES (3, 1, N'Client_16', N'oidc', 1, N'Client 16 Client', NULL, N'http://identityserver.io', NULL, 1, 1, 0, 0, 0, 0, NULL, 1, NULL, 1, 0, 300, 3600, 300, NULL, 2592000, 1296000, 1, 0, 1, 0, 1, 0, 0, N'client_', NULL, CAST(N'2019-07-17T19:25:06.4193397' AS DateTime2), NULL, NULL, NULL, NULL, 300, 0) +-- GO +-- INSERT [dbo].[Clients] ([Id], [Enabled], [ClientId], [ProtocolType], [RequireClientSecret], [ClientName], [Description], [ClientUri], [LogoUri], [RequireConsent], [AllowRememberConsent], [AlwaysIncludeUserClaimsInIdToken], [RequirePkce], [AllowPlainTextPkce], [AllowAccessTokensViaBrowser], [FrontChannelLogoutUri], [FrontChannelLogoutSessionRequired], [BackChannelLogoutUri], [BackChannelLogoutSessionRequired], [AllowOfflineAccess], [IdentityTokenLifetime], [AccessTokenLifetime], [AuthorizationCodeLifetime], [ConsentLifetime], [AbsoluteRefreshTokenLifetime], [SlidingRefreshTokenLifetime], [RefreshTokenUsage], [UpdateAccessTokenClaimsOnRefresh], [RefreshTokenExpiration], [AccessTokenType], [EnableLocalLogin], [IncludeJwtId], [AlwaysSendClientClaims], [ClientClaimsPrefix], [PairWiseSubjectSalt], [Created], [Updated], [LastAccessed], [UserSsoLifetime], [UserCodeType], [DeviceCodeLifetime], [NonEditable]) VALUES (4, 1, N'Client_15', N'oidc', 1, N'Client 15 Client', NULL, N'http://identityserver.io', NULL, 1, 1, 0, 0, 0, 0, NULL, 1, NULL, 1, 0, 300, 3600, 300, NULL, 2592000, 1296000, 1, 0, 1, 0, 1, 0, 0, N'client_', NULL, CAST(N'2019-07-17T19:25:06.4172185' AS DateTime2), NULL, NULL, NULL, NULL, 300, 0) +-- GO +-- INSERT [dbo].[Clients] ([Id], [Enabled], [ClientId], [ProtocolType], [RequireClientSecret], [ClientName], [Description], [ClientUri], [LogoUri], [RequireConsent], [AllowRememberConsent], [AlwaysIncludeUserClaimsInIdToken], [RequirePkce], [AllowPlainTextPkce], [AllowAccessTokensViaBrowser], [FrontChannelLogoutUri], [FrontChannelLogoutSessionRequired], [BackChannelLogoutUri], [BackChannelLogoutSessionRequired], [AllowOfflineAccess], [IdentityTokenLifetime], [AccessTokenLifetime], [AuthorizationCodeLifetime], [ConsentLifetime], [AbsoluteRefreshTokenLifetime], [SlidingRefreshTokenLifetime], [RefreshTokenUsage], [UpdateAccessTokenClaimsOnRefresh], [RefreshTokenExpiration], [AccessTokenType], [EnableLocalLogin], [IncludeJwtId], [AlwaysSendClientClaims], [ClientClaimsPrefix], [PairWiseSubjectSalt], [Created], [Updated], [LastAccessed], [UserSsoLifetime], [UserCodeType], [DeviceCodeLifetime], [NonEditable]) VALUES (5, 1, N'Client_14', N'oidc', 1, N'Client 14 Client', NULL, N'http://identityserver.io', NULL, 1, 1, 0, 0, 0, 0, NULL, 1, NULL, 1, 0, 300, 3600, 300, NULL, 2592000, 1296000, 1, 0, 1, 0, 1, 0, 0, N'client_', NULL, CAST(N'2019-07-17T19:25:06.4165624' AS DateTime2), NULL, NULL, NULL, NULL, 300, 0) +-- GO +-- INSERT [dbo].[Clients] ([Id], [Enabled], [ClientId], [ProtocolType], [RequireClientSecret], [ClientName], [Description], [ClientUri], [LogoUri], [RequireConsent], [AllowRememberConsent], [AlwaysIncludeUserClaimsInIdToken], [RequirePkce], [AllowPlainTextPkce], [AllowAccessTokensViaBrowser], [FrontChannelLogoutUri], [FrontChannelLogoutSessionRequired], [BackChannelLogoutUri], [BackChannelLogoutSessionRequired], [AllowOfflineAccess], [IdentityTokenLifetime], [AccessTokenLifetime], [AuthorizationCodeLifetime], [ConsentLifetime], [AbsoluteRefreshTokenLifetime], [SlidingRefreshTokenLifetime], [RefreshTokenUsage], [UpdateAccessTokenClaimsOnRefresh], [RefreshTokenExpiration], [AccessTokenType], [EnableLocalLogin], [IncludeJwtId], [AlwaysSendClientClaims], [ClientClaimsPrefix], [PairWiseSubjectSalt], [Created], [Updated], [LastAccessed], [UserSsoLifetime], [UserCodeType], [DeviceCodeLifetime], [NonEditable]) VALUES (6, 1, N'Client_13', N'oidc', 1, N'Client 13 Client', NULL, N'http://identityserver.io', NULL, 1, 1, 0, 0, 0, 0, NULL, 1, NULL, 1, 0, 300, 3600, 300, NULL, 2592000, 1296000, 1, 0, 1, 0, 1, 0, 0, N'client_', NULL, CAST(N'2019-07-17T19:25:06.4156326' AS DateTime2), NULL, NULL, NULL, NULL, 300, 0) +-- GO +-- INSERT [dbo].[Clients] ([Id], [Enabled], [ClientId], [ProtocolType], [RequireClientSecret], [ClientName], [Description], [ClientUri], [LogoUri], [RequireConsent], [AllowRememberConsent], [AlwaysIncludeUserClaimsInIdToken], [RequirePkce], [AllowPlainTextPkce], [AllowAccessTokensViaBrowser], [FrontChannelLogoutUri], [FrontChannelLogoutSessionRequired], [BackChannelLogoutUri], [BackChannelLogoutSessionRequired], [AllowOfflineAccess], [IdentityTokenLifetime], [AccessTokenLifetime], [AuthorizationCodeLifetime], [ConsentLifetime], [AbsoluteRefreshTokenLifetime], [SlidingRefreshTokenLifetime], [RefreshTokenUsage], [UpdateAccessTokenClaimsOnRefresh], [RefreshTokenExpiration], [AccessTokenType], [EnableLocalLogin], [IncludeJwtId], [AlwaysSendClientClaims], [ClientClaimsPrefix], [PairWiseSubjectSalt], [Created], [Updated], [LastAccessed], [UserSsoLifetime], [UserCodeType], [DeviceCodeLifetime], [NonEditable]) VALUES (7, 1, N'Client_12', N'oidc', 1, N'Client 12 Client', NULL, N'http://identityserver.io', NULL, 1, 1, 0, 0, 0, 0, NULL, 1, NULL, 1, 0, 300, 3600, 300, NULL, 2592000, 1296000, 1, 0, 1, 0, 1, 0, 0, N'client_', NULL, CAST(N'2019-07-17T19:25:06.4151104' AS DateTime2), NULL, NULL, NULL, NULL, 300, 0) +-- GO +-- INSERT [dbo].[Clients] ([Id], [Enabled], [ClientId], [ProtocolType], [RequireClientSecret], [ClientName], [Description], [ClientUri], [LogoUri], [RequireConsent], [AllowRememberConsent], [AlwaysIncludeUserClaimsInIdToken], [RequirePkce], [AllowPlainTextPkce], [AllowAccessTokensViaBrowser], [FrontChannelLogoutUri], [FrontChannelLogoutSessionRequired], [BackChannelLogoutUri], [BackChannelLogoutSessionRequired], [AllowOfflineAccess], [IdentityTokenLifetime], [AccessTokenLifetime], [AuthorizationCodeLifetime], [ConsentLifetime], [AbsoluteRefreshTokenLifetime], [SlidingRefreshTokenLifetime], [RefreshTokenUsage], [UpdateAccessTokenClaimsOnRefresh], [RefreshTokenExpiration], [AccessTokenType], [EnableLocalLogin], [IncludeJwtId], [AlwaysSendClientClaims], [ClientClaimsPrefix], [PairWiseSubjectSalt], [Created], [Updated], [LastAccessed], [UserSsoLifetime], [UserCodeType], [DeviceCodeLifetime], [NonEditable]) VALUES (8, 1, N'Client_11', N'oidc', 1, N'Client 11 Client', NULL, N'http://identityserver.io', NULL, 1, 1, 0, 0, 0, 0, NULL, 1, NULL, 1, 0, 300, 3600, 300, NULL, 2592000, 1296000, 1, 0, 1, 0, 1, 0, 0, N'client_', NULL, CAST(N'2019-07-17T19:25:06.4146409' AS DateTime2), NULL, NULL, NULL, NULL, 300, 0) +-- GO +-- INSERT [dbo].[Clients] ([Id], [Enabled], [ClientId], [ProtocolType], [RequireClientSecret], [ClientName], [Description], [ClientUri], [LogoUri], [RequireConsent], [AllowRememberConsent], [AlwaysIncludeUserClaimsInIdToken], [RequirePkce], [AllowPlainTextPkce], [AllowAccessTokensViaBrowser], [FrontChannelLogoutUri], [FrontChannelLogoutSessionRequired], [BackChannelLogoutUri], [BackChannelLogoutSessionRequired], [AllowOfflineAccess], [IdentityTokenLifetime], [AccessTokenLifetime], [AuthorizationCodeLifetime], [ConsentLifetime], [AbsoluteRefreshTokenLifetime], [SlidingRefreshTokenLifetime], [RefreshTokenUsage], [UpdateAccessTokenClaimsOnRefresh], [RefreshTokenExpiration], [AccessTokenType], [EnableLocalLogin], [IncludeJwtId], [AlwaysSendClientClaims], [ClientClaimsPrefix], [PairWiseSubjectSalt], [Created], [Updated], [LastAccessed], [UserSsoLifetime], [UserCodeType], [DeviceCodeLifetime], [NonEditable]) VALUES (9, 1, N'Client_10', N'oidc', 1, N'Client 10 Client', NULL, N'http://identityserver.io', NULL, 1, 1, 0, 0, 0, 0, NULL, 1, NULL, 1, 0, 300, 3600, 300, NULL, 2592000, 1296000, 1, 0, 1, 0, 1, 0, 0, N'client_', NULL, CAST(N'2019-07-17T19:25:06.4141537' AS DateTime2), NULL, NULL, NULL, NULL, 300, 0) +-- GO +-- INSERT [dbo].[Clients] ([Id], [Enabled], [ClientId], [ProtocolType], [RequireClientSecret], [ClientName], [Description], [ClientUri], [LogoUri], [RequireConsent], [AllowRememberConsent], [AlwaysIncludeUserClaimsInIdToken], [RequirePkce], [AllowPlainTextPkce], [AllowAccessTokensViaBrowser], [FrontChannelLogoutUri], [FrontChannelLogoutSessionRequired], [BackChannelLogoutUri], [BackChannelLogoutSessionRequired], [AllowOfflineAccess], [IdentityTokenLifetime], [AccessTokenLifetime], [AuthorizationCodeLifetime], [ConsentLifetime], [AbsoluteRefreshTokenLifetime], [SlidingRefreshTokenLifetime], [RefreshTokenUsage], [UpdateAccessTokenClaimsOnRefresh], [RefreshTokenExpiration], [AccessTokenType], [EnableLocalLogin], [IncludeJwtId], [AlwaysSendClientClaims], [ClientClaimsPrefix], [PairWiseSubjectSalt], [Created], [Updated], [LastAccessed], [UserSsoLifetime], [UserCodeType], [DeviceCodeLifetime], [NonEditable]) VALUES (10, 1, N'Client_9', N'oidc', 1, N'Client 9 Client', NULL, N'http://identityserver.io', NULL, 1, 1, 0, 0, 0, 0, NULL, 1, NULL, 1, 0, 300, 3600, 300, NULL, 2592000, 1296000, 1, 0, 1, 0, 1, 0, 0, N'client_', NULL, CAST(N'2019-07-17T19:25:06.4136438' AS DateTime2), NULL, NULL, NULL, NULL, 300, 0) +-- GO +-- INSERT [dbo].[Clients] ([Id], [Enabled], [ClientId], [ProtocolType], [RequireClientSecret], [ClientName], [Description], [ClientUri], [LogoUri], [RequireConsent], [AllowRememberConsent], [AlwaysIncludeUserClaimsInIdToken], [RequirePkce], [AllowPlainTextPkce], [AllowAccessTokensViaBrowser], [FrontChannelLogoutUri], [FrontChannelLogoutSessionRequired], [BackChannelLogoutUri], [BackChannelLogoutSessionRequired], [AllowOfflineAccess], [IdentityTokenLifetime], [AccessTokenLifetime], [AuthorizationCodeLifetime], [ConsentLifetime], [AbsoluteRefreshTokenLifetime], [SlidingRefreshTokenLifetime], [RefreshTokenUsage], [UpdateAccessTokenClaimsOnRefresh], [RefreshTokenExpiration], [AccessTokenType], [EnableLocalLogin], [IncludeJwtId], [AlwaysSendClientClaims], [ClientClaimsPrefix], [PairWiseSubjectSalt], [Created], [Updated], [LastAccessed], [UserSsoLifetime], [UserCodeType], [DeviceCodeLifetime], [NonEditable]) VALUES (11, 1, N'Client_8', N'oidc', 1, N'Client 8 Client', NULL, N'http://identityserver.io', NULL, 1, 1, 0, 0, 0, 0, NULL, 1, NULL, 1, 0, 300, 3600, 300, NULL, 2592000, 1296000, 1, 0, 1, 0, 1, 0, 0, N'client_', NULL, CAST(N'2019-07-17T19:25:06.4130695' AS DateTime2), NULL, NULL, NULL, NULL, 300, 0) +-- GO +-- INSERT [dbo].[Clients] ([Id], [Enabled], [ClientId], [ProtocolType], [RequireClientSecret], [ClientName], [Description], [ClientUri], [LogoUri], [RequireConsent], [AllowRememberConsent], [AlwaysIncludeUserClaimsInIdToken], [RequirePkce], [AllowPlainTextPkce], [AllowAccessTokensViaBrowser], [FrontChannelLogoutUri], [FrontChannelLogoutSessionRequired], [BackChannelLogoutUri], [BackChannelLogoutSessionRequired], [AllowOfflineAccess], [IdentityTokenLifetime], [AccessTokenLifetime], [AuthorizationCodeLifetime], [ConsentLifetime], [AbsoluteRefreshTokenLifetime], [SlidingRefreshTokenLifetime], [RefreshTokenUsage], [UpdateAccessTokenClaimsOnRefresh], [RefreshTokenExpiration], [AccessTokenType], [EnableLocalLogin], [IncludeJwtId], [AlwaysSendClientClaims], [ClientClaimsPrefix], [PairWiseSubjectSalt], [Created], [Updated], [LastAccessed], [UserSsoLifetime], [UserCodeType], [DeviceCodeLifetime], [NonEditable]) VALUES (12, 1, N'Client_7', N'oidc', 1, N'Client 7 Client', NULL, N'http://identityserver.io', NULL, 1, 1, 0, 0, 0, 0, NULL, 1, NULL, 1, 0, 300, 3600, 300, NULL, 2592000, 1296000, 1, 0, 1, 0, 1, 0, 0, N'client_', NULL, CAST(N'2019-07-17T19:25:06.4106335' AS DateTime2), NULL, NULL, NULL, NULL, 300, 0) +-- GO +-- INSERT [dbo].[Clients] ([Id], [Enabled], [ClientId], [ProtocolType], [RequireClientSecret], [ClientName], [Description], [ClientUri], [LogoUri], [RequireConsent], [AllowRememberConsent], [AlwaysIncludeUserClaimsInIdToken], [RequirePkce], [AllowPlainTextPkce], [AllowAccessTokensViaBrowser], [FrontChannelLogoutUri], [FrontChannelLogoutSessionRequired], [BackChannelLogoutUri], [BackChannelLogoutSessionRequired], [AllowOfflineAccess], [IdentityTokenLifetime], [AccessTokenLifetime], [AuthorizationCodeLifetime], [ConsentLifetime], [AbsoluteRefreshTokenLifetime], [SlidingRefreshTokenLifetime], [RefreshTokenUsage], [UpdateAccessTokenClaimsOnRefresh], [RefreshTokenExpiration], [AccessTokenType], [EnableLocalLogin], [IncludeJwtId], [AlwaysSendClientClaims], [ClientClaimsPrefix], [PairWiseSubjectSalt], [Created], [Updated], [LastAccessed], [UserSsoLifetime], [UserCodeType], [DeviceCodeLifetime], [NonEditable]) VALUES (13, 1, N'Client_6', N'oidc', 1, N'Client 6 Client', NULL, N'http://identityserver.io', NULL, 1, 1, 0, 0, 0, 0, NULL, 1, NULL, 1, 0, 300, 3600, 300, NULL, 2592000, 1296000, 1, 0, 1, 0, 1, 0, 0, N'client_', NULL, CAST(N'2019-07-17T19:25:06.4097861' AS DateTime2), NULL, NULL, NULL, NULL, 300, 0) +-- GO +-- INSERT [dbo].[Clients] ([Id], [Enabled], [ClientId], [ProtocolType], [RequireClientSecret], [ClientName], [Description], [ClientUri], [LogoUri], [RequireConsent], [AllowRememberConsent], [AlwaysIncludeUserClaimsInIdToken], [RequirePkce], [AllowPlainTextPkce], [AllowAccessTokensViaBrowser], [FrontChannelLogoutUri], [FrontChannelLogoutSessionRequired], [BackChannelLogoutUri], [BackChannelLogoutSessionRequired], [AllowOfflineAccess], [IdentityTokenLifetime], [AccessTokenLifetime], [AuthorizationCodeLifetime], [ConsentLifetime], [AbsoluteRefreshTokenLifetime], [SlidingRefreshTokenLifetime], [RefreshTokenUsage], [UpdateAccessTokenClaimsOnRefresh], [RefreshTokenExpiration], [AccessTokenType], [EnableLocalLogin], [IncludeJwtId], [AlwaysSendClientClaims], [ClientClaimsPrefix], [PairWiseSubjectSalt], [Created], [Updated], [LastAccessed], [UserSsoLifetime], [UserCodeType], [DeviceCodeLifetime], [NonEditable]) VALUES (14, 1, N'Client_5', N'oidc', 1, N'Client 5 Client', NULL, N'http://identityserver.io', NULL, 1, 1, 0, 0, 0, 0, NULL, 1, NULL, 1, 0, 300, 3600, 300, NULL, 2592000, 1296000, 1, 0, 1, 0, 1, 0, 0, N'client_', NULL, CAST(N'2019-07-17T19:25:06.4092640' AS DateTime2), NULL, NULL, NULL, NULL, 300, 0) +-- GO +-- INSERT [dbo].[Clients] ([Id], [Enabled], [ClientId], [ProtocolType], [RequireClientSecret], [ClientName], [Description], [ClientUri], [LogoUri], [RequireConsent], [AllowRememberConsent], [AlwaysIncludeUserClaimsInIdToken], [RequirePkce], [AllowPlainTextPkce], [AllowAccessTokensViaBrowser], [FrontChannelLogoutUri], [FrontChannelLogoutSessionRequired], [BackChannelLogoutUri], [BackChannelLogoutSessionRequired], [AllowOfflineAccess], [IdentityTokenLifetime], [AccessTokenLifetime], [AuthorizationCodeLifetime], [ConsentLifetime], [AbsoluteRefreshTokenLifetime], [SlidingRefreshTokenLifetime], [RefreshTokenUsage], [UpdateAccessTokenClaimsOnRefresh], [RefreshTokenExpiration], [AccessTokenType], [EnableLocalLogin], [IncludeJwtId], [AlwaysSendClientClaims], [ClientClaimsPrefix], [PairWiseSubjectSalt], [Created], [Updated], [LastAccessed], [UserSsoLifetime], [UserCodeType], [DeviceCodeLifetime], [NonEditable]) VALUES (15, 1, N'Client_4', N'oidc', 1, N'Client 4 Client', NULL, N'http://identityserver.io', NULL, 1, 1, 0, 0, 0, 0, NULL, 1, NULL, 1, 0, 300, 3600, 300, NULL, 2592000, 1296000, 1, 0, 1, 0, 1, 0, 0, N'client_', NULL, CAST(N'2019-07-17T19:25:06.4087165' AS DateTime2), NULL, NULL, NULL, NULL, 300, 0) +-- GO +-- INSERT [dbo].[Clients] ([Id], [Enabled], [ClientId], [ProtocolType], [RequireClientSecret], [ClientName], [Description], [ClientUri], [LogoUri], [RequireConsent], [AllowRememberConsent], [AlwaysIncludeUserClaimsInIdToken], [RequirePkce], [AllowPlainTextPkce], [AllowAccessTokensViaBrowser], [FrontChannelLogoutUri], [FrontChannelLogoutSessionRequired], [BackChannelLogoutUri], [BackChannelLogoutSessionRequired], [AllowOfflineAccess], [IdentityTokenLifetime], [AccessTokenLifetime], [AuthorizationCodeLifetime], [ConsentLifetime], [AbsoluteRefreshTokenLifetime], [SlidingRefreshTokenLifetime], [RefreshTokenUsage], [UpdateAccessTokenClaimsOnRefresh], [RefreshTokenExpiration], [AccessTokenType], [EnableLocalLogin], [IncludeJwtId], [AlwaysSendClientClaims], [ClientClaimsPrefix], [PairWiseSubjectSalt], [Created], [Updated], [LastAccessed], [UserSsoLifetime], [UserCodeType], [DeviceCodeLifetime], [NonEditable]) VALUES (16, 1, N'Client_3', N'oidc', 1, N'Client 3 Client', NULL, N'http://identityserver.io', NULL, 1, 1, 0, 0, 0, 0, NULL, 1, NULL, 1, 0, 300, 3600, 300, NULL, 2592000, 1296000, 1, 0, 1, 0, 1, 0, 0, N'client_', NULL, CAST(N'2019-07-17T19:25:06.4082211' AS DateTime2), NULL, NULL, NULL, NULL, 300, 0) +-- GO +-- INSERT [dbo].[Clients] ([Id], [Enabled], [ClientId], [ProtocolType], [RequireClientSecret], [ClientName], [Description], [ClientUri], [LogoUri], [RequireConsent], [AllowRememberConsent], [AlwaysIncludeUserClaimsInIdToken], [RequirePkce], [AllowPlainTextPkce], [AllowAccessTokensViaBrowser], [FrontChannelLogoutUri], [FrontChannelLogoutSessionRequired], [BackChannelLogoutUri], [BackChannelLogoutSessionRequired], [AllowOfflineAccess], [IdentityTokenLifetime], [AccessTokenLifetime], [AuthorizationCodeLifetime], [ConsentLifetime], [AbsoluteRefreshTokenLifetime], [SlidingRefreshTokenLifetime], [RefreshTokenUsage], [UpdateAccessTokenClaimsOnRefresh], [RefreshTokenExpiration], [AccessTokenType], [EnableLocalLogin], [IncludeJwtId], [AlwaysSendClientClaims], [ClientClaimsPrefix], [PairWiseSubjectSalt], [Created], [Updated], [LastAccessed], [UserSsoLifetime], [UserCodeType], [DeviceCodeLifetime], [NonEditable]) VALUES (17, 1, N'Client_2', N'oidc', 1, N'Client 2 Client', NULL, N'http://identityserver.io', NULL, 1, 1, 0, 0, 0, 0, NULL, 1, NULL, 1, 0, 300, 3600, 300, NULL, 2592000, 1296000, 1, 0, 1, 0, 1, 0, 0, N'client_', NULL, CAST(N'2019-07-17T19:25:06.4075896' AS DateTime2), NULL, NULL, NULL, NULL, 300, 0) +-- GO +-- INSERT [dbo].[Clients] ([Id], [Enabled], [ClientId], [ProtocolType], [RequireClientSecret], [ClientName], [Description], [ClientUri], [LogoUri], [RequireConsent], [AllowRememberConsent], [AlwaysIncludeUserClaimsInIdToken], [RequirePkce], [AllowPlainTextPkce], [AllowAccessTokensViaBrowser], [FrontChannelLogoutUri], [FrontChannelLogoutSessionRequired], [BackChannelLogoutUri], [BackChannelLogoutSessionRequired], [AllowOfflineAccess], [IdentityTokenLifetime], [AccessTokenLifetime], [AuthorizationCodeLifetime], [ConsentLifetime], [AbsoluteRefreshTokenLifetime], [SlidingRefreshTokenLifetime], [RefreshTokenUsage], [UpdateAccessTokenClaimsOnRefresh], [RefreshTokenExpiration], [AccessTokenType], [EnableLocalLogin], [IncludeJwtId], [AlwaysSendClientClaims], [ClientClaimsPrefix], [PairWiseSubjectSalt], [Created], [Updated], [LastAccessed], [UserSsoLifetime], [UserCodeType], [DeviceCodeLifetime], [NonEditable]) VALUES (18, 1, N'Client_1', N'oidc', 1, N'Client 1 Client', NULL, N'http://identityserver.io', NULL, 1, 1, 0, 0, 0, 0, NULL, 1, NULL, 1, 0, 300, 3600, 300, NULL, 2592000, 1296000, 1, 0, 1, 0, 1, 0, 0, N'client_', NULL, CAST(N'2019-07-17T19:25:06.4034661' AS DateTime2), NULL, NULL, NULL, NULL, 300, 0) +-- GO +-- INSERT [dbo].[Clients] ([Id], [Enabled], [ClientId], [ProtocolType], [RequireClientSecret], [ClientName], [Description], [ClientUri], [LogoUri], [RequireConsent], [AllowRememberConsent], [AlwaysIncludeUserClaimsInIdToken], [RequirePkce], [AllowPlainTextPkce], [AllowAccessTokensViaBrowser], [FrontChannelLogoutUri], [FrontChannelLogoutSessionRequired], [BackChannelLogoutUri], [BackChannelLogoutSessionRequired], [AllowOfflineAccess], [IdentityTokenLifetime], [AccessTokenLifetime], [AuthorizationCodeLifetime], [ConsentLifetime], [AbsoluteRefreshTokenLifetime], [SlidingRefreshTokenLifetime], [RefreshTokenUsage], [UpdateAccessTokenClaimsOnRefresh], [RefreshTokenExpiration], [AccessTokenType], [EnableLocalLogin], [IncludeJwtId], [AlwaysSendClientClaims], [ClientClaimsPrefix], [PairWiseSubjectSalt], [Created], [Updated], [LastAccessed], [UserSsoLifetime], [UserCodeType], [DeviceCodeLifetime], [NonEditable]) VALUES (19, 1, N'Client_18', N'oidc', 1, N'Client 18 Client', NULL, N'http://identityserver.io', NULL, 1, 1, 0, 0, 0, 0, NULL, 1, NULL, 1, 0, 300, 3600, 300, NULL, 2592000, 1296000, 1, 0, 1, 0, 1, 0, 0, N'client_', NULL, CAST(N'2019-07-17T19:25:06.4203358' AS DateTime2), NULL, NULL, NULL, NULL, 300, 0) +-- GO +-- INSERT [dbo].[Clients] ([Id], [Enabled], [ClientId], [ProtocolType], [RequireClientSecret], [ClientName], [Description], [ClientUri], [LogoUri], [RequireConsent], [AllowRememberConsent], [AlwaysIncludeUserClaimsInIdToken], [RequirePkce], [AllowPlainTextPkce], [AllowAccessTokensViaBrowser], [FrontChannelLogoutUri], [FrontChannelLogoutSessionRequired], [BackChannelLogoutUri], [BackChannelLogoutSessionRequired], [AllowOfflineAccess], [IdentityTokenLifetime], [AccessTokenLifetime], [AuthorizationCodeLifetime], [ConsentLifetime], [AbsoluteRefreshTokenLifetime], [SlidingRefreshTokenLifetime], [RefreshTokenUsage], [UpdateAccessTokenClaimsOnRefresh], [RefreshTokenExpiration], [AccessTokenType], [EnableLocalLogin], [IncludeJwtId], [AlwaysSendClientClaims], [ClientClaimsPrefix], [PairWiseSubjectSalt], [Created], [Updated], [LastAccessed], [UserSsoLifetime], [UserCodeType], [DeviceCodeLifetime], [NonEditable]) VALUES (20, 1, N'Client_19', N'oidc', 1, N'Client 19 Client', NULL, N'http://identityserver.io', NULL, 1, 1, 0, 0, 0, 0, NULL, 1, NULL, 1, 0, 300, 3600, 300, NULL, 2592000, 1296000, 1, 0, 1, 0, 1, 0, 0, N'client_', NULL, CAST(N'2019-07-17T19:25:06.4207247' AS DateTime2), NULL, NULL, NULL, NULL, 300, 0) +-- GO SET IDENTITY_INSERT [dbo].[Clients] OFF GO -SET IDENTITY_INSERT [dbo].[ClientGrantTypes] ON +SET IDENTITY_INSERT [dbo].[ClientGrantTypes] ON GO INSERT [dbo].[ClientGrantTypes] ([Id], [GrantType], [ClientId]) VALUES (1, N'password', 1) GO @@ -96,7 +96,7 @@ INSERT [dbo].[ClientGrantTypes] ([Id], [GrantType], [ClientId]) VALUES (20, N'cl GO SET IDENTITY_INSERT [dbo].[ClientGrantTypes] OFF GO -SET IDENTITY_INSERT [dbo].[ClientScopes] ON +SET IDENTITY_INSERT [dbo].[ClientScopes] ON GO INSERT [dbo].[ClientScopes] ([Id], [Scope], [ClientId]) VALUES (1, N'openid', 4) GO @@ -300,7 +300,7 @@ INSERT [dbo].[ClientScopes] ([Id], [Scope], [ClientId]) VALUES (100, N'profile', GO SET IDENTITY_INSERT [dbo].[ClientScopes] OFF GO -SET IDENTITY_INSERT [dbo].[ClientSecrets] ON +SET IDENTITY_INSERT [dbo].[ClientSecrets] ON GO INSERT [dbo].[ClientSecrets] ([Id], [Description], [Value], [Expiration], [Type], [Created], [ClientId]) VALUES (1, N'Client 18 description', N'z9Vebms2sHHExOJBL2DxERzL1c0/UqE/NYcgMMhNjjWxxKohGhj9mxtIG9LnUSDYDTsEA82Zxn0zHzjkFoCodzaskGq2z/cEzTqy9jbOWORnRyOMSIpoF/4s7frfGYSbn6ScOsG1Ij1E/zaT589GZMdUfM9cHC6rQ3hsieL8JbO1F1eSMh0isSXmR0lU1S8u5ogyipy1PoN18PZISZhaR9qC3tB4tDGqMcupdtTlV25JPaNZyZoX/9jTHEIm2miMiwBv0fdetTFWiFjRC8iukJmI/gv1AX0/at73pJjvg1diHerUdYV36odyAkFBRvMQJYuonttcl4qCL2YYZxCYZw==', CAST(N'2020-07-17T22:25:06.4201984' AS DateTime2), N'SharedSecret', CAST(N'2019-07-17T19:25:06.4203366' AS DateTime2), 19) GO From 23f1055ef2ae8de35a545ba7ffeaea40f185aefa Mon Sep 17 00:00:00 2001 From: Tigran TIKSN Torosyan Date: Sun, 11 Aug 2019 16:07:19 +0300 Subject: [PATCH 052/139] Update Data.sql --- Data.sql | 80 ++++++++++++++++++++++++++++---------------------------- 1 file changed, 40 insertions(+), 40 deletions(-) diff --git a/Data.sql b/Data.sql index d336222..2efc586 100644 --- a/Data.sql +++ b/Data.sql @@ -10,7 +10,7 @@ SET IDENTITY_INSERT [dbo].[AspNetUserClaims] OFF GO SET IDENTITY_INSERT [dbo].[Clients] ON GO -INSERT [dbo].[Clients] ([Id], [Enabled], [ClientId], [ProtocolType], [RequireClientSecret], [ClientName], [Description], [ClientUri], [LogoUri], [RequireConsent], [AllowRememberConsent], [AlwaysIncludeUserClaimsInIdToken], [RequirePkce], [AllowPlainTextPkce], [AllowAccessTokensViaBrowser], [FrontChannelLogoutUri], [FrontChannelLogoutSessionRequired], [BackChannelLogoutUri], [BackChannelLogoutSessionRequired], [AllowOfflineAccess], [IdentityTokenLifetime], [AccessTokenLifetime], [AuthorizationCodeLifetime], [ConsentLifetime], [AbsoluteRefreshTokenLifetime], [SlidingRefreshTokenLifetime], [RefreshTokenUsage], [UpdateAccessTokenClaimsOnRefresh], [RefreshTokenExpiration], [AccessTokenType], [EnableLocalLogin], [IncludeJwtId], [AlwaysSendClientClaims], [ClientClaimsPrefix], [PairWiseSubjectSalt], [Created], [Updated], [LastAccessed], [UserSsoLifetime], [UserCodeType], [DeviceCodeLifetime], [NonEditable]) VALUES (1, 1, N'UserManagementClient', N'oidc', 1, N'Client 0 Client', NULL, N'http://identityserver.io', NULL, 1, 1, 0, 0, 0, 0, NULL, 1, NULL, 1, 0, 300, 3600, 300, NULL, 2592000, 1296000, 1, 0, 1, 0, 1, 0, 0, N'client_', NULL, CAST(N'2019-07-17T19:25:06.3074530' AS DateTime2), NULL, NULL, NULL, NULL, 300, 0) +IF NOT EXISTS ( SELECT * FROM [dbo].[Clients] WHERE [Id] = 1) INSERT [dbo].[Clients] ([Id], [Enabled], [ClientId], [ProtocolType], [RequireClientSecret], [ClientName], [Description], [ClientUri], [LogoUri], [RequireConsent], [AllowRememberConsent], [AlwaysIncludeUserClaimsInIdToken], [RequirePkce], [AllowPlainTextPkce], [AllowAccessTokensViaBrowser], [FrontChannelLogoutUri], [FrontChannelLogoutSessionRequired], [BackChannelLogoutUri], [BackChannelLogoutSessionRequired], [AllowOfflineAccess], [IdentityTokenLifetime], [AccessTokenLifetime], [AuthorizationCodeLifetime], [ConsentLifetime], [AbsoluteRefreshTokenLifetime], [SlidingRefreshTokenLifetime], [RefreshTokenUsage], [UpdateAccessTokenClaimsOnRefresh], [RefreshTokenExpiration], [AccessTokenType], [EnableLocalLogin], [IncludeJwtId], [AlwaysSendClientClaims], [ClientClaimsPrefix], [PairWiseSubjectSalt], [Created], [Updated], [LastAccessed], [UserSsoLifetime], [UserCodeType], [DeviceCodeLifetime], [NonEditable]) VALUES (1, 1, N'UserManagementClient', N'oidc', 1, N'Client 0 Client', NULL, N'http://identityserver.io', NULL, 1, 1, 0, 0, 0, 0, NULL, 1, NULL, 1, 0, 300, 3600, 300, NULL, 2592000, 1296000, 1, 0, 1, 0, 1, 0, 0, N'client_', NULL, CAST(N'2019-07-17T19:25:06.3074530' AS DateTime2), NULL, NULL, NULL, NULL, 300, 0) GO -- INSERT [dbo].[Clients] ([Id], [Enabled], [ClientId], [ProtocolType], [RequireClientSecret], [ClientName], [Description], [ClientUri], [LogoUri], [RequireConsent], [AllowRememberConsent], [AlwaysIncludeUserClaimsInIdToken], [RequirePkce], [AllowPlainTextPkce], [AllowAccessTokensViaBrowser], [FrontChannelLogoutUri], [FrontChannelLogoutSessionRequired], [BackChannelLogoutUri], [BackChannelLogoutSessionRequired], [AllowOfflineAccess], [IdentityTokenLifetime], [AccessTokenLifetime], [AuthorizationCodeLifetime], [ConsentLifetime], [AbsoluteRefreshTokenLifetime], [SlidingRefreshTokenLifetime], [RefreshTokenUsage], [UpdateAccessTokenClaimsOnRefresh], [RefreshTokenExpiration], [AccessTokenType], [EnableLocalLogin], [IncludeJwtId], [AlwaysSendClientClaims], [ClientClaimsPrefix], [PairWiseSubjectSalt], [Created], [Updated], [LastAccessed], [UserSsoLifetime], [UserCodeType], [DeviceCodeLifetime], [NonEditable]) VALUES (2, 1, N'TaskManagementServiceClient', N'oidc', 1, N'Client 17 Client', NULL, N'http://identityserver.io', NULL, 1, 1, 0, 0, 0, 0, NULL, 1, NULL, 1, 0, 300, 3600, 300, NULL, 2592000, 1296000, 1, 0, 1, 0, 1, 0, 0, N'client_', NULL, CAST(N'2019-07-17T19:25:06.4198847' AS DateTime2), NULL, NULL, NULL, NULL, 300, 0) -- GO @@ -54,46 +54,46 @@ SET IDENTITY_INSERT [dbo].[Clients] OFF GO SET IDENTITY_INSERT [dbo].[ClientGrantTypes] ON GO -INSERT [dbo].[ClientGrantTypes] ([Id], [GrantType], [ClientId]) VALUES (1, N'password', 1) -GO -INSERT [dbo].[ClientGrantTypes] ([Id], [GrantType], [ClientId]) VALUES (2, N'client_credentials', 9) -GO -INSERT [dbo].[ClientGrantTypes] ([Id], [GrantType], [ClientId]) VALUES (3, N'client_credentials', 11) -GO -INSERT [dbo].[ClientGrantTypes] ([Id], [GrantType], [ClientId]) VALUES (4, N'password', 8) -GO -INSERT [dbo].[ClientGrantTypes] ([Id], [GrantType], [ClientId]) VALUES (5, N'password', 12) -GO -INSERT [dbo].[ClientGrantTypes] ([Id], [GrantType], [ClientId]) VALUES (6, N'client_credentials', 13) -GO -INSERT [dbo].[ClientGrantTypes] ([Id], [GrantType], [ClientId]) VALUES (7, N'client_credentials', 7) -GO -INSERT [dbo].[ClientGrantTypes] ([Id], [GrantType], [ClientId]) VALUES (8, N'password', 14) -GO -INSERT [dbo].[ClientGrantTypes] ([Id], [GrantType], [ClientId]) VALUES (9, N'password', 20) -GO -INSERT [dbo].[ClientGrantTypes] ([Id], [GrantType], [ClientId]) VALUES (10, N'client_credentials', 19) -GO -INSERT [dbo].[ClientGrantTypes] ([Id], [GrantType], [ClientId]) VALUES (11, N'password', 10) -GO -INSERT [dbo].[ClientGrantTypes] ([Id], [GrantType], [ClientId]) VALUES (12, N'client_credentials', 15) -GO -INSERT [dbo].[ClientGrantTypes] ([Id], [GrantType], [ClientId]) VALUES (13, N'client_credentials', 5) -GO -INSERT [dbo].[ClientGrantTypes] ([Id], [GrantType], [ClientId]) VALUES (14, N'password', 16) -GO -INSERT [dbo].[ClientGrantTypes] ([Id], [GrantType], [ClientId]) VALUES (15, N'password', 4) -GO -INSERT [dbo].[ClientGrantTypes] ([Id], [GrantType], [ClientId]) VALUES (16, N'password', 6) -GO -INSERT [dbo].[ClientGrantTypes] ([Id], [GrantType], [ClientId]) VALUES (17, N'client_credentials', 17) -GO -INSERT [dbo].[ClientGrantTypes] ([Id], [GrantType], [ClientId]) VALUES (18, N'password', 18) -GO -INSERT [dbo].[ClientGrantTypes] ([Id], [GrantType], [ClientId]) VALUES (19, N'password', 2) -GO -INSERT [dbo].[ClientGrantTypes] ([Id], [GrantType], [ClientId]) VALUES (20, N'client_credentials', 3) +IF NOT EXISTS ( SELECT * FROM [dbo].[ClientGrantTypes] WHERE [Id] = 1) INSERT [dbo].[ClientGrantTypes] ([Id], [GrantType], [ClientId]) VALUES (1, N'password', 1) GO +-- INSERT [dbo].[ClientGrantTypes] ([Id], [GrantType], [ClientId]) VALUES (2, N'client_credentials', 9) +-- GO +-- INSERT [dbo].[ClientGrantTypes] ([Id], [GrantType], [ClientId]) VALUES (3, N'client_credentials', 11) +-- GO +-- INSERT [dbo].[ClientGrantTypes] ([Id], [GrantType], [ClientId]) VALUES (4, N'password', 8) +-- GO +-- INSERT [dbo].[ClientGrantTypes] ([Id], [GrantType], [ClientId]) VALUES (5, N'password', 12) +-- GO +-- INSERT [dbo].[ClientGrantTypes] ([Id], [GrantType], [ClientId]) VALUES (6, N'client_credentials', 13) +-- GO +-- INSERT [dbo].[ClientGrantTypes] ([Id], [GrantType], [ClientId]) VALUES (7, N'client_credentials', 7) +-- GO +-- INSERT [dbo].[ClientGrantTypes] ([Id], [GrantType], [ClientId]) VALUES (8, N'password', 14) +-- GO +-- INSERT [dbo].[ClientGrantTypes] ([Id], [GrantType], [ClientId]) VALUES (9, N'password', 20) +-- GO +-- INSERT [dbo].[ClientGrantTypes] ([Id], [GrantType], [ClientId]) VALUES (10, N'client_credentials', 19) +-- GO +-- INSERT [dbo].[ClientGrantTypes] ([Id], [GrantType], [ClientId]) VALUES (11, N'password', 10) +-- GO +-- INSERT [dbo].[ClientGrantTypes] ([Id], [GrantType], [ClientId]) VALUES (12, N'client_credentials', 15) +-- GO +-- INSERT [dbo].[ClientGrantTypes] ([Id], [GrantType], [ClientId]) VALUES (13, N'client_credentials', 5) +-- GO +-- INSERT [dbo].[ClientGrantTypes] ([Id], [GrantType], [ClientId]) VALUES (14, N'password', 16) +-- GO +-- INSERT [dbo].[ClientGrantTypes] ([Id], [GrantType], [ClientId]) VALUES (15, N'password', 4) +-- GO +-- INSERT [dbo].[ClientGrantTypes] ([Id], [GrantType], [ClientId]) VALUES (16, N'password', 6) +-- GO +-- INSERT [dbo].[ClientGrantTypes] ([Id], [GrantType], [ClientId]) VALUES (17, N'client_credentials', 17) +-- GO +-- INSERT [dbo].[ClientGrantTypes] ([Id], [GrantType], [ClientId]) VALUES (18, N'password', 18) +-- GO +-- INSERT [dbo].[ClientGrantTypes] ([Id], [GrantType], [ClientId]) VALUES (19, N'password', 2) +-- GO +-- INSERT [dbo].[ClientGrantTypes] ([Id], [GrantType], [ClientId]) VALUES (20, N'client_credentials', 3) +-- GO SET IDENTITY_INSERT [dbo].[ClientGrantTypes] OFF GO SET IDENTITY_INSERT [dbo].[ClientScopes] ON From 01ffd44bd7a29e53f3c004cf1a296952dedfc8ea Mon Sep 17 00:00:00 2001 From: Tigran TIKSN Torosyan Date: Sun, 11 Aug 2019 16:12:28 +0300 Subject: [PATCH 053/139] Update Data.sql --- Data.sql | 200 +++++++++++++++++++++++++++---------------------------- 1 file changed, 100 insertions(+), 100 deletions(-) diff --git a/Data.sql b/Data.sql index 2efc586..de6752f 100644 --- a/Data.sql +++ b/Data.sql @@ -98,205 +98,205 @@ SET IDENTITY_INSERT [dbo].[ClientGrantTypes] OFF GO SET IDENTITY_INSERT [dbo].[ClientScopes] ON GO -INSERT [dbo].[ClientScopes] ([Id], [Scope], [ClientId]) VALUES (1, N'openid', 4) +-- INSERT [dbo].[ClientScopes] ([Id], [Scope], [ClientId]) VALUES (1, N'openid', 4) GO -INSERT [dbo].[ClientScopes] ([Id], [Scope], [ClientId]) VALUES (2, N'api2.read_only', 8) +-- INSERT [dbo].[ClientScopes] ([Id], [Scope], [ClientId]) VALUES (2, N'api2.read_only', 8) GO -INSERT [dbo].[ClientScopes] ([Id], [Scope], [ClientId]) VALUES (3, N'api1', 8) +-- INSERT [dbo].[ClientScopes] ([Id], [Scope], [ClientId]) VALUES (3, N'api1', 8) GO -INSERT [dbo].[ClientScopes] ([Id], [Scope], [ClientId]) VALUES (4, N'email', 8) +-- INSERT [dbo].[ClientScopes] ([Id], [Scope], [ClientId]) VALUES (4, N'email', 8) GO -INSERT [dbo].[ClientScopes] ([Id], [Scope], [ClientId]) VALUES (5, N'profile', 8) +-- INSERT [dbo].[ClientScopes] ([Id], [Scope], [ClientId]) VALUES (5, N'profile', 8) GO -INSERT [dbo].[ClientScopes] ([Id], [Scope], [ClientId]) VALUES (6, N'openid', 8) +-- INSERT [dbo].[ClientScopes] ([Id], [Scope], [ClientId]) VALUES (6, N'openid', 8) GO -INSERT [dbo].[ClientScopes] ([Id], [Scope], [ClientId]) VALUES (7, N'api1', 3) +-- INSERT [dbo].[ClientScopes] ([Id], [Scope], [ClientId]) VALUES (7, N'api1', 3) GO -INSERT [dbo].[ClientScopes] ([Id], [Scope], [ClientId]) VALUES (8, N'api2.read_only', 3) +-- INSERT [dbo].[ClientScopes] ([Id], [Scope], [ClientId]) VALUES (8, N'api2.read_only', 3) GO -INSERT [dbo].[ClientScopes] ([Id], [Scope], [ClientId]) VALUES (9, N'profile', 19) +-- INSERT [dbo].[ClientScopes] ([Id], [Scope], [ClientId]) VALUES (9, N'profile', 19) GO -INSERT [dbo].[ClientScopes] ([Id], [Scope], [ClientId]) VALUES (10, N'api2.read_only', 9) +-- INSERT [dbo].[ClientScopes] ([Id], [Scope], [ClientId]) VALUES (10, N'api2.read_only', 9) GO -INSERT [dbo].[ClientScopes] ([Id], [Scope], [ClientId]) VALUES (11, N'api1', 9) +-- INSERT [dbo].[ClientScopes] ([Id], [Scope], [ClientId]) VALUES (11, N'api1', 9) GO -INSERT [dbo].[ClientScopes] ([Id], [Scope], [ClientId]) VALUES (12, N'email', 9) +-- INSERT [dbo].[ClientScopes] ([Id], [Scope], [ClientId]) VALUES (12, N'email', 9) GO -INSERT [dbo].[ClientScopes] ([Id], [Scope], [ClientId]) VALUES (13, N'profile', 9) +-- INSERT [dbo].[ClientScopes] ([Id], [Scope], [ClientId]) VALUES (13, N'profile', 9) GO -INSERT [dbo].[ClientScopes] ([Id], [Scope], [ClientId]) VALUES (14, N'email', 2) +-- INSERT [dbo].[ClientScopes] ([Id], [Scope], [ClientId]) VALUES (14, N'email', 2) GO -INSERT [dbo].[ClientScopes] ([Id], [Scope], [ClientId]) VALUES (15, N'openid', 9) +-- INSERT [dbo].[ClientScopes] ([Id], [Scope], [ClientId]) VALUES (15, N'openid', 9) GO -INSERT [dbo].[ClientScopes] ([Id], [Scope], [ClientId]) VALUES (16, N'api2.read_only', 20) +-- INSERT [dbo].[ClientScopes] ([Id], [Scope], [ClientId]) VALUES (16, N'api2.read_only', 20) GO -INSERT [dbo].[ClientScopes] ([Id], [Scope], [ClientId]) VALUES (17, N'api2.read_only', 10) +-- INSERT [dbo].[ClientScopes] ([Id], [Scope], [ClientId]) VALUES (17, N'api2.read_only', 10) GO -INSERT [dbo].[ClientScopes] ([Id], [Scope], [ClientId]) VALUES (18, N'api1', 10) +-- INSERT [dbo].[ClientScopes] ([Id], [Scope], [ClientId]) VALUES (18, N'api1', 10) GO -INSERT [dbo].[ClientScopes] ([Id], [Scope], [ClientId]) VALUES (19, N'email', 10) +-- INSERT [dbo].[ClientScopes] ([Id], [Scope], [ClientId]) VALUES (19, N'email', 10) GO -INSERT [dbo].[ClientScopes] ([Id], [Scope], [ClientId]) VALUES (20, N'openid', 19) +-- INSERT [dbo].[ClientScopes] ([Id], [Scope], [ClientId]) VALUES (20, N'openid', 19) GO -INSERT [dbo].[ClientScopes] ([Id], [Scope], [ClientId]) VALUES (21, N'email', 3) +-- INSERT [dbo].[ClientScopes] ([Id], [Scope], [ClientId]) VALUES (21, N'email', 3) GO -INSERT [dbo].[ClientScopes] ([Id], [Scope], [ClientId]) VALUES (22, N'openid', 7) +-- INSERT [dbo].[ClientScopes] ([Id], [Scope], [ClientId]) VALUES (22, N'openid', 7) GO -INSERT [dbo].[ClientScopes] ([Id], [Scope], [ClientId]) VALUES (23, N'profile', 4) +-- INSERT [dbo].[ClientScopes] ([Id], [Scope], [ClientId]) VALUES (23, N'profile', 4) GO -INSERT [dbo].[ClientScopes] ([Id], [Scope], [ClientId]) VALUES (24, N'api2.read_only', 2) +-- INSERT [dbo].[ClientScopes] ([Id], [Scope], [ClientId]) VALUES (24, N'api2.read_only', 2) GO -INSERT [dbo].[ClientScopes] ([Id], [Scope], [ClientId]) VALUES (25, N'api2.read_only', 5) +-- INSERT [dbo].[ClientScopes] ([Id], [Scope], [ClientId]) VALUES (25, N'api2.read_only', 5) GO -INSERT [dbo].[ClientScopes] ([Id], [Scope], [ClientId]) VALUES (26, N'api1', 5) +-- INSERT [dbo].[ClientScopes] ([Id], [Scope], [ClientId]) VALUES (26, N'api1', 5) GO -INSERT [dbo].[ClientScopes] ([Id], [Scope], [ClientId]) VALUES (27, N'email', 4) +-- INSERT [dbo].[ClientScopes] ([Id], [Scope], [ClientId]) VALUES (27, N'email', 4) GO -INSERT [dbo].[ClientScopes] ([Id], [Scope], [ClientId]) VALUES (28, N'email', 5) +-- INSERT [dbo].[ClientScopes] ([Id], [Scope], [ClientId]) VALUES (28, N'email', 5) GO -INSERT [dbo].[ClientScopes] ([Id], [Scope], [ClientId]) VALUES (29, N'profile', 5) +-- INSERT [dbo].[ClientScopes] ([Id], [Scope], [ClientId]) VALUES (29, N'profile', 5) GO -INSERT [dbo].[ClientScopes] ([Id], [Scope], [ClientId]) VALUES (30, N'openid', 5) +-- INSERT [dbo].[ClientScopes] ([Id], [Scope], [ClientId]) VALUES (30, N'openid', 5) GO -INSERT [dbo].[ClientScopes] ([Id], [Scope], [ClientId]) VALUES (31, N'api1', 4) +-- INSERT [dbo].[ClientScopes] ([Id], [Scope], [ClientId]) VALUES (31, N'api1', 4) GO -INSERT [dbo].[ClientScopes] ([Id], [Scope], [ClientId]) VALUES (32, N'api2.read_only', 6) +-- INSERT [dbo].[ClientScopes] ([Id], [Scope], [ClientId]) VALUES (32, N'api2.read_only', 6) GO -INSERT [dbo].[ClientScopes] ([Id], [Scope], [ClientId]) VALUES (33, N'profile', 3) +-- INSERT [dbo].[ClientScopes] ([Id], [Scope], [ClientId]) VALUES (33, N'profile', 3) GO -INSERT [dbo].[ClientScopes] ([Id], [Scope], [ClientId]) VALUES (34, N'api1', 6) +-- INSERT [dbo].[ClientScopes] ([Id], [Scope], [ClientId]) VALUES (34, N'api1', 6) GO -INSERT [dbo].[ClientScopes] ([Id], [Scope], [ClientId]) VALUES (35, N'email', 6) +-- INSERT [dbo].[ClientScopes] ([Id], [Scope], [ClientId]) VALUES (35, N'email', 6) GO -INSERT [dbo].[ClientScopes] ([Id], [Scope], [ClientId]) VALUES (36, N'profile', 6) +-- INSERT [dbo].[ClientScopes] ([Id], [Scope], [ClientId]) VALUES (36, N'profile', 6) GO -INSERT [dbo].[ClientScopes] ([Id], [Scope], [ClientId]) VALUES (37, N'openid', 6) +-- INSERT [dbo].[ClientScopes] ([Id], [Scope], [ClientId]) VALUES (37, N'openid', 6) GO -INSERT [dbo].[ClientScopes] ([Id], [Scope], [ClientId]) VALUES (38, N'api1', 2) +-- INSERT [dbo].[ClientScopes] ([Id], [Scope], [ClientId]) VALUES (38, N'api1', 2) GO -INSERT [dbo].[ClientScopes] ([Id], [Scope], [ClientId]) VALUES (39, N'openid', 3) +-- INSERT [dbo].[ClientScopes] ([Id], [Scope], [ClientId]) VALUES (39, N'openid', 3) GO -INSERT [dbo].[ClientScopes] ([Id], [Scope], [ClientId]) VALUES (40, N'api2.read_only', 7) +-- INSERT [dbo].[ClientScopes] ([Id], [Scope], [ClientId]) VALUES (40, N'api2.read_only', 7) GO -INSERT [dbo].[ClientScopes] ([Id], [Scope], [ClientId]) VALUES (41, N'api1', 7) +-- INSERT [dbo].[ClientScopes] ([Id], [Scope], [ClientId]) VALUES (41, N'api1', 7) GO -INSERT [dbo].[ClientScopes] ([Id], [Scope], [ClientId]) VALUES (42, N'email', 7) +-- INSERT [dbo].[ClientScopes] ([Id], [Scope], [ClientId]) VALUES (42, N'email', 7) GO -INSERT [dbo].[ClientScopes] ([Id], [Scope], [ClientId]) VALUES (43, N'profile', 7) +-- INSERT [dbo].[ClientScopes] ([Id], [Scope], [ClientId]) VALUES (43, N'profile', 7) GO -INSERT [dbo].[ClientScopes] ([Id], [Scope], [ClientId]) VALUES (44, N'api2.read_only', 4) +-- INSERT [dbo].[ClientScopes] ([Id], [Scope], [ClientId]) VALUES (44, N'api2.read_only', 4) GO -INSERT [dbo].[ClientScopes] ([Id], [Scope], [ClientId]) VALUES (45, N'profile', 10) +-- INSERT [dbo].[ClientScopes] ([Id], [Scope], [ClientId]) VALUES (45, N'profile', 10) GO -INSERT [dbo].[ClientScopes] ([Id], [Scope], [ClientId]) VALUES (46, N'api1', 11) +-- INSERT [dbo].[ClientScopes] ([Id], [Scope], [ClientId]) VALUES (46, N'api1', 11) GO -INSERT [dbo].[ClientScopes] ([Id], [Scope], [ClientId]) VALUES (47, N'email', 19) +-- INSERT [dbo].[ClientScopes] ([Id], [Scope], [ClientId]) VALUES (47, N'email', 19) GO -INSERT [dbo].[ClientScopes] ([Id], [Scope], [ClientId]) VALUES (48, N'openid', 20) +-- INSERT [dbo].[ClientScopes] ([Id], [Scope], [ClientId]) VALUES (48, N'openid', 20) GO -INSERT [dbo].[ClientScopes] ([Id], [Scope], [ClientId]) VALUES (49, N'api2.read_only', 16) +-- INSERT [dbo].[ClientScopes] ([Id], [Scope], [ClientId]) VALUES (49, N'api2.read_only', 16) GO -INSERT [dbo].[ClientScopes] ([Id], [Scope], [ClientId]) VALUES (50, N'api1', 16) +-- INSERT [dbo].[ClientScopes] ([Id], [Scope], [ClientId]) VALUES (50, N'api1', 16) GO -INSERT [dbo].[ClientScopes] ([Id], [Scope], [ClientId]) VALUES (51, N'email', 16) +-- INSERT [dbo].[ClientScopes] ([Id], [Scope], [ClientId]) VALUES (51, N'email', 16) GO -INSERT [dbo].[ClientScopes] ([Id], [Scope], [ClientId]) VALUES (52, N'profile', 16) +-- INSERT [dbo].[ClientScopes] ([Id], [Scope], [ClientId]) VALUES (52, N'profile', 16) GO -INSERT [dbo].[ClientScopes] ([Id], [Scope], [ClientId]) VALUES (53, N'openid', 16) +-- INSERT [dbo].[ClientScopes] ([Id], [Scope], [ClientId]) VALUES (53, N'openid', 16) GO -INSERT [dbo].[ClientScopes] ([Id], [Scope], [ClientId]) VALUES (54, N'profile', 20) +-- INSERT [dbo].[ClientScopes] ([Id], [Scope], [ClientId]) VALUES (54, N'profile', 20) GO -INSERT [dbo].[ClientScopes] ([Id], [Scope], [ClientId]) VALUES (55, N'api2.read_only', 17) +-- INSERT [dbo].[ClientScopes] ([Id], [Scope], [ClientId]) VALUES (55, N'api2.read_only', 17) GO -INSERT [dbo].[ClientScopes] ([Id], [Scope], [ClientId]) VALUES (56, N'api1', 17) +-- INSERT [dbo].[ClientScopes] ([Id], [Scope], [ClientId]) VALUES (56, N'api1', 17) GO -INSERT [dbo].[ClientScopes] ([Id], [Scope], [ClientId]) VALUES (57, N'email', 17) +-- INSERT [dbo].[ClientScopes] ([Id], [Scope], [ClientId]) VALUES (57, N'email', 17) GO -INSERT [dbo].[ClientScopes] ([Id], [Scope], [ClientId]) VALUES (58, N'profile', 17) +-- INSERT [dbo].[ClientScopes] ([Id], [Scope], [ClientId]) VALUES (58, N'profile', 17) GO -INSERT [dbo].[ClientScopes] ([Id], [Scope], [ClientId]) VALUES (59, N'openid', 15) +-- INSERT [dbo].[ClientScopes] ([Id], [Scope], [ClientId]) VALUES (59, N'openid', 15) GO -INSERT [dbo].[ClientScopes] ([Id], [Scope], [ClientId]) VALUES (60, N'openid', 17) +-- INSERT [dbo].[ClientScopes] ([Id], [Scope], [ClientId]) VALUES (60, N'openid', 17) GO -INSERT [dbo].[ClientScopes] ([Id], [Scope], [ClientId]) VALUES (61, N'api2.read_only', 18) +-- INSERT [dbo].[ClientScopes] ([Id], [Scope], [ClientId]) VALUES (61, N'api2.read_only', 18) GO -INSERT [dbo].[ClientScopes] ([Id], [Scope], [ClientId]) VALUES (62, N'api1', 18) +-- INSERT [dbo].[ClientScopes] ([Id], [Scope], [ClientId]) VALUES (62, N'api1', 18) GO -INSERT [dbo].[ClientScopes] ([Id], [Scope], [ClientId]) VALUES (63, N'email', 18) +-- INSERT [dbo].[ClientScopes] ([Id], [Scope], [ClientId]) VALUES (63, N'email', 18) GO -INSERT [dbo].[ClientScopes] ([Id], [Scope], [ClientId]) VALUES (64, N'profile', 18) +-- INSERT [dbo].[ClientScopes] ([Id], [Scope], [ClientId]) VALUES (64, N'profile', 18) GO -INSERT [dbo].[ClientScopes] ([Id], [Scope], [ClientId]) VALUES (65, N'openid', 18) +-- INSERT [dbo].[ClientScopes] ([Id], [Scope], [ClientId]) VALUES (65, N'openid', 18) GO -INSERT [dbo].[ClientScopes] ([Id], [Scope], [ClientId]) VALUES (66, N'api1', 20) +-- INSERT [dbo].[ClientScopes] ([Id], [Scope], [ClientId]) VALUES (66, N'api1', 20) GO -INSERT [dbo].[ClientScopes] ([Id], [Scope], [ClientId]) VALUES (67, N'api2.read_only', 1) +IF NOT EXISTS ( SELECT * FROM [dbo].[ClientScopes] WHERE [Id] = 67) INSERT [dbo].[ClientScopes] ([Id], [Scope], [ClientId]) VALUES (67, N'api2.read_only', 1) GO -INSERT [dbo].[ClientScopes] ([Id], [Scope], [ClientId]) VALUES (68, N'api1', 1) +IF NOT EXISTS ( SELECT * FROM [dbo].[ClientScopes] WHERE [Id] = 68) INSERT [dbo].[ClientScopes] ([Id], [Scope], [ClientId]) VALUES (68, N'api1', 1) GO -INSERT [dbo].[ClientScopes] ([Id], [Scope], [ClientId]) VALUES (69, N'email', 1) +IF NOT EXISTS ( SELECT * FROM [dbo].[ClientScopes] WHERE [Id] = 69) INSERT [dbo].[ClientScopes] ([Id], [Scope], [ClientId]) VALUES (69, N'email', 1) GO -INSERT [dbo].[ClientScopes] ([Id], [Scope], [ClientId]) VALUES (70, N'profile', 1) +IF NOT EXISTS ( SELECT * FROM [dbo].[ClientScopes] WHERE [Id] = 70) INSERT [dbo].[ClientScopes] ([Id], [Scope], [ClientId]) VALUES (70, N'profile', 1) GO -INSERT [dbo].[ClientScopes] ([Id], [Scope], [ClientId]) VALUES (71, N'openid', 1) +IF NOT EXISTS ( SELECT * FROM [dbo].[ClientScopes] WHERE [Id] = 71) INSERT [dbo].[ClientScopes] ([Id], [Scope], [ClientId]) VALUES (71, N'openid', 1) GO -INSERT [dbo].[ClientScopes] ([Id], [Scope], [ClientId]) VALUES (72, N'email', 20) +-- INSERT [dbo].[ClientScopes] ([Id], [Scope], [ClientId]) VALUES (72, N'email', 20) GO -INSERT [dbo].[ClientScopes] ([Id], [Scope], [ClientId]) VALUES (73, N'openid', 10) +-- INSERT [dbo].[ClientScopes] ([Id], [Scope], [ClientId]) VALUES (73, N'openid', 10) GO -INSERT [dbo].[ClientScopes] ([Id], [Scope], [ClientId]) VALUES (74, N'profile', 15) +-- INSERT [dbo].[ClientScopes] ([Id], [Scope], [ClientId]) VALUES (74, N'profile', 15) GO -INSERT [dbo].[ClientScopes] ([Id], [Scope], [ClientId]) VALUES (75, N'api1', 15) +-- INSERT [dbo].[ClientScopes] ([Id], [Scope], [ClientId]) VALUES (75, N'api1', 15) GO -INSERT [dbo].[ClientScopes] ([Id], [Scope], [ClientId]) VALUES (76, N'api2.read_only', 11) +-- INSERT [dbo].[ClientScopes] ([Id], [Scope], [ClientId]) VALUES (76, N'api2.read_only', 11) GO -INSERT [dbo].[ClientScopes] ([Id], [Scope], [ClientId]) VALUES (77, N'openid', 2) +-- INSERT [dbo].[ClientScopes] ([Id], [Scope], [ClientId]) VALUES (77, N'openid', 2) GO -INSERT [dbo].[ClientScopes] ([Id], [Scope], [ClientId]) VALUES (78, N'email', 11) +-- INSERT [dbo].[ClientScopes] ([Id], [Scope], [ClientId]) VALUES (78, N'email', 11) GO -INSERT [dbo].[ClientScopes] ([Id], [Scope], [ClientId]) VALUES (79, N'profile', 11) +-- INSERT [dbo].[ClientScopes] ([Id], [Scope], [ClientId]) VALUES (79, N'profile', 11) GO -INSERT [dbo].[ClientScopes] ([Id], [Scope], [ClientId]) VALUES (80, N'openid', 11) +-- INSERT [dbo].[ClientScopes] ([Id], [Scope], [ClientId]) VALUES (80, N'openid', 11) GO -INSERT [dbo].[ClientScopes] ([Id], [Scope], [ClientId]) VALUES (81, N'api1', 19) +-- INSERT [dbo].[ClientScopes] ([Id], [Scope], [ClientId]) VALUES (81, N'api1', 19) GO -INSERT [dbo].[ClientScopes] ([Id], [Scope], [ClientId]) VALUES (82, N'api2.read_only', 12) +-- INSERT [dbo].[ClientScopes] ([Id], [Scope], [ClientId]) VALUES (82, N'api2.read_only', 12) GO -INSERT [dbo].[ClientScopes] ([Id], [Scope], [ClientId]) VALUES (83, N'api1', 12) +-- INSERT [dbo].[ClientScopes] ([Id], [Scope], [ClientId]) VALUES (83, N'api1', 12) GO -INSERT [dbo].[ClientScopes] ([Id], [Scope], [ClientId]) VALUES (84, N'email', 12) +-- INSERT [dbo].[ClientScopes] ([Id], [Scope], [ClientId]) VALUES (84, N'email', 12) GO -INSERT [dbo].[ClientScopes] ([Id], [Scope], [ClientId]) VALUES (85, N'profile', 12) +-- INSERT [dbo].[ClientScopes] ([Id], [Scope], [ClientId]) VALUES (85, N'profile', 12) GO -INSERT [dbo].[ClientScopes] ([Id], [Scope], [ClientId]) VALUES (86, N'openid', 12) +-- INSERT [dbo].[ClientScopes] ([Id], [Scope], [ClientId]) VALUES (86, N'openid', 12) GO -INSERT [dbo].[ClientScopes] ([Id], [Scope], [ClientId]) VALUES (87, N'api2.read_only', 19) +-- INSERT [dbo].[ClientScopes] ([Id], [Scope], [ClientId]) VALUES (87, N'api2.read_only', 19) GO -INSERT [dbo].[ClientScopes] ([Id], [Scope], [ClientId]) VALUES (88, N'api2.read_only', 13) +-- INSERT [dbo].[ClientScopes] ([Id], [Scope], [ClientId]) VALUES (88, N'api2.read_only', 13) GO -INSERT [dbo].[ClientScopes] ([Id], [Scope], [ClientId]) VALUES (89, N'api1', 13) +-- INSERT [dbo].[ClientScopes] ([Id], [Scope], [ClientId]) VALUES (89, N'api1', 13) GO -INSERT [dbo].[ClientScopes] ([Id], [Scope], [ClientId]) VALUES (90, N'email', 13) +-- INSERT [dbo].[ClientScopes] ([Id], [Scope], [ClientId]) VALUES (90, N'email', 13) GO -INSERT [dbo].[ClientScopes] ([Id], [Scope], [ClientId]) VALUES (91, N'profile', 13) +-- INSERT [dbo].[ClientScopes] ([Id], [Scope], [ClientId]) VALUES (91, N'profile', 13) GO -INSERT [dbo].[ClientScopes] ([Id], [Scope], [ClientId]) VALUES (92, N'openid', 13) +-- INSERT [dbo].[ClientScopes] ([Id], [Scope], [ClientId]) VALUES (92, N'openid', 13) GO -INSERT [dbo].[ClientScopes] ([Id], [Scope], [ClientId]) VALUES (93, N'api2.read_only', 14) +-- INSERT [dbo].[ClientScopes] ([Id], [Scope], [ClientId]) VALUES (93, N'api2.read_only', 14) GO -INSERT [dbo].[ClientScopes] ([Id], [Scope], [ClientId]) VALUES (94, N'api1', 14) +-- INSERT [dbo].[ClientScopes] ([Id], [Scope], [ClientId]) VALUES (94, N'api1', 14) GO -INSERT [dbo].[ClientScopes] ([Id], [Scope], [ClientId]) VALUES (95, N'email', 14) +-- INSERT [dbo].[ClientScopes] ([Id], [Scope], [ClientId]) VALUES (95, N'email', 14) GO -INSERT [dbo].[ClientScopes] ([Id], [Scope], [ClientId]) VALUES (96, N'profile', 14) +-- INSERT [dbo].[ClientScopes] ([Id], [Scope], [ClientId]) VALUES (96, N'profile', 14) GO -INSERT [dbo].[ClientScopes] ([Id], [Scope], [ClientId]) VALUES (97, N'openid', 14) +-- INSERT [dbo].[ClientScopes] ([Id], [Scope], [ClientId]) VALUES (97, N'openid', 14) GO -INSERT [dbo].[ClientScopes] ([Id], [Scope], [ClientId]) VALUES (98, N'api2.read_only', 15) +-- INSERT [dbo].[ClientScopes] ([Id], [Scope], [ClientId]) VALUES (98, N'api2.read_only', 15) GO -INSERT [dbo].[ClientScopes] ([Id], [Scope], [ClientId]) VALUES (99, N'email', 15) +-- INSERT [dbo].[ClientScopes] ([Id], [Scope], [ClientId]) VALUES (99, N'email', 15) GO -INSERT [dbo].[ClientScopes] ([Id], [Scope], [ClientId]) VALUES (100, N'profile', 2) +-- INSERT [dbo].[ClientScopes] ([Id], [Scope], [ClientId]) VALUES (100, N'profile', 2) GO SET IDENTITY_INSERT [dbo].[ClientScopes] OFF GO From f8acf0c2c381dd69dc893ce52f051ca1df1f34a1 Mon Sep 17 00:00:00 2001 From: Tigran TIKSN Torosyan Date: Sun, 11 Aug 2019 16:14:29 +0300 Subject: [PATCH 054/139] Update Data.sql --- Data.sql | 40 ++++++++++++++++++++-------------------- 1 file changed, 20 insertions(+), 20 deletions(-) diff --git a/Data.sql b/Data.sql index de6752f..a7c3ada 100644 --- a/Data.sql +++ b/Data.sql @@ -302,45 +302,45 @@ SET IDENTITY_INSERT [dbo].[ClientScopes] OFF GO SET IDENTITY_INSERT [dbo].[ClientSecrets] ON GO -INSERT [dbo].[ClientSecrets] ([Id], [Description], [Value], [Expiration], [Type], [Created], [ClientId]) VALUES (1, N'Client 18 description', N'z9Vebms2sHHExOJBL2DxERzL1c0/UqE/NYcgMMhNjjWxxKohGhj9mxtIG9LnUSDYDTsEA82Zxn0zHzjkFoCodzaskGq2z/cEzTqy9jbOWORnRyOMSIpoF/4s7frfGYSbn6ScOsG1Ij1E/zaT589GZMdUfM9cHC6rQ3hsieL8JbO1F1eSMh0isSXmR0lU1S8u5ogyipy1PoN18PZISZhaR9qC3tB4tDGqMcupdtTlV25JPaNZyZoX/9jTHEIm2miMiwBv0fdetTFWiFjRC8iukJmI/gv1AX0/at73pJjvg1diHerUdYV36odyAkFBRvMQJYuonttcl4qCL2YYZxCYZw==', CAST(N'2020-07-17T22:25:06.4201984' AS DateTime2), N'SharedSecret', CAST(N'2019-07-17T19:25:06.4203366' AS DateTime2), 19) +-- INSERT [dbo].[ClientSecrets] ([Id], [Description], [Value], [Expiration], [Type], [Created], [ClientId]) VALUES (1, N'Client 18 description', N'z9Vebms2sHHExOJBL2DxERzL1c0/UqE/NYcgMMhNjjWxxKohGhj9mxtIG9LnUSDYDTsEA82Zxn0zHzjkFoCodzaskGq2z/cEzTqy9jbOWORnRyOMSIpoF/4s7frfGYSbn6ScOsG1Ij1E/zaT589GZMdUfM9cHC6rQ3hsieL8JbO1F1eSMh0isSXmR0lU1S8u5ogyipy1PoN18PZISZhaR9qC3tB4tDGqMcupdtTlV25JPaNZyZoX/9jTHEIm2miMiwBv0fdetTFWiFjRC8iukJmI/gv1AX0/at73pJjvg1diHerUdYV36odyAkFBRvMQJYuonttcl4qCL2YYZxCYZw==', CAST(N'2020-07-17T22:25:06.4201984' AS DateTime2), N'SharedSecret', CAST(N'2019-07-17T19:25:06.4203366' AS DateTime2), 19) GO -INSERT [dbo].[ClientSecrets] ([Id], [Description], [Value], [Expiration], [Type], [Created], [ClientId]) VALUES (2, N'Client 17 description', N'bQxbOPvos7yWQVKXlSmVv6dS8DZeBsBq+02dtWTrh9R0XJdx9m+VSpErh2I475Bn5uIo/6uZnWdM8D2uS/1Yqrp+IjiRJMk3vaalM39dMgu8Ns+Cw4co2r8wJQUy5/+T09yousxY1cIZ8UIF9Gro7r4x8RQu1uczVUh5Yf/DBdamEl+itXg+ZGAMadFEI+ZVRzZHAPXqZf31dWWE33PCVetsX+IKRjhF8o20IWwV7jJhIxrIewThvK1irEATuoTsShPm2MMESgH+Ag1nNkOQ4IYyIrtZ+trni6I1p5n4MjgIx9dZLxVuXdgYynn2eYZp0sy54JfJkk85/k0hz6NnBQ==', CAST(N'2020-07-17T22:25:06.4197061' AS DateTime2), N'SharedSecret', CAST(N'2019-07-17T19:25:06.4198859' AS DateTime2), 2) +-- INSERT [dbo].[ClientSecrets] ([Id], [Description], [Value], [Expiration], [Type], [Created], [ClientId]) VALUES (2, N'Client 17 description', N'bQxbOPvos7yWQVKXlSmVv6dS8DZeBsBq+02dtWTrh9R0XJdx9m+VSpErh2I475Bn5uIo/6uZnWdM8D2uS/1Yqrp+IjiRJMk3vaalM39dMgu8Ns+Cw4co2r8wJQUy5/+T09yousxY1cIZ8UIF9Gro7r4x8RQu1uczVUh5Yf/DBdamEl+itXg+ZGAMadFEI+ZVRzZHAPXqZf31dWWE33PCVetsX+IKRjhF8o20IWwV7jJhIxrIewThvK1irEATuoTsShPm2MMESgH+Ag1nNkOQ4IYyIrtZ+trni6I1p5n4MjgIx9dZLxVuXdgYynn2eYZp0sy54JfJkk85/k0hz6NnBQ==', CAST(N'2020-07-17T22:25:06.4197061' AS DateTime2), N'SharedSecret', CAST(N'2019-07-17T19:25:06.4198859' AS DateTime2), 2) GO -INSERT [dbo].[ClientSecrets] ([Id], [Description], [Value], [Expiration], [Type], [Created], [ClientId]) VALUES (3, N'Client 9 description', N'JGLbfKw51tDO7TQ4Q047tIyCUUsohntMDyxIGxJPq5Wg4FeJX0ZcNTXSr2IGT3Xxe5VJidyIkZ3mj21/8bq9f0KfmGL2slRGJRsWVtcZRcC3VqB9BSK4F0+5otDZ3EN6FC8gZ7cT+slAA2PAcjvGzUmtyJoaQHof5oATPA+EbEjYm0Gn+d4Io1vWPAG++KUT89WGLBSoX9O1AIA3AL25u5cb59b6HtNrpCQ+QwR4Ye3a/0k5/kAzLztu8vld0aOeHYBqohDPGdQBG4jwaRvPPJ6SXAB0gL1W57iaiyzaDdKAoCaDDr7dC+Z0N+O4Q8Ufn7Vay3WjKZzDE7tYNI2oJg==', CAST(N'2020-07-17T22:25:06.4134142' AS DateTime2), N'SharedSecret', CAST(N'2019-07-17T19:25:06.4136447' AS DateTime2), 10) +-- INSERT [dbo].[ClientSecrets] ([Id], [Description], [Value], [Expiration], [Type], [Created], [ClientId]) VALUES (3, N'Client 9 description', N'JGLbfKw51tDO7TQ4Q047tIyCUUsohntMDyxIGxJPq5Wg4FeJX0ZcNTXSr2IGT3Xxe5VJidyIkZ3mj21/8bq9f0KfmGL2slRGJRsWVtcZRcC3VqB9BSK4F0+5otDZ3EN6FC8gZ7cT+slAA2PAcjvGzUmtyJoaQHof5oATPA+EbEjYm0Gn+d4Io1vWPAG++KUT89WGLBSoX9O1AIA3AL25u5cb59b6HtNrpCQ+QwR4Ye3a/0k5/kAzLztu8vld0aOeHYBqohDPGdQBG4jwaRvPPJ6SXAB0gL1W57iaiyzaDdKAoCaDDr7dC+Z0N+O4Q8Ufn7Vay3WjKZzDE7tYNI2oJg==', CAST(N'2020-07-17T22:25:06.4134142' AS DateTime2), N'SharedSecret', CAST(N'2019-07-17T19:25:06.4136447' AS DateTime2), 10) GO -INSERT [dbo].[ClientSecrets] ([Id], [Description], [Value], [Expiration], [Type], [Created], [ClientId]) VALUES (4, N'Client 15 description', N'ghQ3BhumhFuVh6wSn7eD4yFhSC3hBbtzvonhnekw6v5xqn7JKkmstUnr/+5fZBdPoXnRiAhckH1Yw0eRxOdyZJytoPQ5urnXtZPk9gbNFFpykvtvX2H2FRkAcGYCGvBieJpRscMiFue/+dN1eJp2i6/tHzLrAwQ7t4vbOElT1ZqigX1re2KXT3wTr2aOgJ1/iuS2FPu+dnWWFvk3R96dbCM40vYdCw9NVs+12FOerTfuW65lncGf5AoH1WVpXweedUNCVa6mYn/VaL4rCJ4i+GnCSewvOM5ime3rFTWq5PbIF2IPW1eJR/kvjzQCc9xs5N38phYbbjx04LzAukxJKw==', CAST(N'2020-07-17T22:25:06.4170704' AS DateTime2), N'SharedSecret', CAST(N'2019-07-17T19:25:06.4172196' AS DateTime2), 4) +-- INSERT [dbo].[ClientSecrets] ([Id], [Description], [Value], [Expiration], [Type], [Created], [ClientId]) VALUES (4, N'Client 15 description', N'ghQ3BhumhFuVh6wSn7eD4yFhSC3hBbtzvonhnekw6v5xqn7JKkmstUnr/+5fZBdPoXnRiAhckH1Yw0eRxOdyZJytoPQ5urnXtZPk9gbNFFpykvtvX2H2FRkAcGYCGvBieJpRscMiFue/+dN1eJp2i6/tHzLrAwQ7t4vbOElT1ZqigX1re2KXT3wTr2aOgJ1/iuS2FPu+dnWWFvk3R96dbCM40vYdCw9NVs+12FOerTfuW65lncGf5AoH1WVpXweedUNCVa6mYn/VaL4rCJ4i+GnCSewvOM5ime3rFTWq5PbIF2IPW1eJR/kvjzQCc9xs5N38phYbbjx04LzAukxJKw==', CAST(N'2020-07-17T22:25:06.4170704' AS DateTime2), N'SharedSecret', CAST(N'2019-07-17T19:25:06.4172196' AS DateTime2), 4) GO -INSERT [dbo].[ClientSecrets] ([Id], [Description], [Value], [Expiration], [Type], [Created], [ClientId]) VALUES (5, N'User Management Client', N'HR7FsThALW0k6MD1Bo+PLOaJss2Bz7RiTsWIWlsIs+veTtrVf6HmBoY13NRORcWMhvRVr1G1m01pY2NyuNMSHDTUF7e1ua1FoqtGTPPgEwgA+9NmsgSaKLOMbBw+c06zIsCgei4N18xHEAylbk5aiVBacr3/rGkvOu4EKE2RBi5dkykzP5ja8yQGH6L49LlkMuLL5AGQs3ZWcEA/CK5/tgndSNslJ0m3f3+Y+IzGN0U0oPVqxSItzOCz3M9Ymup1h2mZGqzePwuYFGSC97rpkDn7Cmi5FPDmsHv6cUt6XuWVI3EjLR2YVmDq0rC+q9QlykuWXY+BvHJ4smkx487AHQ==', CAST(N'2020-07-17T22:25:06.0026121' AS DateTime2), N'SharedSecret', CAST(N'2019-07-17T19:25:06.3078730' AS DateTime2), 1) +IF NOT EXISTS ( SELECT * FROM [dbo].[ClientSecrets] WHERE [Id] = 5) INSERT [dbo].[ClientSecrets] ([Id], [Description], [Value], [Expiration], [Type], [Created], [ClientId]) VALUES (5, N'User Management Client', N'HR7FsThALW0k6MD1Bo+PLOaJss2Bz7RiTsWIWlsIs+veTtrVf6HmBoY13NRORcWMhvRVr1G1m01pY2NyuNMSHDTUF7e1ua1FoqtGTPPgEwgA+9NmsgSaKLOMbBw+c06zIsCgei4N18xHEAylbk5aiVBacr3/rGkvOu4EKE2RBi5dkykzP5ja8yQGH6L49LlkMuLL5AGQs3ZWcEA/CK5/tgndSNslJ0m3f3+Y+IzGN0U0oPVqxSItzOCz3M9Ymup1h2mZGqzePwuYFGSC97rpkDn7Cmi5FPDmsHv6cUt6XuWVI3EjLR2YVmDq0rC+q9QlykuWXY+BvHJ4smkx487AHQ==', CAST(N'2020-07-17T22:25:06.0026121' AS DateTime2), N'SharedSecret', CAST(N'2019-07-17T19:25:06.3078730' AS DateTime2), 1) GO -INSERT [dbo].[ClientSecrets] ([Id], [Description], [Value], [Expiration], [Type], [Created], [ClientId]) VALUES (6, N'Client 1 description', N'tX/t1EnFYxtitAfOQkAoBabVpv/kAVUTZ/+rerNmcpIqtPo+vQDbBOh6+tt57S83imSLDifAObQq2W1KGuho+0J1pI5F6Uel+qEWagZ5mXnPc+9P22RraXtGFOSSkOr/Ev+YBEih8qAc5ROFqc6tsD/zeqb4GCDeCTsT/9RjE2m2FlgH4ZQxLoFPM/VQ5r+smGSknxZEB/neuvsNjfPLuNKqzpJ2ps6qwkwlqeUqjiN7ZmZwv3RTcg9eKCeZJKCNg3ojpRgsNfKV+dzJHl0UtCzYkSeMW/leV1uDGH2nEZ6rlyZqBugKTzF028aXiVOySXT7wZN5ASiAxU68qR117Q==', CAST(N'2020-07-17T22:25:06.4022280' AS DateTime2), N'SharedSecret', CAST(N'2019-07-17T19:25:06.4034719' AS DateTime2), 18) +-- INSERT [dbo].[ClientSecrets] ([Id], [Description], [Value], [Expiration], [Type], [Created], [ClientId]) VALUES (6, N'Client 1 description', N'tX/t1EnFYxtitAfOQkAoBabVpv/kAVUTZ/+rerNmcpIqtPo+vQDbBOh6+tt57S83imSLDifAObQq2W1KGuho+0J1pI5F6Uel+qEWagZ5mXnPc+9P22RraXtGFOSSkOr/Ev+YBEih8qAc5ROFqc6tsD/zeqb4GCDeCTsT/9RjE2m2FlgH4ZQxLoFPM/VQ5r+smGSknxZEB/neuvsNjfPLuNKqzpJ2ps6qwkwlqeUqjiN7ZmZwv3RTcg9eKCeZJKCNg3ojpRgsNfKV+dzJHl0UtCzYkSeMW/leV1uDGH2nEZ6rlyZqBugKTzF028aXiVOySXT7wZN5ASiAxU68qR117Q==', CAST(N'2020-07-17T22:25:06.4022280' AS DateTime2), N'SharedSecret', CAST(N'2019-07-17T19:25:06.4034719' AS DateTime2), 18) GO -INSERT [dbo].[ClientSecrets] ([Id], [Description], [Value], [Expiration], [Type], [Created], [ClientId]) VALUES (7, N'Client 2 description', N'5z4ehzeprUPNQvYYfzPHzQjRzgisUAoxlv7qQZlOpRP+7d5Yasx7oMa39FGD6KhN/oC02E5sQZcz7PE4v2yqfpziGZFVbmM7Vi5C9Vu5rq1VnEMYms3FkaxGJH3bQuBaDHW0oc8W948deIIgKkw7ej5E4iIokeTOHIjkD0nlYBNN6OjmBA3eP6Sz+iJLpWdgCqo/ll++MXqR5oRHMehGOBdu0kJjVXUxZqN9dJfBg3cghASepcm0j7ZtVR6Jlw28bcEK3dIl/LU1DjC8QLzjz2MMJq3kp5NNukOL9gBWqM+WwQfVt6Wk+4dPaZeZ9076iYW7fHBf18YuvSKPmQa03g==', CAST(N'2020-07-17T22:25:06.4073122' AS DateTime2), N'SharedSecret', CAST(N'2019-07-17T19:25:06.4075910' AS DateTime2), 17) +-- INSERT [dbo].[ClientSecrets] ([Id], [Description], [Value], [Expiration], [Type], [Created], [ClientId]) VALUES (7, N'Client 2 description', N'5z4ehzeprUPNQvYYfzPHzQjRzgisUAoxlv7qQZlOpRP+7d5Yasx7oMa39FGD6KhN/oC02E5sQZcz7PE4v2yqfpziGZFVbmM7Vi5C9Vu5rq1VnEMYms3FkaxGJH3bQuBaDHW0oc8W948deIIgKkw7ej5E4iIokeTOHIjkD0nlYBNN6OjmBA3eP6Sz+iJLpWdgCqo/ll++MXqR5oRHMehGOBdu0kJjVXUxZqN9dJfBg3cghASepcm0j7ZtVR6Jlw28bcEK3dIl/LU1DjC8QLzjz2MMJq3kp5NNukOL9gBWqM+WwQfVt6Wk+4dPaZeZ9076iYW7fHBf18YuvSKPmQa03g==', CAST(N'2020-07-17T22:25:06.4073122' AS DateTime2), N'SharedSecret', CAST(N'2019-07-17T19:25:06.4075910' AS DateTime2), 17) GO -INSERT [dbo].[ClientSecrets] ([Id], [Description], [Value], [Expiration], [Type], [Created], [ClientId]) VALUES (8, N'Client 3 description', N'ZWElf7UOGL1oKyaUPfu0wvSRbHqbK1436UCm+oMUYYCaijE30s9Ee23+FEU4Q4gzCGCbCJk6QzoD7pV0Zx46U8mm+bPJffAlTPENnBcZ/qa4cvEieVnnYEb3M+M5zxNPxMB7kknUaYpwdrunLKYi6vDvvPQsF9pwvpls0kkM633evthWnWxc4wlmsQKePzOf1EnzSRMeIqzmCtOvZ5ZBZIs+yW7OzEyDktnrxWXX0n9lzf0AGaFpv5srb5KYrHtyJU13X3XF0Qj9b7c5M11GDjhUSZqZQUrp1ArSoly56+VeeJ8YYHIJoPv1AqnqMIs+5WFaRGLg2eQCjYtq8i+rRA==', CAST(N'2020-07-17T22:25:06.4080082' AS DateTime2), N'SharedSecret', CAST(N'2019-07-17T19:25:06.4082220' AS DateTime2), 16) +-- INSERT [dbo].[ClientSecrets] ([Id], [Description], [Value], [Expiration], [Type], [Created], [ClientId]) VALUES (8, N'Client 3 description', N'ZWElf7UOGL1oKyaUPfu0wvSRbHqbK1436UCm+oMUYYCaijE30s9Ee23+FEU4Q4gzCGCbCJk6QzoD7pV0Zx46U8mm+bPJffAlTPENnBcZ/qa4cvEieVnnYEb3M+M5zxNPxMB7kknUaYpwdrunLKYi6vDvvPQsF9pwvpls0kkM633evthWnWxc4wlmsQKePzOf1EnzSRMeIqzmCtOvZ5ZBZIs+yW7OzEyDktnrxWXX0n9lzf0AGaFpv5srb5KYrHtyJU13X3XF0Qj9b7c5M11GDjhUSZqZQUrp1ArSoly56+VeeJ8YYHIJoPv1AqnqMIs+5WFaRGLg2eQCjYtq8i+rRA==', CAST(N'2020-07-17T22:25:06.4080082' AS DateTime2), N'SharedSecret', CAST(N'2019-07-17T19:25:06.4082220' AS DateTime2), 16) GO -INSERT [dbo].[ClientSecrets] ([Id], [Description], [Value], [Expiration], [Type], [Created], [ClientId]) VALUES (9, N'Client 4 description', N'hNHbur0ursVKqZ+jPqH/o36UvftepoJ+n7oV0uefrsxJvSUZVdGAtrOU+rlANaZhjufsXXKw5d1OXRoCGdveq/vTWYB75U6tEwZIyqzJPWkUs0P/slBamNhIy/i2fZzXtU++bdsl5qmYP0lraBswhB+x7mWX3/iqeMGoMhpW9pZqcBRdCs+N782aZnMG7i+9F0bYBY82P9ZWE/QafbOOQkizAfgG03pQI/+Y/XiFpIqR6xvTffEGMzE+Bvbac3EaCyQqUu03tkTMiOGQnkFe0W9qiZKYu8RXrc7Hx8yDdbCNfvJTWlGcWjTWB/UPdpXv4DWGcOrfgVBf0qUfcO93SQ==', CAST(N'2020-07-17T22:25:06.4084995' AS DateTime2), N'SharedSecret', CAST(N'2019-07-17T19:25:06.4087174' AS DateTime2), 15) +-- INSERT [dbo].[ClientSecrets] ([Id], [Description], [Value], [Expiration], [Type], [Created], [ClientId]) VALUES (9, N'Client 4 description', N'hNHbur0ursVKqZ+jPqH/o36UvftepoJ+n7oV0uefrsxJvSUZVdGAtrOU+rlANaZhjufsXXKw5d1OXRoCGdveq/vTWYB75U6tEwZIyqzJPWkUs0P/slBamNhIy/i2fZzXtU++bdsl5qmYP0lraBswhB+x7mWX3/iqeMGoMhpW9pZqcBRdCs+N782aZnMG7i+9F0bYBY82P9ZWE/QafbOOQkizAfgG03pQI/+Y/XiFpIqR6xvTffEGMzE+Bvbac3EaCyQqUu03tkTMiOGQnkFe0W9qiZKYu8RXrc7Hx8yDdbCNfvJTWlGcWjTWB/UPdpXv4DWGcOrfgVBf0qUfcO93SQ==', CAST(N'2020-07-17T22:25:06.4084995' AS DateTime2), N'SharedSecret', CAST(N'2019-07-17T19:25:06.4087174' AS DateTime2), 15) GO -INSERT [dbo].[ClientSecrets] ([Id], [Description], [Value], [Expiration], [Type], [Created], [ClientId]) VALUES (10, N'Client 5 description', N'EjADH08Kdh7OLl7Bs85HNznY55f8Bcat/KH0h6t96UVfvuPfcnWf1b5oobuBwJyRi27mmAffTAxqVSOtFu5yUUUZYvXraMTDOBHZlGMLLDsFY/w9llE9f3HWdB1S8b/P9VB2aF6mpSKpIl/1BrioXinnqLPyNbrz2+OEFPOncUZSCp4TlcTdXr3Zk3PySHi4LRX0a0kM3MCWgox7IpEvArEYo/walclkCUn1GaFGAZNqzObesgb9RS3efBI3YjwsqpHC2aV8npdMj2H/FsMfT4H5EFWqUU+rG13PPBm2LaYNyW8PhCfu7i5OkSOk/S9pvi2RPVLmglhBFr5HrGF+lQ==', CAST(N'2020-07-17T22:25:06.4090311' AS DateTime2), N'SharedSecret', CAST(N'2019-07-17T19:25:06.4092648' AS DateTime2), 14) +-- INSERT [dbo].[ClientSecrets] ([Id], [Description], [Value], [Expiration], [Type], [Created], [ClientId]) VALUES (10, N'Client 5 description', N'EjADH08Kdh7OLl7Bs85HNznY55f8Bcat/KH0h6t96UVfvuPfcnWf1b5oobuBwJyRi27mmAffTAxqVSOtFu5yUUUZYvXraMTDOBHZlGMLLDsFY/w9llE9f3HWdB1S8b/P9VB2aF6mpSKpIl/1BrioXinnqLPyNbrz2+OEFPOncUZSCp4TlcTdXr3Zk3PySHi4LRX0a0kM3MCWgox7IpEvArEYo/walclkCUn1GaFGAZNqzObesgb9RS3efBI3YjwsqpHC2aV8npdMj2H/FsMfT4H5EFWqUU+rG13PPBm2LaYNyW8PhCfu7i5OkSOk/S9pvi2RPVLmglhBFr5HrGF+lQ==', CAST(N'2020-07-17T22:25:06.4090311' AS DateTime2), N'SharedSecret', CAST(N'2019-07-17T19:25:06.4092648' AS DateTime2), 14) GO -INSERT [dbo].[ClientSecrets] ([Id], [Description], [Value], [Expiration], [Type], [Created], [ClientId]) VALUES (11, N'Client 16 description', N'hMdj8TwTnBE5AfIAqJpfJRF/MVetPd+sqCWaepvJjK3lZK87EOov0UDqbRUpbZTagJauOhvxfUfnt0gWeCF1cHRFG0TqJBUmUF8Wws/KgzuRwPoFGlKR8+doU1miGVkfdP2g41JQ71uBh+q72rp3HTMNhbcncFUisydcgtG8hDYG903SKp/pQdGeg5Nn1hgs8TUllZSh9wOofi8q822KxAKzteNtpfKTI0PmiO3Cut0PMJCblu+iZP9JKqtvv05jFL6QsyE1v0tCkXFQu28W5cNSGsPc7i4TEVDjI3tGI2T1gnMuMga82XBFWAV9UaiQMkToHaSKhyaQfKLQUpzQ+w==', CAST(N'2020-07-17T22:25:06.4185347' AS DateTime2), N'SharedSecret', CAST(N'2019-07-17T19:25:06.4193417' AS DateTime2), 3) +-- INSERT [dbo].[ClientSecrets] ([Id], [Description], [Value], [Expiration], [Type], [Created], [ClientId]) VALUES (11, N'Client 16 description', N'hMdj8TwTnBE5AfIAqJpfJRF/MVetPd+sqCWaepvJjK3lZK87EOov0UDqbRUpbZTagJauOhvxfUfnt0gWeCF1cHRFG0TqJBUmUF8Wws/KgzuRwPoFGlKR8+doU1miGVkfdP2g41JQ71uBh+q72rp3HTMNhbcncFUisydcgtG8hDYG903SKp/pQdGeg5Nn1hgs8TUllZSh9wOofi8q822KxAKzteNtpfKTI0PmiO3Cut0PMJCblu+iZP9JKqtvv05jFL6QsyE1v0tCkXFQu28W5cNSGsPc7i4TEVDjI3tGI2T1gnMuMga82XBFWAV9UaiQMkToHaSKhyaQfKLQUpzQ+w==', CAST(N'2020-07-17T22:25:06.4185347' AS DateTime2), N'SharedSecret', CAST(N'2019-07-17T19:25:06.4193417' AS DateTime2), 3) GO -INSERT [dbo].[ClientSecrets] ([Id], [Description], [Value], [Expiration], [Type], [Created], [ClientId]) VALUES (12, N'Client 6 description', N'YbvyTVQPylkLIidbvysHHS1lfesl71QmRxbObWmmQczP/MLpC+IVrmI3MjC+JpkVD6EaR+STb3FmywU+QVzvZeBbi8JpHhFLUM6I7b0kaCB8uF7Ii/rnPI1QgkDc1m0GR8xPY5vXq/GPzvYVCoGzQmLkwon+J9nlc041GZvQbnlhgqXx1AWFpAxsObwD0jILnEDd9xTjByDyae9MopJVvmB9tIjbwm1dXx18ku4d4aEcKX1b83ZlfXuF/moVOQJ6Fnpchh2qMNnTgJj3ZnUy1YdNL3kV+svpFzcMVsQCRyUaAntzwFuEcvmjiHPebRYFUijiyAqJZRuucm7mndkV0A==', CAST(N'2020-07-17T22:25:06.4095528' AS DateTime2), N'SharedSecret', CAST(N'2019-07-17T19:25:06.4097870' AS DateTime2), 13) +-- INSERT [dbo].[ClientSecrets] ([Id], [Description], [Value], [Expiration], [Type], [Created], [ClientId]) VALUES (12, N'Client 6 description', N'YbvyTVQPylkLIidbvysHHS1lfesl71QmRxbObWmmQczP/MLpC+IVrmI3MjC+JpkVD6EaR+STb3FmywU+QVzvZeBbi8JpHhFLUM6I7b0kaCB8uF7Ii/rnPI1QgkDc1m0GR8xPY5vXq/GPzvYVCoGzQmLkwon+J9nlc041GZvQbnlhgqXx1AWFpAxsObwD0jILnEDd9xTjByDyae9MopJVvmB9tIjbwm1dXx18ku4d4aEcKX1b83ZlfXuF/moVOQJ6Fnpchh2qMNnTgJj3ZnUy1YdNL3kV+svpFzcMVsQCRyUaAntzwFuEcvmjiHPebRYFUijiyAqJZRuucm7mndkV0A==', CAST(N'2020-07-17T22:25:06.4095528' AS DateTime2), N'SharedSecret', CAST(N'2019-07-17T19:25:06.4097870' AS DateTime2), 13) GO -INSERT [dbo].[ClientSecrets] ([Id], [Description], [Value], [Expiration], [Type], [Created], [ClientId]) VALUES (13, N'Client 8 description', N'BTDx+M7GgkaDP6+7ltS/obLE68+NqUs0cirhnQNIzegmsq4yixlWDQWlapWjkBpEys/gubyaXVvkvYak5eRDO3LGleMmjRaYbt7K5z+2kOEQnNI0aBMri1RSTc6SsSggYi4i3Ps2Hj25R0vdz3YcLiyllEkRDtNemgmP1D9HBry2qYUQk7Tm2X6VeyDITrzeNh+h7B3eDlRbw0Hxp0r+cUGOJyXxC5p3v7rLfJKylkxNsJ4fphme15owtM9y9DIzlgrfOSaW7SqEKS1jE5LBqS30pPes3son71CKwFbKBMuHl+WH01wltsJzm3zrO8MIbwuifk87h7g/t0rWCy3Tug==', CAST(N'2020-07-17T22:25:06.4109746' AS DateTime2), N'SharedSecret', CAST(N'2019-07-17T19:25:06.4130709' AS DateTime2), 11) +-- INSERT [dbo].[ClientSecrets] ([Id], [Description], [Value], [Expiration], [Type], [Created], [ClientId]) VALUES (13, N'Client 8 description', N'BTDx+M7GgkaDP6+7ltS/obLE68+NqUs0cirhnQNIzegmsq4yixlWDQWlapWjkBpEys/gubyaXVvkvYak5eRDO3LGleMmjRaYbt7K5z+2kOEQnNI0aBMri1RSTc6SsSggYi4i3Ps2Hj25R0vdz3YcLiyllEkRDtNemgmP1D9HBry2qYUQk7Tm2X6VeyDITrzeNh+h7B3eDlRbw0Hxp0r+cUGOJyXxC5p3v7rLfJKylkxNsJ4fphme15owtM9y9DIzlgrfOSaW7SqEKS1jE5LBqS30pPes3son71CKwFbKBMuHl+WH01wltsJzm3zrO8MIbwuifk87h7g/t0rWCy3Tug==', CAST(N'2020-07-17T22:25:06.4109746' AS DateTime2), N'SharedSecret', CAST(N'2019-07-17T19:25:06.4130709' AS DateTime2), 11) GO -INSERT [dbo].[ClientSecrets] ([Id], [Description], [Value], [Expiration], [Type], [Created], [ClientId]) VALUES (14, N'Client 10 description', N'DbVvyfVLLd+1URn/SNqeo/N67HeAQl3dd4m/+wOF1lnMENUC0/wqU4d7FSOJKlTpdBdkuaAxpspYklFrizLcMHrAMjcEnND3UJnvBCw5VEw11ofrIB24m2oLqkGqv8dVn+Woyfcd5dhHbWkHQaKeHz0FNrWq8A9dB5bN+fKPTJDSmWVHkIpVF/GupLKzsFnHbYoDpYgRqq7VS8FgUOzmuCDYNag8Vo6zrx7D+0xcqlY8BYxni6cHwO63cUXJ9ccFyOyS2nuxixb8UPVqTa5ieaBqI0pffyx40HW5heVI6bpXvjNgys/bi3l1ajuxnXJAVPikXtF8pUm/GQoF+AUxsw==', CAST(N'2020-07-17T22:25:06.4139391' AS DateTime2), N'SharedSecret', CAST(N'2019-07-17T19:25:06.4141546' AS DateTime2), 9) +-- INSERT [dbo].[ClientSecrets] ([Id], [Description], [Value], [Expiration], [Type], [Created], [ClientId]) VALUES (14, N'Client 10 description', N'DbVvyfVLLd+1URn/SNqeo/N67HeAQl3dd4m/+wOF1lnMENUC0/wqU4d7FSOJKlTpdBdkuaAxpspYklFrizLcMHrAMjcEnND3UJnvBCw5VEw11ofrIB24m2oLqkGqv8dVn+Woyfcd5dhHbWkHQaKeHz0FNrWq8A9dB5bN+fKPTJDSmWVHkIpVF/GupLKzsFnHbYoDpYgRqq7VS8FgUOzmuCDYNag8Vo6zrx7D+0xcqlY8BYxni6cHwO63cUXJ9ccFyOyS2nuxixb8UPVqTa5ieaBqI0pffyx40HW5heVI6bpXvjNgys/bi3l1ajuxnXJAVPikXtF8pUm/GQoF+AUxsw==', CAST(N'2020-07-17T22:25:06.4139391' AS DateTime2), N'SharedSecret', CAST(N'2019-07-17T19:25:06.4141546' AS DateTime2), 9) GO -INSERT [dbo].[ClientSecrets] ([Id], [Description], [Value], [Expiration], [Type], [Created], [ClientId]) VALUES (15, N'Client 11 description', N'ZjsSj3sCrtGPmNDqFPHHMgN5MOyji+jaGeqgscXVknREt9R2iuPEUknTzzmruzTNUtcCf9VED9pSOHWRYf0LuQZcpV0cUKcgtN2jz7yvL1210l/u0xKeAKf5JFJtM/FMyBYyThXXsQEv4sv3oD8eogkX3I6eHeXzvqS2IitVs4DsVwelfeBI3SFdv/FHp19n2oJJVVdiraswP5BwIY7V2i9KC0k4eSUoz/5tQV70rBZFT0epC14piqlcdT1P17yTh+TB/JwVLmFcIYVY9WxMO5N6K9JGLM/RIICg2wPn2fhC2rl5Mq96LyDmTerY0ZQ8Dzmq1avqTFsV8NwbdFNedA==', CAST(N'2020-07-17T22:25:06.4144141' AS DateTime2), N'SharedSecret', CAST(N'2019-07-17T19:25:06.4146417' AS DateTime2), 8) +-- INSERT [dbo].[ClientSecrets] ([Id], [Description], [Value], [Expiration], [Type], [Created], [ClientId]) VALUES (15, N'Client 11 description', N'ZjsSj3sCrtGPmNDqFPHHMgN5MOyji+jaGeqgscXVknREt9R2iuPEUknTzzmruzTNUtcCf9VED9pSOHWRYf0LuQZcpV0cUKcgtN2jz7yvL1210l/u0xKeAKf5JFJtM/FMyBYyThXXsQEv4sv3oD8eogkX3I6eHeXzvqS2IitVs4DsVwelfeBI3SFdv/FHp19n2oJJVVdiraswP5BwIY7V2i9KC0k4eSUoz/5tQV70rBZFT0epC14piqlcdT1P17yTh+TB/JwVLmFcIYVY9WxMO5N6K9JGLM/RIICg2wPn2fhC2rl5Mq96LyDmTerY0ZQ8Dzmq1avqTFsV8NwbdFNedA==', CAST(N'2020-07-17T22:25:06.4144141' AS DateTime2), N'SharedSecret', CAST(N'2019-07-17T19:25:06.4146417' AS DateTime2), 8) GO -INSERT [dbo].[ClientSecrets] ([Id], [Description], [Value], [Expiration], [Type], [Created], [ClientId]) VALUES (16, N'Client 12 description', N'R4wVG7PTCOT//LFg3uT4Tuxky8o9BE1YjV5jQtJfusyH2KJMu3mIOzDG1a847Hwx+I0vEIeUN0M/vY1UcMYRoEHk2AZCq5Jy25CZdy6dH6DiMUlFMKpF86BfDf7rNMtqtDVuUxR270z6vDT3+sAUoZ3tcj59zHCXn+Rl4p6UhqfEL8L5L8yMa0L8SnN1TvjgS2xg/sGM7ejF1rMvEAyuZjWNMsv+GnHRYAb7gIL8IVHshJcxM4jlOELZNFgYXVs2TeM96Bst4jD6j527kGxmyLViQ4x1fTKtp/qJJOYYuAOrxTKevjg1vqFmNqTqKqfVc2ujtRrPwNCxkEAho75K4g==', CAST(N'2020-07-17T22:25:06.4149037' AS DateTime2), N'SharedSecret', CAST(N'2019-07-17T19:25:06.4151112' AS DateTime2), 7) +-- INSERT [dbo].[ClientSecrets] ([Id], [Description], [Value], [Expiration], [Type], [Created], [ClientId]) VALUES (16, N'Client 12 description', N'R4wVG7PTCOT//LFg3uT4Tuxky8o9BE1YjV5jQtJfusyH2KJMu3mIOzDG1a847Hwx+I0vEIeUN0M/vY1UcMYRoEHk2AZCq5Jy25CZdy6dH6DiMUlFMKpF86BfDf7rNMtqtDVuUxR270z6vDT3+sAUoZ3tcj59zHCXn+Rl4p6UhqfEL8L5L8yMa0L8SnN1TvjgS2xg/sGM7ejF1rMvEAyuZjWNMsv+GnHRYAb7gIL8IVHshJcxM4jlOELZNFgYXVs2TeM96Bst4jD6j527kGxmyLViQ4x1fTKtp/qJJOYYuAOrxTKevjg1vqFmNqTqKqfVc2ujtRrPwNCxkEAho75K4g==', CAST(N'2020-07-17T22:25:06.4149037' AS DateTime2), N'SharedSecret', CAST(N'2019-07-17T19:25:06.4151112' AS DateTime2), 7) GO -INSERT [dbo].[ClientSecrets] ([Id], [Description], [Value], [Expiration], [Type], [Created], [ClientId]) VALUES (17, N'Client 13 description', N'15oPyzrICXwthOoPRo7CfVK0sXp1AuncBGHtLvcTG+McVMxQGtybqmImh5XksYoizcPP7wzPbNSwM8bY29uEGmgG8vHBcmJ2GAYYT3pT91LWymE0QyvXTOf4n+cVws+GoW0s3r6YYVphWdYGth1ZXDtzARF6UNY9L6YKyNJ6YFY3ka0NJhiUPmgG0+pV0ZXKnkKsocC+DFCW768YjpiI5viAziVvTDUi38Ooc33s6F4QQCqPzr6VeIVddjdpe6/Pfuzx1AJwWlEMicH8FZjTqQdRCE5u+Bc66lWfEtb+uWQU2fWQ+xNbn+XYg0X9mWPsicwwGHNgYYbUt+qs0Ed7Dg==', CAST(N'2020-07-17T22:25:06.4154056' AS DateTime2), N'SharedSecret', CAST(N'2019-07-17T19:25:06.4156335' AS DateTime2), 6) +-- INSERT [dbo].[ClientSecrets] ([Id], [Description], [Value], [Expiration], [Type], [Created], [ClientId]) VALUES (17, N'Client 13 description', N'15oPyzrICXwthOoPRo7CfVK0sXp1AuncBGHtLvcTG+McVMxQGtybqmImh5XksYoizcPP7wzPbNSwM8bY29uEGmgG8vHBcmJ2GAYYT3pT91LWymE0QyvXTOf4n+cVws+GoW0s3r6YYVphWdYGth1ZXDtzARF6UNY9L6YKyNJ6YFY3ka0NJhiUPmgG0+pV0ZXKnkKsocC+DFCW768YjpiI5viAziVvTDUi38Ooc33s6F4QQCqPzr6VeIVddjdpe6/Pfuzx1AJwWlEMicH8FZjTqQdRCE5u+Bc66lWfEtb+uWQU2fWQ+xNbn+XYg0X9mWPsicwwGHNgYYbUt+qs0Ed7Dg==', CAST(N'2020-07-17T22:25:06.4154056' AS DateTime2), N'SharedSecret', CAST(N'2019-07-17T19:25:06.4156335' AS DateTime2), 6) GO -INSERT [dbo].[ClientSecrets] ([Id], [Description], [Value], [Expiration], [Type], [Created], [ClientId]) VALUES (18, N'Client 14 description', N'0F3oPKNCrvP1aGiVddI8UPKziAnOofG0d2+8RCivz55ddHWgsCZIRx48Igv3zBECepm5Hb5yQC9rNMU0hmrLRZnKOABcnJ/LakHrkX7lvKteucmO9rHf6jRGNHxhFMGzcdxyLJMQpd757bJ9hq6whncZ1cygPE/n6k3MFmcjalZ/Nx+hc48XTRPrlQj+YmOFla4FRz70EjWNikFGRI921oNc/U+PDxLnAoi5taZH6IjpRoG5HiIXiyXqE+lN0QmEdL6FomQU9oWbHUW2O1yORqG5XP0NvbhgRXIqpPspmjB/NEHowUYj1VD7HQHdYVDIW81HlHULdrcGJF3y6lGJcg==', CAST(N'2020-07-17T22:25:06.4158916' AS DateTime2), N'SharedSecret', CAST(N'2019-07-17T19:25:06.4165633' AS DateTime2), 5) +-- INSERT [dbo].[ClientSecrets] ([Id], [Description], [Value], [Expiration], [Type], [Created], [ClientId]) VALUES (18, N'Client 14 description', N'0F3oPKNCrvP1aGiVddI8UPKziAnOofG0d2+8RCivz55ddHWgsCZIRx48Igv3zBECepm5Hb5yQC9rNMU0hmrLRZnKOABcnJ/LakHrkX7lvKteucmO9rHf6jRGNHxhFMGzcdxyLJMQpd757bJ9hq6whncZ1cygPE/n6k3MFmcjalZ/Nx+hc48XTRPrlQj+YmOFla4FRz70EjWNikFGRI921oNc/U+PDxLnAoi5taZH6IjpRoG5HiIXiyXqE+lN0QmEdL6FomQU9oWbHUW2O1yORqG5XP0NvbhgRXIqpPspmjB/NEHowUYj1VD7HQHdYVDIW81HlHULdrcGJF3y6lGJcg==', CAST(N'2020-07-17T22:25:06.4158916' AS DateTime2), N'SharedSecret', CAST(N'2019-07-17T19:25:06.4165633' AS DateTime2), 5) GO -INSERT [dbo].[ClientSecrets] ([Id], [Description], [Value], [Expiration], [Type], [Created], [ClientId]) VALUES (19, N'Client 7 description', N'OHPcZPm+FSzJvIBxclgLqSAHBJsffxuRnWDETeyd1R+NtzpqkbIMkxO2/k0J86lWZ8TFltV6sbhXS8aZ+sdALOdg5LsdoBhu+nCHaYHNh6q3buYn1z9JEgWBE0Xrc5lMdtJmqA7tOcasV5tk80g3isMb4ovgGFSnF9G1m43SgofXOvOvZ96cyTUfe4Cj5B+9SoiBz5ENa119v5E8N5052dQUjbhViCLkfxhWwZzTAzKy+FEEULL1yc+VMahNX5GY5aKsj1ZnaMFmnVB4t6rBqbtfij9LNIghHsTpwFd6lyCGvtv6J3TbS5CQnrNifRIk1Ifs7tRSTLAZinCSfahq6w==', CAST(N'2020-07-17T22:25:06.4103042' AS DateTime2), N'SharedSecret', CAST(N'2019-07-17T19:25:06.4106346' AS DateTime2), 12) +-- INSERT [dbo].[ClientSecrets] ([Id], [Description], [Value], [Expiration], [Type], [Created], [ClientId]) VALUES (19, N'Client 7 description', N'OHPcZPm+FSzJvIBxclgLqSAHBJsffxuRnWDETeyd1R+NtzpqkbIMkxO2/k0J86lWZ8TFltV6sbhXS8aZ+sdALOdg5LsdoBhu+nCHaYHNh6q3buYn1z9JEgWBE0Xrc5lMdtJmqA7tOcasV5tk80g3isMb4ovgGFSnF9G1m43SgofXOvOvZ96cyTUfe4Cj5B+9SoiBz5ENa119v5E8N5052dQUjbhViCLkfxhWwZzTAzKy+FEEULL1yc+VMahNX5GY5aKsj1ZnaMFmnVB4t6rBqbtfij9LNIghHsTpwFd6lyCGvtv6J3TbS5CQnrNifRIk1Ifs7tRSTLAZinCSfahq6w==', CAST(N'2020-07-17T22:25:06.4103042' AS DateTime2), N'SharedSecret', CAST(N'2019-07-17T19:25:06.4106346' AS DateTime2), 12) GO -INSERT [dbo].[ClientSecrets] ([Id], [Description], [Value], [Expiration], [Type], [Created], [ClientId]) VALUES (20, N'Client 19 description', N'BAFu7t3aGhQQFIOD/jz9JOvnfwxH5XsFhmBSRh5fg3bZmzxA1wQzSnCUjsfZFItFMkIsf5CLIB6GaWh8iNT2sJAMqWL/vU3mtDWcslezLHHUDBPcMgPlTXseuW6ctsKcnd03zGooRnX0Rstb723H0jz2qHzBGn2MJ1zn4QPfSf1zABV6fGAHq8ae5+w4il0OVuYxpg5G2oNfqqUNQWRxFfzN6O9YTFbc7vy1IjKRVJz/2YocrqPvLCWRGtG7+mphLNLwaqFttgqQVbcSkLhRzlUIDWjZVWZZ3rvKxjGFIPSRU/Zgoer7kSKAjFjr3ZxtQEx7s+wBiNZrlozlou/YCg==', CAST(N'2020-07-17T22:25:06.4205935' AS DateTime2), N'SharedSecret', CAST(N'2019-07-17T19:25:06.4207257' AS DateTime2), 20) +-- INSERT [dbo].[ClientSecrets] ([Id], [Description], [Value], [Expiration], [Type], [Created], [ClientId]) VALUES (20, N'Client 19 description', N'BAFu7t3aGhQQFIOD/jz9JOvnfwxH5XsFhmBSRh5fg3bZmzxA1wQzSnCUjsfZFItFMkIsf5CLIB6GaWh8iNT2sJAMqWL/vU3mtDWcslezLHHUDBPcMgPlTXseuW6ctsKcnd03zGooRnX0Rstb723H0jz2qHzBGn2MJ1zn4QPfSf1zABV6fGAHq8ae5+w4il0OVuYxpg5G2oNfqqUNQWRxFfzN6O9YTFbc7vy1IjKRVJz/2YocrqPvLCWRGtG7+mphLNLwaqFttgqQVbcSkLhRzlUIDWjZVWZZ3rvKxjGFIPSRU/Zgoer7kSKAjFjr3ZxtQEx7s+wBiNZrlozlou/YCg==', CAST(N'2020-07-17T22:25:06.4205935' AS DateTime2), N'SharedSecret', CAST(N'2019-07-17T19:25:06.4207257' AS DateTime2), 20) GO SET IDENTITY_INSERT [dbo].[ClientSecrets] OFF GO From 709317c1336a4ce4ea709ed452c121c91fc4847b Mon Sep 17 00:00:00 2001 From: Tigran TIKSN Torosyan Date: Fri, 16 Aug 2019 20:59:58 +0300 Subject: [PATCH 055/139] Update microservices.yml --- docker-compose/microservices.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docker-compose/microservices.yml b/docker-compose/microservices.yml index 25948c0..3d8bb16 100644 --- a/docker-compose/microservices.yml +++ b/docker-compose/microservices.yml @@ -6,6 +6,8 @@ services: image: tiksn/lionize-identity-management-service ports: - "8081:80" + env_file: + - variables.env networks: - lionize @@ -22,8 +24,6 @@ services: image: ashotnazaryan45/lionize-web-ui:latest ports: - "8080:80" - env_file: - - variables.env networks: - lionize From ae64657e6ec92f5eae7531900442ee0765820ff6 Mon Sep 17 00:00:00 2001 From: Tigran TIKSN Torosyan Date: Sun, 18 Aug 2019 17:06:06 +0300 Subject: [PATCH 056/139] Update microservices.yml --- docker-compose/microservices.yml | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/docker-compose/microservices.yml b/docker-compose/microservices.yml index 3d8bb16..bbea9b8 100644 --- a/docker-compose/microservices.yml +++ b/docker-compose/microservices.yml @@ -3,7 +3,7 @@ version: '3.7' services: identity: - image: tiksn/lionize-identity-management-service + image: tiksn/lionize-identity-management-service:latest ports: - "8081:80" env_file: @@ -12,7 +12,7 @@ services: - lionize tasks: - image: tiksn/lionize-task-management-service + image: tiksn/lionize-task-management-service:latest ports: - "8083:80" env_file: @@ -20,6 +20,15 @@ services: networks: - lionize + habitica: + image: tiksn/lionize-habitica-task-provider-service:latest + ports: + - "8085:80" + env_file: + - variables.env + networks: + - lionize + web-ui: image: ashotnazaryan45/lionize-web-ui:latest ports: From 5f0b6880c9436141832492d107ab21810bd7bfa3 Mon Sep 17 00:00:00 2001 From: Tigran TIKSN Torosyan Date: Sun, 18 Aug 2019 18:41:07 +0300 Subject: [PATCH 057/139] Update dependencies.yml --- docker-compose/dependencies.yml | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/docker-compose/dependencies.yml b/docker-compose/dependencies.yml index 1a6c83e..3442211 100644 --- a/docker-compose/dependencies.yml +++ b/docker-compose/dependencies.yml @@ -12,6 +12,14 @@ services: networks: - lionize + mongo: + image: mongo:latest + environment: + MONGO_INITDB_ROOT_USERNAME: root + MONGO_INITDB_ROOT_PASSWORD: Xq5xrtzEKj44ueyd + networks: + - lionize + rabbitmq: image: rabbitmq:management-alpine container_name: rabbitmq From 983ad41fc912fc8fa8d809a76495bad9b44eaaf6 Mon Sep 17 00:00:00 2001 From: Tigran TIKSN Torosyan Date: Sun, 18 Aug 2019 18:44:29 +0300 Subject: [PATCH 058/139] Update Setup.ps1 --- Setup.ps1 | 1 + 1 file changed, 1 insertion(+) diff --git a/Setup.ps1 b/Setup.ps1 index 4286fff..14ae9e8 100644 --- a/Setup.ps1 +++ b/Setup.ps1 @@ -20,6 +20,7 @@ if ($IsWindows) { choco install kubernetes-cli Add-HostEntry -Name mssql -Loopback -Force + Add-HostEntry -Name mongo -Loopback -Force } elseif ($IsFedora) { sudo dnf -y install docker-compose From 485a54c86682f9b6490e14b5f73dd8cbad86cb61 Mon Sep 17 00:00:00 2001 From: Tigran TIKSN Torosyan Date: Sun, 18 Aug 2019 18:48:43 +0300 Subject: [PATCH 059/139] Update docker-compose-tasks.ps1 --- docker-compose-tasks.ps1 | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/docker-compose-tasks.ps1 b/docker-compose-tasks.ps1 index d40130e..d4ce2d9 100644 --- a/docker-compose-tasks.ps1 +++ b/docker-compose-tasks.ps1 @@ -2,6 +2,10 @@ Properties { # } +Task Status { + Exec { docker-compose -f (Resolve-Path "docker-compose/dependencies.yml").Path -f (Resolve-Path "docker-compose/microservices.yml").Path ps } +} + Task Pull { Exec { docker-compose -f (Resolve-Path "docker-compose/dependencies.yml").Path -f (Resolve-Path "docker-compose/microservices.yml").Path pull } } From 8230b4599288a3e88cf6fcf4cfd6e8e450ba4a02 Mon Sep 17 00:00:00 2001 From: Tigran TIKSN Torosyan Date: Sun, 18 Aug 2019 18:48:47 +0300 Subject: [PATCH 060/139] Create show-docker-status.ps1 --- show-docker-status.ps1 | 1 + 1 file changed, 1 insertion(+) create mode 100644 show-docker-status.ps1 diff --git a/show-docker-status.ps1 b/show-docker-status.ps1 new file mode 100644 index 0000000..d22b050 --- /dev/null +++ b/show-docker-status.ps1 @@ -0,0 +1 @@ +Invoke-psake -buildFile .\docker-compose-tasks.ps1 -taskList Status -nologo \ No newline at end of file From f1b6e458cb6d8697239bd8665e316a507708fa22 Mon Sep 17 00:00:00 2001 From: Tigran TIKSN Torosyan Date: Sun, 18 Aug 2019 18:48:52 +0300 Subject: [PATCH 061/139] Update dependencies.yml --- docker-compose/dependencies.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/docker-compose/dependencies.yml b/docker-compose/dependencies.yml index 3442211..cd800ba 100644 --- a/docker-compose/dependencies.yml +++ b/docker-compose/dependencies.yml @@ -17,6 +17,8 @@ services: environment: MONGO_INITDB_ROOT_USERNAME: root MONGO_INITDB_ROOT_PASSWORD: Xq5xrtzEKj44ueyd + ports: + - "27017:27017" networks: - lionize From 055c2676ec5b4b8078ec4207c28f4ba47cdce3f9 Mon Sep 17 00:00:00 2001 From: Tigran TIKSN Torosyan Date: Sun, 18 Aug 2019 18:52:28 +0300 Subject: [PATCH 062/139] Update docker-compose-tasks.ps1 --- docker-compose-tasks.ps1 | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/docker-compose-tasks.ps1 b/docker-compose-tasks.ps1 index d4ce2d9..66c3086 100644 --- a/docker-compose-tasks.ps1 +++ b/docker-compose-tasks.ps1 @@ -2,6 +2,14 @@ Properties { # } +Task Teardown { + Exec { docker-compose -f (Resolve-Path "docker-compose/dependencies.yml").Path -f (Resolve-Path "docker-compose/microservices.yml").Path down } +} + +Task Stop { + Exec { docker-compose -f (Resolve-Path "docker-compose/dependencies.yml").Path -f (Resolve-Path "docker-compose/microservices.yml").Path stop } +} + Task Status { Exec { docker-compose -f (Resolve-Path "docker-compose/dependencies.yml").Path -f (Resolve-Path "docker-compose/microservices.yml").Path ps } } From 947ba6c0efbc9131ad56189ff3ea8c2fb38b5f9d Mon Sep 17 00:00:00 2001 From: Tigran TIKSN Torosyan Date: Sun, 18 Aug 2019 18:52:40 +0300 Subject: [PATCH 063/139] Create stop-docker-containers.ps1 --- stop-docker-containers.ps1 | 1 + 1 file changed, 1 insertion(+) create mode 100644 stop-docker-containers.ps1 diff --git a/stop-docker-containers.ps1 b/stop-docker-containers.ps1 new file mode 100644 index 0000000..f51c030 --- /dev/null +++ b/stop-docker-containers.ps1 @@ -0,0 +1 @@ +Invoke-psake -buildFile .\docker-compose-tasks.ps1 -taskList Stop -nologo \ No newline at end of file From 6e7e8768c6baa4de19098fafb240771f9117d6eb Mon Sep 17 00:00:00 2001 From: Tigran TIKSN Torosyan Date: Sun, 18 Aug 2019 18:52:43 +0300 Subject: [PATCH 064/139] Create teardown-docker-containers.ps1 --- teardown-docker-containers.ps1 | 1 + 1 file changed, 1 insertion(+) create mode 100644 teardown-docker-containers.ps1 diff --git a/teardown-docker-containers.ps1 b/teardown-docker-containers.ps1 new file mode 100644 index 0000000..2ceaff6 --- /dev/null +++ b/teardown-docker-containers.ps1 @@ -0,0 +1 @@ +Invoke-psake -buildFile .\docker-compose-tasks.ps1 -taskList Teardown -nologo \ No newline at end of file From 0e1db504fa2ed556ab077f5a7ce5c5241efed086 Mon Sep 17 00:00:00 2001 From: Tigran TIKSN Torosyan Date: Sun, 18 Aug 2019 19:38:07 +0300 Subject: [PATCH 065/139] Update dependencies.yml --- docker-compose/dependencies.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docker-compose/dependencies.yml b/docker-compose/dependencies.yml index cd800ba..f7ea59b 100644 --- a/docker-compose/dependencies.yml +++ b/docker-compose/dependencies.yml @@ -15,8 +15,8 @@ services: mongo: image: mongo:latest environment: - MONGO_INITDB_ROOT_USERNAME: root - MONGO_INITDB_ROOT_PASSWORD: Xq5xrtzEKj44ueyd + - MONGO_INITDB_ROOT_USERNAME=root + - MONGO_INITDB_ROOT_PASSWORD=Xq5xrtzEKj44ueyd ports: - "27017:27017" networks: From 6a7af73ec3c6e50e07058461b4e1ce34b3151e3e Mon Sep 17 00:00:00 2001 From: Tigran TIKSN Torosyan Date: Mon, 19 Aug 2019 22:21:21 +0300 Subject: [PATCH 066/139] Update Data.sql --- Data.sql | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Data.sql b/Data.sql index a7c3ada..6205e2a 100644 --- a/Data.sql +++ b/Data.sql @@ -10,7 +10,7 @@ SET IDENTITY_INSERT [dbo].[AspNetUserClaims] OFF GO SET IDENTITY_INSERT [dbo].[Clients] ON GO -IF NOT EXISTS ( SELECT * FROM [dbo].[Clients] WHERE [Id] = 1) INSERT [dbo].[Clients] ([Id], [Enabled], [ClientId], [ProtocolType], [RequireClientSecret], [ClientName], [Description], [ClientUri], [LogoUri], [RequireConsent], [AllowRememberConsent], [AlwaysIncludeUserClaimsInIdToken], [RequirePkce], [AllowPlainTextPkce], [AllowAccessTokensViaBrowser], [FrontChannelLogoutUri], [FrontChannelLogoutSessionRequired], [BackChannelLogoutUri], [BackChannelLogoutSessionRequired], [AllowOfflineAccess], [IdentityTokenLifetime], [AccessTokenLifetime], [AuthorizationCodeLifetime], [ConsentLifetime], [AbsoluteRefreshTokenLifetime], [SlidingRefreshTokenLifetime], [RefreshTokenUsage], [UpdateAccessTokenClaimsOnRefresh], [RefreshTokenExpiration], [AccessTokenType], [EnableLocalLogin], [IncludeJwtId], [AlwaysSendClientClaims], [ClientClaimsPrefix], [PairWiseSubjectSalt], [Created], [Updated], [LastAccessed], [UserSsoLifetime], [UserCodeType], [DeviceCodeLifetime], [NonEditable]) VALUES (1, 1, N'UserManagementClient', N'oidc', 1, N'Client 0 Client', NULL, N'http://identityserver.io', NULL, 1, 1, 0, 0, 0, 0, NULL, 1, NULL, 1, 0, 300, 3600, 300, NULL, 2592000, 1296000, 1, 0, 1, 0, 1, 0, 0, N'client_', NULL, CAST(N'2019-07-17T19:25:06.3074530' AS DateTime2), NULL, NULL, NULL, NULL, 300, 0) +IF NOT EXISTS ( SELECT * FROM [dbo].[Clients] WHERE [Id] = 1) INSERT [dbo].[Clients] ([Id], [Enabled], [ClientId], [ProtocolType], [RequireClientSecret], [ClientName], [Description], [ClientUri], [LogoUri], [RequireConsent], [AllowRememberConsent], [AlwaysIncludeUserClaimsInIdToken], [RequirePkce], [AllowPlainTextPkce], [AllowAccessTokensViaBrowser], [FrontChannelLogoutUri], [FrontChannelLogoutSessionRequired], [BackChannelLogoutUri], [BackChannelLogoutSessionRequired], [AllowOfflineAccess], [IdentityTokenLifetime], [AccessTokenLifetime], [AuthorizationCodeLifetime], [ConsentLifetime], [AbsoluteRefreshTokenLifetime], [SlidingRefreshTokenLifetime], [RefreshTokenUsage], [UpdateAccessTokenClaimsOnRefresh], [RefreshTokenExpiration], [AccessTokenType], [EnableLocalLogin], [IncludeJwtId], [AlwaysSendClientClaims], [ClientClaimsPrefix], [PairWiseSubjectSalt], [Created], [Updated], [LastAccessed], [UserSsoLifetime], [UserCodeType], [DeviceCodeLifetime], [NonEditable]) VALUES (1, 1, N'UserManagementClient', N'oidc', 1, N'User Management Client', NULL, NULL, NULL, 1, 1, 0, 0, 0, 0, NULL, 1, NULL, 1, 0, 300, 3600, 300, NULL, 2592000, 1296000, 1, 0, 1, 0, 1, 0, 0, N'client_', NULL, CAST(N'2019-07-17T19:25:06.3074530' AS DateTime2), NULL, NULL, NULL, NULL, 300, 0) GO -- INSERT [dbo].[Clients] ([Id], [Enabled], [ClientId], [ProtocolType], [RequireClientSecret], [ClientName], [Description], [ClientUri], [LogoUri], [RequireConsent], [AllowRememberConsent], [AlwaysIncludeUserClaimsInIdToken], [RequirePkce], [AllowPlainTextPkce], [AllowAccessTokensViaBrowser], [FrontChannelLogoutUri], [FrontChannelLogoutSessionRequired], [BackChannelLogoutUri], [BackChannelLogoutSessionRequired], [AllowOfflineAccess], [IdentityTokenLifetime], [AccessTokenLifetime], [AuthorizationCodeLifetime], [ConsentLifetime], [AbsoluteRefreshTokenLifetime], [SlidingRefreshTokenLifetime], [RefreshTokenUsage], [UpdateAccessTokenClaimsOnRefresh], [RefreshTokenExpiration], [AccessTokenType], [EnableLocalLogin], [IncludeJwtId], [AlwaysSendClientClaims], [ClientClaimsPrefix], [PairWiseSubjectSalt], [Created], [Updated], [LastAccessed], [UserSsoLifetime], [UserCodeType], [DeviceCodeLifetime], [NonEditable]) VALUES (2, 1, N'TaskManagementServiceClient', N'oidc', 1, N'Client 17 Client', NULL, N'http://identityserver.io', NULL, 1, 1, 0, 0, 0, 0, NULL, 1, NULL, 1, 0, 300, 3600, 300, NULL, 2592000, 1296000, 1, 0, 1, 0, 1, 0, 0, N'client_', NULL, CAST(N'2019-07-17T19:25:06.4198847' AS DateTime2), NULL, NULL, NULL, NULL, 300, 0) -- GO From 07b4caa60fd090dce1c723de3f15695efa78e982 Mon Sep 17 00:00:00 2001 From: Tigran TIKSN Torosyan Date: Mon, 19 Aug 2019 22:26:51 +0300 Subject: [PATCH 067/139] Update Data.sql --- Data.sql | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Data.sql b/Data.sql index 6205e2a..0f3ab6b 100644 --- a/Data.sql +++ b/Data.sql @@ -10,7 +10,7 @@ SET IDENTITY_INSERT [dbo].[AspNetUserClaims] OFF GO SET IDENTITY_INSERT [dbo].[Clients] ON GO -IF NOT EXISTS ( SELECT * FROM [dbo].[Clients] WHERE [Id] = 1) INSERT [dbo].[Clients] ([Id], [Enabled], [ClientId], [ProtocolType], [RequireClientSecret], [ClientName], [Description], [ClientUri], [LogoUri], [RequireConsent], [AllowRememberConsent], [AlwaysIncludeUserClaimsInIdToken], [RequirePkce], [AllowPlainTextPkce], [AllowAccessTokensViaBrowser], [FrontChannelLogoutUri], [FrontChannelLogoutSessionRequired], [BackChannelLogoutUri], [BackChannelLogoutSessionRequired], [AllowOfflineAccess], [IdentityTokenLifetime], [AccessTokenLifetime], [AuthorizationCodeLifetime], [ConsentLifetime], [AbsoluteRefreshTokenLifetime], [SlidingRefreshTokenLifetime], [RefreshTokenUsage], [UpdateAccessTokenClaimsOnRefresh], [RefreshTokenExpiration], [AccessTokenType], [EnableLocalLogin], [IncludeJwtId], [AlwaysSendClientClaims], [ClientClaimsPrefix], [PairWiseSubjectSalt], [Created], [Updated], [LastAccessed], [UserSsoLifetime], [UserCodeType], [DeviceCodeLifetime], [NonEditable]) VALUES (1, 1, N'UserManagementClient', N'oidc', 1, N'User Management Client', NULL, NULL, NULL, 1, 1, 0, 0, 0, 0, NULL, 1, NULL, 1, 0, 300, 3600, 300, NULL, 2592000, 1296000, 1, 0, 1, 0, 1, 0, 0, N'client_', NULL, CAST(N'2019-07-17T19:25:06.3074530' AS DateTime2), NULL, NULL, NULL, NULL, 300, 0) +IF NOT EXISTS ( SELECT * FROM [dbo].[Clients] WHERE [Id] = 1) INSERT [dbo].[Clients] ([Id], [Enabled], [ClientId], [ProtocolType], [RequireClientSecret], [ClientName], [Description], [ClientUri], [LogoUri], [RequireConsent], [AllowRememberConsent], [AlwaysIncludeUserClaimsInIdToken], [RequirePkce], [AllowPlainTextPkce], [AllowAccessTokensViaBrowser], [FrontChannelLogoutUri], [FrontChannelLogoutSessionRequired], [BackChannelLogoutUri], [BackChannelLogoutSessionRequired], [AllowOfflineAccess], [IdentityTokenLifetime], [AccessTokenLifetime], [AuthorizationCodeLifetime], [ConsentLifetime], [AbsoluteRefreshTokenLifetime], [SlidingRefreshTokenLifetime], [RefreshTokenUsage], [UpdateAccessTokenClaimsOnRefresh], [RefreshTokenExpiration], [AccessTokenType], [EnableLocalLogin], [IncludeJwtId], [AlwaysSendClientClaims], [ClientClaimsPrefix], [PairWiseSubjectSalt], [Created], [Updated], [LastAccessed], [UserSsoLifetime], [UserCodeType], [DeviceCodeLifetime], [NonEditable]) VALUES (1, 1, N'UserManagementClient', N'oidc', 1, N'User Management Client', NULL, NULL, NULL, 1, 1, 0, 0, 0, 0, NULL, 1, NULL, 1, 1, 300, 3600, 300, NULL, 2592000, 1296000, 1, 0, 1, 0, 1, 0, 0, N'client_', NULL, CAST(N'2019-07-17T19:25:06.3074530' AS DateTime2), NULL, NULL, NULL, NULL, 300, 0) GO -- INSERT [dbo].[Clients] ([Id], [Enabled], [ClientId], [ProtocolType], [RequireClientSecret], [ClientName], [Description], [ClientUri], [LogoUri], [RequireConsent], [AllowRememberConsent], [AlwaysIncludeUserClaimsInIdToken], [RequirePkce], [AllowPlainTextPkce], [AllowAccessTokensViaBrowser], [FrontChannelLogoutUri], [FrontChannelLogoutSessionRequired], [BackChannelLogoutUri], [BackChannelLogoutSessionRequired], [AllowOfflineAccess], [IdentityTokenLifetime], [AccessTokenLifetime], [AuthorizationCodeLifetime], [ConsentLifetime], [AbsoluteRefreshTokenLifetime], [SlidingRefreshTokenLifetime], [RefreshTokenUsage], [UpdateAccessTokenClaimsOnRefresh], [RefreshTokenExpiration], [AccessTokenType], [EnableLocalLogin], [IncludeJwtId], [AlwaysSendClientClaims], [ClientClaimsPrefix], [PairWiseSubjectSalt], [Created], [Updated], [LastAccessed], [UserSsoLifetime], [UserCodeType], [DeviceCodeLifetime], [NonEditable]) VALUES (2, 1, N'TaskManagementServiceClient', N'oidc', 1, N'Client 17 Client', NULL, N'http://identityserver.io', NULL, 1, 1, 0, 0, 0, 0, NULL, 1, NULL, 1, 0, 300, 3600, 300, NULL, 2592000, 1296000, 1, 0, 1, 0, 1, 0, 0, N'client_', NULL, CAST(N'2019-07-17T19:25:06.4198847' AS DateTime2), NULL, NULL, NULL, NULL, 300, 0) -- GO From 16b0b3e7fd9fd32e75affe96cb3ba240f41f4987 Mon Sep 17 00:00:00 2001 From: Tigran TIKSN Torosyan Date: Mon, 19 Aug 2019 22:34:35 +0300 Subject: [PATCH 068/139] Update Data.sql --- Data.sql | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/Data.sql b/Data.sql index 0f3ab6b..330119e 100644 --- a/Data.sql +++ b/Data.sql @@ -1,16 +1,12 @@ USE [IdentityManagementService] GO -IF NOT EXISTS ( SELECT * FROM [dbo].[AspNetUsers] WHERE [Id] = N'5e4fd556-0caa-487b-b9eb-d3c29725df55') INSERT [dbo].[AspNetUsers] ([Id], [UserName], [NormalizedUserName], [Email], [NormalizedEmail], [EmailConfirmed], [PasswordHash], [SecurityStamp], [ConcurrencyStamp], [PhoneNumber], [PhoneNumberConfirmed], [TwoFactorEnabled], [LockoutEnd], [LockoutEnabled], [AccessFailedCount]) VALUES (N'5e4fd556-0caa-487b-b9eb-d3c29725df55', N'alice', N'ALICE', NULL, NULL, 0, N'AQAAAAEAACcQAAAAEFiXrtBAUFBrX398NIJNIPvSWohm+Jo7rPE3Huj5zHmwMSpTNmeT3xAvRsf5aJ0a8A==', N'DOD6VZMCYZRP7MH7PQTDCAULSVIHJXAD', N'c10a73a3-cf12-41ca-a992-eed62896b03c', NULL, 0, 0, NULL, 1, 0) -GO -IF NOT EXISTS ( SELECT * FROM [dbo].[AspNetUsers] WHERE [Id] = N'ff8a22f6-0991-42ba-9c05-d9ab987cd224') INSERT [dbo].[AspNetUsers] ([Id], [UserName], [NormalizedUserName], [Email], [NormalizedEmail], [EmailConfirmed], [PasswordHash], [SecurityStamp], [ConcurrencyStamp], [PhoneNumber], [PhoneNumberConfirmed], [TwoFactorEnabled], [LockoutEnd], [LockoutEnabled], [AccessFailedCount]) VALUES (N'ff8a22f6-0991-42ba-9c05-d9ab987cd224', N'bob', N'BOB', NULL, NULL, 0, N'AQAAAAEAACcQAAAAEKqG/0MHNgjY5e280CXs3RhHDPZ5+vhjgEstXR/6ZUXcj6dWakXUI21g6Cy735uZUg==', N'JJNUYHF3P6DUNZET4N5HUXZEN4SMC2F7', N'a6eff5a6-1ff2-4806-b9fd-ca2c99205353', NULL, 0, 0, NULL, 1, 0) -GO SET IDENTITY_INSERT [dbo].[AspNetUserClaims] ON GO SET IDENTITY_INSERT [dbo].[AspNetUserClaims] OFF GO SET IDENTITY_INSERT [dbo].[Clients] ON GO -IF NOT EXISTS ( SELECT * FROM [dbo].[Clients] WHERE [Id] = 1) INSERT [dbo].[Clients] ([Id], [Enabled], [ClientId], [ProtocolType], [RequireClientSecret], [ClientName], [Description], [ClientUri], [LogoUri], [RequireConsent], [AllowRememberConsent], [AlwaysIncludeUserClaimsInIdToken], [RequirePkce], [AllowPlainTextPkce], [AllowAccessTokensViaBrowser], [FrontChannelLogoutUri], [FrontChannelLogoutSessionRequired], [BackChannelLogoutUri], [BackChannelLogoutSessionRequired], [AllowOfflineAccess], [IdentityTokenLifetime], [AccessTokenLifetime], [AuthorizationCodeLifetime], [ConsentLifetime], [AbsoluteRefreshTokenLifetime], [SlidingRefreshTokenLifetime], [RefreshTokenUsage], [UpdateAccessTokenClaimsOnRefresh], [RefreshTokenExpiration], [AccessTokenType], [EnableLocalLogin], [IncludeJwtId], [AlwaysSendClientClaims], [ClientClaimsPrefix], [PairWiseSubjectSalt], [Created], [Updated], [LastAccessed], [UserSsoLifetime], [UserCodeType], [DeviceCodeLifetime], [NonEditable]) VALUES (1, 1, N'UserManagementClient', N'oidc', 1, N'User Management Client', NULL, NULL, NULL, 1, 1, 0, 0, 0, 0, NULL, 1, NULL, 1, 1, 300, 3600, 300, NULL, 2592000, 1296000, 1, 0, 1, 0, 1, 0, 0, N'client_', NULL, CAST(N'2019-07-17T19:25:06.3074530' AS DateTime2), NULL, NULL, NULL, NULL, 300, 0) +IF NOT EXISTS ( SELECT * FROM [dbo].[Clients] WHERE [Id] = 1) INSERT [dbo].[Clients] ([Id], [Enabled], [ClientId], [ProtocolType], [RequireClientSecret], [ClientName], [Description], [ClientUri], [LogoUri], [RequireConsent], [AllowRememberConsent], [AlwaysIncludeUserClaimsInIdToken], [RequirePkce], [AllowPlainTextPkce], [AllowAccessTokensViaBrowser], [FrontChannelLogoutUri], [FrontChannelLogoutSessionRequired], [BackChannelLogoutUri], [BackChannelLogoutSessionRequired], [AllowOfflineAccess], [IdentityTokenLifetime], [AccessTokenLifetime], [AuthorizationCodeLifetime], [ConsentLifetime], [AbsoluteRefreshTokenLifetime], [SlidingRefreshTokenLifetime], [RefreshTokenUsage], [UpdateAccessTokenClaimsOnRefresh], [RefreshTokenExpiration], [AccessTokenType], [EnableLocalLogin], [IncludeJwtId], [AlwaysSendClientClaims], [ClientClaimsPrefix], [PairWiseSubjectSalt], [Created], [Updated], [LastAccessed], [UserSsoLifetime], [UserCodeType], [DeviceCodeLifetime], [NonEditable]) VALUES (1, 1, N'UserManagementClient', N'oidc', 1, N'User Management Client', NULL, NULL, NULL, 1, 1, 0, 0, 0, 0, NULL, 1, NULL, 1, 1, 300, 3600, 300, NULL, 2592000, 1296000, 1, 1, 1, 0, 1, 0, 0, N'client_', NULL, CAST(N'2019-07-17T19:25:06.3074530' AS DateTime2), NULL, NULL, NULL, NULL, 300, 0) GO -- INSERT [dbo].[Clients] ([Id], [Enabled], [ClientId], [ProtocolType], [RequireClientSecret], [ClientName], [Description], [ClientUri], [LogoUri], [RequireConsent], [AllowRememberConsent], [AlwaysIncludeUserClaimsInIdToken], [RequirePkce], [AllowPlainTextPkce], [AllowAccessTokensViaBrowser], [FrontChannelLogoutUri], [FrontChannelLogoutSessionRequired], [BackChannelLogoutUri], [BackChannelLogoutSessionRequired], [AllowOfflineAccess], [IdentityTokenLifetime], [AccessTokenLifetime], [AuthorizationCodeLifetime], [ConsentLifetime], [AbsoluteRefreshTokenLifetime], [SlidingRefreshTokenLifetime], [RefreshTokenUsage], [UpdateAccessTokenClaimsOnRefresh], [RefreshTokenExpiration], [AccessTokenType], [EnableLocalLogin], [IncludeJwtId], [AlwaysSendClientClaims], [ClientClaimsPrefix], [PairWiseSubjectSalt], [Created], [Updated], [LastAccessed], [UserSsoLifetime], [UserCodeType], [DeviceCodeLifetime], [NonEditable]) VALUES (2, 1, N'TaskManagementServiceClient', N'oidc', 1, N'Client 17 Client', NULL, N'http://identityserver.io', NULL, 1, 1, 0, 0, 0, 0, NULL, 1, NULL, 1, 0, 300, 3600, 300, NULL, 2592000, 1296000, 1, 0, 1, 0, 1, 0, 0, N'client_', NULL, CAST(N'2019-07-17T19:25:06.4198847' AS DateTime2), NULL, NULL, NULL, NULL, 300, 0) -- GO From 35d26199a20618391c441f214c3e2fc5c1fdb38e Mon Sep 17 00:00:00 2001 From: Tigran TIKSN Torosyan Date: Mon, 19 Aug 2019 22:40:32 +0300 Subject: [PATCH 069/139] Update Data.sql --- Data.sql | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Data.sql b/Data.sql index 330119e..baa366d 100644 --- a/Data.sql +++ b/Data.sql @@ -6,7 +6,7 @@ SET IDENTITY_INSERT [dbo].[AspNetUserClaims] OFF GO SET IDENTITY_INSERT [dbo].[Clients] ON GO -IF NOT EXISTS ( SELECT * FROM [dbo].[Clients] WHERE [Id] = 1) INSERT [dbo].[Clients] ([Id], [Enabled], [ClientId], [ProtocolType], [RequireClientSecret], [ClientName], [Description], [ClientUri], [LogoUri], [RequireConsent], [AllowRememberConsent], [AlwaysIncludeUserClaimsInIdToken], [RequirePkce], [AllowPlainTextPkce], [AllowAccessTokensViaBrowser], [FrontChannelLogoutUri], [FrontChannelLogoutSessionRequired], [BackChannelLogoutUri], [BackChannelLogoutSessionRequired], [AllowOfflineAccess], [IdentityTokenLifetime], [AccessTokenLifetime], [AuthorizationCodeLifetime], [ConsentLifetime], [AbsoluteRefreshTokenLifetime], [SlidingRefreshTokenLifetime], [RefreshTokenUsage], [UpdateAccessTokenClaimsOnRefresh], [RefreshTokenExpiration], [AccessTokenType], [EnableLocalLogin], [IncludeJwtId], [AlwaysSendClientClaims], [ClientClaimsPrefix], [PairWiseSubjectSalt], [Created], [Updated], [LastAccessed], [UserSsoLifetime], [UserCodeType], [DeviceCodeLifetime], [NonEditable]) VALUES (1, 1, N'UserManagementClient', N'oidc', 1, N'User Management Client', NULL, NULL, NULL, 1, 1, 0, 0, 0, 0, NULL, 1, NULL, 1, 1, 300, 3600, 300, NULL, 2592000, 1296000, 1, 1, 1, 0, 1, 0, 0, N'client_', NULL, CAST(N'2019-07-17T19:25:06.3074530' AS DateTime2), NULL, NULL, NULL, NULL, 300, 0) +IF NOT EXISTS ( SELECT * FROM [dbo].[Clients] WHERE [Id] = 1) INSERT [dbo].[Clients] ([Id], [Enabled], [ClientId], [ProtocolType], [RequireClientSecret], [ClientName], [Description], [ClientUri], [LogoUri], [RequireConsent], [AllowRememberConsent], [AlwaysIncludeUserClaimsInIdToken], [RequirePkce], [AllowPlainTextPkce], [AllowAccessTokensViaBrowser], [FrontChannelLogoutUri], [FrontChannelLogoutSessionRequired], [BackChannelLogoutUri], [BackChannelLogoutSessionRequired], [AllowOfflineAccess], [IdentityTokenLifetime], [AccessTokenLifetime], [AuthorizationCodeLifetime], [ConsentLifetime], [AbsoluteRefreshTokenLifetime], [SlidingRefreshTokenLifetime], [RefreshTokenUsage], [UpdateAccessTokenClaimsOnRefresh], [RefreshTokenExpiration], [AccessTokenType], [EnableLocalLogin], [IncludeJwtId], [AlwaysSendClientClaims], [ClientClaimsPrefix], [PairWiseSubjectSalt], [Created], [Updated], [LastAccessed], [UserSsoLifetime], [UserCodeType], [DeviceCodeLifetime], [NonEditable]) VALUES (1, 1, N'UserManagementClient', N'oidc', 1, N'User Management Client', NULL, NULL, NULL, 1, 1, 0, 0, 0, 0, NULL, 1, NULL, 1, 1, 300, 3600, 300, NULL, 2592000, 1296000, 1, 1, 1, 0, 1, 0, 1, N'client_', NULL, CAST(N'2019-07-17T19:25:06.3074530' AS DateTime2), NULL, NULL, NULL, NULL, 300, 0) GO -- INSERT [dbo].[Clients] ([Id], [Enabled], [ClientId], [ProtocolType], [RequireClientSecret], [ClientName], [Description], [ClientUri], [LogoUri], [RequireConsent], [AllowRememberConsent], [AlwaysIncludeUserClaimsInIdToken], [RequirePkce], [AllowPlainTextPkce], [AllowAccessTokensViaBrowser], [FrontChannelLogoutUri], [FrontChannelLogoutSessionRequired], [BackChannelLogoutUri], [BackChannelLogoutSessionRequired], [AllowOfflineAccess], [IdentityTokenLifetime], [AccessTokenLifetime], [AuthorizationCodeLifetime], [ConsentLifetime], [AbsoluteRefreshTokenLifetime], [SlidingRefreshTokenLifetime], [RefreshTokenUsage], [UpdateAccessTokenClaimsOnRefresh], [RefreshTokenExpiration], [AccessTokenType], [EnableLocalLogin], [IncludeJwtId], [AlwaysSendClientClaims], [ClientClaimsPrefix], [PairWiseSubjectSalt], [Created], [Updated], [LastAccessed], [UserSsoLifetime], [UserCodeType], [DeviceCodeLifetime], [NonEditable]) VALUES (2, 1, N'TaskManagementServiceClient', N'oidc', 1, N'Client 17 Client', NULL, N'http://identityserver.io', NULL, 1, 1, 0, 0, 0, 0, NULL, 1, NULL, 1, 0, 300, 3600, 300, NULL, 2592000, 1296000, 1, 0, 1, 0, 1, 0, 0, N'client_', NULL, CAST(N'2019-07-17T19:25:06.4198847' AS DateTime2), NULL, NULL, NULL, NULL, 300, 0) -- GO From 4200d399aaa937cff8ae3d7536a4749e900421b8 Mon Sep 17 00:00:00 2001 From: Tigran TIKSN Torosyan Date: Mon, 19 Aug 2019 23:13:15 +0300 Subject: [PATCH 070/139] Update Data.sql --- Data.sql | 40 +--------------------------------------- 1 file changed, 1 insertion(+), 39 deletions(-) diff --git a/Data.sql b/Data.sql index baa366d..ad0ade9 100644 --- a/Data.sql +++ b/Data.sql @@ -298,45 +298,7 @@ SET IDENTITY_INSERT [dbo].[ClientScopes] OFF GO SET IDENTITY_INSERT [dbo].[ClientSecrets] ON GO --- INSERT [dbo].[ClientSecrets] ([Id], [Description], [Value], [Expiration], [Type], [Created], [ClientId]) VALUES (1, N'Client 18 description', N'z9Vebms2sHHExOJBL2DxERzL1c0/UqE/NYcgMMhNjjWxxKohGhj9mxtIG9LnUSDYDTsEA82Zxn0zHzjkFoCodzaskGq2z/cEzTqy9jbOWORnRyOMSIpoF/4s7frfGYSbn6ScOsG1Ij1E/zaT589GZMdUfM9cHC6rQ3hsieL8JbO1F1eSMh0isSXmR0lU1S8u5ogyipy1PoN18PZISZhaR9qC3tB4tDGqMcupdtTlV25JPaNZyZoX/9jTHEIm2miMiwBv0fdetTFWiFjRC8iukJmI/gv1AX0/at73pJjvg1diHerUdYV36odyAkFBRvMQJYuonttcl4qCL2YYZxCYZw==', CAST(N'2020-07-17T22:25:06.4201984' AS DateTime2), N'SharedSecret', CAST(N'2019-07-17T19:25:06.4203366' AS DateTime2), 19) -GO --- INSERT [dbo].[ClientSecrets] ([Id], [Description], [Value], [Expiration], [Type], [Created], [ClientId]) VALUES (2, N'Client 17 description', N'bQxbOPvos7yWQVKXlSmVv6dS8DZeBsBq+02dtWTrh9R0XJdx9m+VSpErh2I475Bn5uIo/6uZnWdM8D2uS/1Yqrp+IjiRJMk3vaalM39dMgu8Ns+Cw4co2r8wJQUy5/+T09yousxY1cIZ8UIF9Gro7r4x8RQu1uczVUh5Yf/DBdamEl+itXg+ZGAMadFEI+ZVRzZHAPXqZf31dWWE33PCVetsX+IKRjhF8o20IWwV7jJhIxrIewThvK1irEATuoTsShPm2MMESgH+Ag1nNkOQ4IYyIrtZ+trni6I1p5n4MjgIx9dZLxVuXdgYynn2eYZp0sy54JfJkk85/k0hz6NnBQ==', CAST(N'2020-07-17T22:25:06.4197061' AS DateTime2), N'SharedSecret', CAST(N'2019-07-17T19:25:06.4198859' AS DateTime2), 2) -GO --- INSERT [dbo].[ClientSecrets] ([Id], [Description], [Value], [Expiration], [Type], [Created], [ClientId]) VALUES (3, N'Client 9 description', N'JGLbfKw51tDO7TQ4Q047tIyCUUsohntMDyxIGxJPq5Wg4FeJX0ZcNTXSr2IGT3Xxe5VJidyIkZ3mj21/8bq9f0KfmGL2slRGJRsWVtcZRcC3VqB9BSK4F0+5otDZ3EN6FC8gZ7cT+slAA2PAcjvGzUmtyJoaQHof5oATPA+EbEjYm0Gn+d4Io1vWPAG++KUT89WGLBSoX9O1AIA3AL25u5cb59b6HtNrpCQ+QwR4Ye3a/0k5/kAzLztu8vld0aOeHYBqohDPGdQBG4jwaRvPPJ6SXAB0gL1W57iaiyzaDdKAoCaDDr7dC+Z0N+O4Q8Ufn7Vay3WjKZzDE7tYNI2oJg==', CAST(N'2020-07-17T22:25:06.4134142' AS DateTime2), N'SharedSecret', CAST(N'2019-07-17T19:25:06.4136447' AS DateTime2), 10) -GO --- INSERT [dbo].[ClientSecrets] ([Id], [Description], [Value], [Expiration], [Type], [Created], [ClientId]) VALUES (4, N'Client 15 description', N'ghQ3BhumhFuVh6wSn7eD4yFhSC3hBbtzvonhnekw6v5xqn7JKkmstUnr/+5fZBdPoXnRiAhckH1Yw0eRxOdyZJytoPQ5urnXtZPk9gbNFFpykvtvX2H2FRkAcGYCGvBieJpRscMiFue/+dN1eJp2i6/tHzLrAwQ7t4vbOElT1ZqigX1re2KXT3wTr2aOgJ1/iuS2FPu+dnWWFvk3R96dbCM40vYdCw9NVs+12FOerTfuW65lncGf5AoH1WVpXweedUNCVa6mYn/VaL4rCJ4i+GnCSewvOM5ime3rFTWq5PbIF2IPW1eJR/kvjzQCc9xs5N38phYbbjx04LzAukxJKw==', CAST(N'2020-07-17T22:25:06.4170704' AS DateTime2), N'SharedSecret', CAST(N'2019-07-17T19:25:06.4172196' AS DateTime2), 4) -GO -IF NOT EXISTS ( SELECT * FROM [dbo].[ClientSecrets] WHERE [Id] = 5) INSERT [dbo].[ClientSecrets] ([Id], [Description], [Value], [Expiration], [Type], [Created], [ClientId]) VALUES (5, N'User Management Client', N'HR7FsThALW0k6MD1Bo+PLOaJss2Bz7RiTsWIWlsIs+veTtrVf6HmBoY13NRORcWMhvRVr1G1m01pY2NyuNMSHDTUF7e1ua1FoqtGTPPgEwgA+9NmsgSaKLOMbBw+c06zIsCgei4N18xHEAylbk5aiVBacr3/rGkvOu4EKE2RBi5dkykzP5ja8yQGH6L49LlkMuLL5AGQs3ZWcEA/CK5/tgndSNslJ0m3f3+Y+IzGN0U0oPVqxSItzOCz3M9Ymup1h2mZGqzePwuYFGSC97rpkDn7Cmi5FPDmsHv6cUt6XuWVI3EjLR2YVmDq0rC+q9QlykuWXY+BvHJ4smkx487AHQ==', CAST(N'2020-07-17T22:25:06.0026121' AS DateTime2), N'SharedSecret', CAST(N'2019-07-17T19:25:06.3078730' AS DateTime2), 1) -GO --- INSERT [dbo].[ClientSecrets] ([Id], [Description], [Value], [Expiration], [Type], [Created], [ClientId]) VALUES (6, N'Client 1 description', N'tX/t1EnFYxtitAfOQkAoBabVpv/kAVUTZ/+rerNmcpIqtPo+vQDbBOh6+tt57S83imSLDifAObQq2W1KGuho+0J1pI5F6Uel+qEWagZ5mXnPc+9P22RraXtGFOSSkOr/Ev+YBEih8qAc5ROFqc6tsD/zeqb4GCDeCTsT/9RjE2m2FlgH4ZQxLoFPM/VQ5r+smGSknxZEB/neuvsNjfPLuNKqzpJ2ps6qwkwlqeUqjiN7ZmZwv3RTcg9eKCeZJKCNg3ojpRgsNfKV+dzJHl0UtCzYkSeMW/leV1uDGH2nEZ6rlyZqBugKTzF028aXiVOySXT7wZN5ASiAxU68qR117Q==', CAST(N'2020-07-17T22:25:06.4022280' AS DateTime2), N'SharedSecret', CAST(N'2019-07-17T19:25:06.4034719' AS DateTime2), 18) -GO --- INSERT [dbo].[ClientSecrets] ([Id], [Description], [Value], [Expiration], [Type], [Created], [ClientId]) VALUES (7, N'Client 2 description', N'5z4ehzeprUPNQvYYfzPHzQjRzgisUAoxlv7qQZlOpRP+7d5Yasx7oMa39FGD6KhN/oC02E5sQZcz7PE4v2yqfpziGZFVbmM7Vi5C9Vu5rq1VnEMYms3FkaxGJH3bQuBaDHW0oc8W948deIIgKkw7ej5E4iIokeTOHIjkD0nlYBNN6OjmBA3eP6Sz+iJLpWdgCqo/ll++MXqR5oRHMehGOBdu0kJjVXUxZqN9dJfBg3cghASepcm0j7ZtVR6Jlw28bcEK3dIl/LU1DjC8QLzjz2MMJq3kp5NNukOL9gBWqM+WwQfVt6Wk+4dPaZeZ9076iYW7fHBf18YuvSKPmQa03g==', CAST(N'2020-07-17T22:25:06.4073122' AS DateTime2), N'SharedSecret', CAST(N'2019-07-17T19:25:06.4075910' AS DateTime2), 17) -GO --- INSERT [dbo].[ClientSecrets] ([Id], [Description], [Value], [Expiration], [Type], [Created], [ClientId]) VALUES (8, N'Client 3 description', N'ZWElf7UOGL1oKyaUPfu0wvSRbHqbK1436UCm+oMUYYCaijE30s9Ee23+FEU4Q4gzCGCbCJk6QzoD7pV0Zx46U8mm+bPJffAlTPENnBcZ/qa4cvEieVnnYEb3M+M5zxNPxMB7kknUaYpwdrunLKYi6vDvvPQsF9pwvpls0kkM633evthWnWxc4wlmsQKePzOf1EnzSRMeIqzmCtOvZ5ZBZIs+yW7OzEyDktnrxWXX0n9lzf0AGaFpv5srb5KYrHtyJU13X3XF0Qj9b7c5M11GDjhUSZqZQUrp1ArSoly56+VeeJ8YYHIJoPv1AqnqMIs+5WFaRGLg2eQCjYtq8i+rRA==', CAST(N'2020-07-17T22:25:06.4080082' AS DateTime2), N'SharedSecret', CAST(N'2019-07-17T19:25:06.4082220' AS DateTime2), 16) -GO --- INSERT [dbo].[ClientSecrets] ([Id], [Description], [Value], [Expiration], [Type], [Created], [ClientId]) VALUES (9, N'Client 4 description', N'hNHbur0ursVKqZ+jPqH/o36UvftepoJ+n7oV0uefrsxJvSUZVdGAtrOU+rlANaZhjufsXXKw5d1OXRoCGdveq/vTWYB75U6tEwZIyqzJPWkUs0P/slBamNhIy/i2fZzXtU++bdsl5qmYP0lraBswhB+x7mWX3/iqeMGoMhpW9pZqcBRdCs+N782aZnMG7i+9F0bYBY82P9ZWE/QafbOOQkizAfgG03pQI/+Y/XiFpIqR6xvTffEGMzE+Bvbac3EaCyQqUu03tkTMiOGQnkFe0W9qiZKYu8RXrc7Hx8yDdbCNfvJTWlGcWjTWB/UPdpXv4DWGcOrfgVBf0qUfcO93SQ==', CAST(N'2020-07-17T22:25:06.4084995' AS DateTime2), N'SharedSecret', CAST(N'2019-07-17T19:25:06.4087174' AS DateTime2), 15) -GO --- INSERT [dbo].[ClientSecrets] ([Id], [Description], [Value], [Expiration], [Type], [Created], [ClientId]) VALUES (10, N'Client 5 description', N'EjADH08Kdh7OLl7Bs85HNznY55f8Bcat/KH0h6t96UVfvuPfcnWf1b5oobuBwJyRi27mmAffTAxqVSOtFu5yUUUZYvXraMTDOBHZlGMLLDsFY/w9llE9f3HWdB1S8b/P9VB2aF6mpSKpIl/1BrioXinnqLPyNbrz2+OEFPOncUZSCp4TlcTdXr3Zk3PySHi4LRX0a0kM3MCWgox7IpEvArEYo/walclkCUn1GaFGAZNqzObesgb9RS3efBI3YjwsqpHC2aV8npdMj2H/FsMfT4H5EFWqUU+rG13PPBm2LaYNyW8PhCfu7i5OkSOk/S9pvi2RPVLmglhBFr5HrGF+lQ==', CAST(N'2020-07-17T22:25:06.4090311' AS DateTime2), N'SharedSecret', CAST(N'2019-07-17T19:25:06.4092648' AS DateTime2), 14) -GO --- INSERT [dbo].[ClientSecrets] ([Id], [Description], [Value], [Expiration], [Type], [Created], [ClientId]) VALUES (11, N'Client 16 description', N'hMdj8TwTnBE5AfIAqJpfJRF/MVetPd+sqCWaepvJjK3lZK87EOov0UDqbRUpbZTagJauOhvxfUfnt0gWeCF1cHRFG0TqJBUmUF8Wws/KgzuRwPoFGlKR8+doU1miGVkfdP2g41JQ71uBh+q72rp3HTMNhbcncFUisydcgtG8hDYG903SKp/pQdGeg5Nn1hgs8TUllZSh9wOofi8q822KxAKzteNtpfKTI0PmiO3Cut0PMJCblu+iZP9JKqtvv05jFL6QsyE1v0tCkXFQu28W5cNSGsPc7i4TEVDjI3tGI2T1gnMuMga82XBFWAV9UaiQMkToHaSKhyaQfKLQUpzQ+w==', CAST(N'2020-07-17T22:25:06.4185347' AS DateTime2), N'SharedSecret', CAST(N'2019-07-17T19:25:06.4193417' AS DateTime2), 3) -GO --- INSERT [dbo].[ClientSecrets] ([Id], [Description], [Value], [Expiration], [Type], [Created], [ClientId]) VALUES (12, N'Client 6 description', N'YbvyTVQPylkLIidbvysHHS1lfesl71QmRxbObWmmQczP/MLpC+IVrmI3MjC+JpkVD6EaR+STb3FmywU+QVzvZeBbi8JpHhFLUM6I7b0kaCB8uF7Ii/rnPI1QgkDc1m0GR8xPY5vXq/GPzvYVCoGzQmLkwon+J9nlc041GZvQbnlhgqXx1AWFpAxsObwD0jILnEDd9xTjByDyae9MopJVvmB9tIjbwm1dXx18ku4d4aEcKX1b83ZlfXuF/moVOQJ6Fnpchh2qMNnTgJj3ZnUy1YdNL3kV+svpFzcMVsQCRyUaAntzwFuEcvmjiHPebRYFUijiyAqJZRuucm7mndkV0A==', CAST(N'2020-07-17T22:25:06.4095528' AS DateTime2), N'SharedSecret', CAST(N'2019-07-17T19:25:06.4097870' AS DateTime2), 13) -GO --- INSERT [dbo].[ClientSecrets] ([Id], [Description], [Value], [Expiration], [Type], [Created], [ClientId]) VALUES (13, N'Client 8 description', N'BTDx+M7GgkaDP6+7ltS/obLE68+NqUs0cirhnQNIzegmsq4yixlWDQWlapWjkBpEys/gubyaXVvkvYak5eRDO3LGleMmjRaYbt7K5z+2kOEQnNI0aBMri1RSTc6SsSggYi4i3Ps2Hj25R0vdz3YcLiyllEkRDtNemgmP1D9HBry2qYUQk7Tm2X6VeyDITrzeNh+h7B3eDlRbw0Hxp0r+cUGOJyXxC5p3v7rLfJKylkxNsJ4fphme15owtM9y9DIzlgrfOSaW7SqEKS1jE5LBqS30pPes3son71CKwFbKBMuHl+WH01wltsJzm3zrO8MIbwuifk87h7g/t0rWCy3Tug==', CAST(N'2020-07-17T22:25:06.4109746' AS DateTime2), N'SharedSecret', CAST(N'2019-07-17T19:25:06.4130709' AS DateTime2), 11) -GO --- INSERT [dbo].[ClientSecrets] ([Id], [Description], [Value], [Expiration], [Type], [Created], [ClientId]) VALUES (14, N'Client 10 description', N'DbVvyfVLLd+1URn/SNqeo/N67HeAQl3dd4m/+wOF1lnMENUC0/wqU4d7FSOJKlTpdBdkuaAxpspYklFrizLcMHrAMjcEnND3UJnvBCw5VEw11ofrIB24m2oLqkGqv8dVn+Woyfcd5dhHbWkHQaKeHz0FNrWq8A9dB5bN+fKPTJDSmWVHkIpVF/GupLKzsFnHbYoDpYgRqq7VS8FgUOzmuCDYNag8Vo6zrx7D+0xcqlY8BYxni6cHwO63cUXJ9ccFyOyS2nuxixb8UPVqTa5ieaBqI0pffyx40HW5heVI6bpXvjNgys/bi3l1ajuxnXJAVPikXtF8pUm/GQoF+AUxsw==', CAST(N'2020-07-17T22:25:06.4139391' AS DateTime2), N'SharedSecret', CAST(N'2019-07-17T19:25:06.4141546' AS DateTime2), 9) -GO --- INSERT [dbo].[ClientSecrets] ([Id], [Description], [Value], [Expiration], [Type], [Created], [ClientId]) VALUES (15, N'Client 11 description', N'ZjsSj3sCrtGPmNDqFPHHMgN5MOyji+jaGeqgscXVknREt9R2iuPEUknTzzmruzTNUtcCf9VED9pSOHWRYf0LuQZcpV0cUKcgtN2jz7yvL1210l/u0xKeAKf5JFJtM/FMyBYyThXXsQEv4sv3oD8eogkX3I6eHeXzvqS2IitVs4DsVwelfeBI3SFdv/FHp19n2oJJVVdiraswP5BwIY7V2i9KC0k4eSUoz/5tQV70rBZFT0epC14piqlcdT1P17yTh+TB/JwVLmFcIYVY9WxMO5N6K9JGLM/RIICg2wPn2fhC2rl5Mq96LyDmTerY0ZQ8Dzmq1avqTFsV8NwbdFNedA==', CAST(N'2020-07-17T22:25:06.4144141' AS DateTime2), N'SharedSecret', CAST(N'2019-07-17T19:25:06.4146417' AS DateTime2), 8) -GO --- INSERT [dbo].[ClientSecrets] ([Id], [Description], [Value], [Expiration], [Type], [Created], [ClientId]) VALUES (16, N'Client 12 description', N'R4wVG7PTCOT//LFg3uT4Tuxky8o9BE1YjV5jQtJfusyH2KJMu3mIOzDG1a847Hwx+I0vEIeUN0M/vY1UcMYRoEHk2AZCq5Jy25CZdy6dH6DiMUlFMKpF86BfDf7rNMtqtDVuUxR270z6vDT3+sAUoZ3tcj59zHCXn+Rl4p6UhqfEL8L5L8yMa0L8SnN1TvjgS2xg/sGM7ejF1rMvEAyuZjWNMsv+GnHRYAb7gIL8IVHshJcxM4jlOELZNFgYXVs2TeM96Bst4jD6j527kGxmyLViQ4x1fTKtp/qJJOYYuAOrxTKevjg1vqFmNqTqKqfVc2ujtRrPwNCxkEAho75K4g==', CAST(N'2020-07-17T22:25:06.4149037' AS DateTime2), N'SharedSecret', CAST(N'2019-07-17T19:25:06.4151112' AS DateTime2), 7) -GO --- INSERT [dbo].[ClientSecrets] ([Id], [Description], [Value], [Expiration], [Type], [Created], [ClientId]) VALUES (17, N'Client 13 description', N'15oPyzrICXwthOoPRo7CfVK0sXp1AuncBGHtLvcTG+McVMxQGtybqmImh5XksYoizcPP7wzPbNSwM8bY29uEGmgG8vHBcmJ2GAYYT3pT91LWymE0QyvXTOf4n+cVws+GoW0s3r6YYVphWdYGth1ZXDtzARF6UNY9L6YKyNJ6YFY3ka0NJhiUPmgG0+pV0ZXKnkKsocC+DFCW768YjpiI5viAziVvTDUi38Ooc33s6F4QQCqPzr6VeIVddjdpe6/Pfuzx1AJwWlEMicH8FZjTqQdRCE5u+Bc66lWfEtb+uWQU2fWQ+xNbn+XYg0X9mWPsicwwGHNgYYbUt+qs0Ed7Dg==', CAST(N'2020-07-17T22:25:06.4154056' AS DateTime2), N'SharedSecret', CAST(N'2019-07-17T19:25:06.4156335' AS DateTime2), 6) -GO --- INSERT [dbo].[ClientSecrets] ([Id], [Description], [Value], [Expiration], [Type], [Created], [ClientId]) VALUES (18, N'Client 14 description', N'0F3oPKNCrvP1aGiVddI8UPKziAnOofG0d2+8RCivz55ddHWgsCZIRx48Igv3zBECepm5Hb5yQC9rNMU0hmrLRZnKOABcnJ/LakHrkX7lvKteucmO9rHf6jRGNHxhFMGzcdxyLJMQpd757bJ9hq6whncZ1cygPE/n6k3MFmcjalZ/Nx+hc48XTRPrlQj+YmOFla4FRz70EjWNikFGRI921oNc/U+PDxLnAoi5taZH6IjpRoG5HiIXiyXqE+lN0QmEdL6FomQU9oWbHUW2O1yORqG5XP0NvbhgRXIqpPspmjB/NEHowUYj1VD7HQHdYVDIW81HlHULdrcGJF3y6lGJcg==', CAST(N'2020-07-17T22:25:06.4158916' AS DateTime2), N'SharedSecret', CAST(N'2019-07-17T19:25:06.4165633' AS DateTime2), 5) -GO --- INSERT [dbo].[ClientSecrets] ([Id], [Description], [Value], [Expiration], [Type], [Created], [ClientId]) VALUES (19, N'Client 7 description', N'OHPcZPm+FSzJvIBxclgLqSAHBJsffxuRnWDETeyd1R+NtzpqkbIMkxO2/k0J86lWZ8TFltV6sbhXS8aZ+sdALOdg5LsdoBhu+nCHaYHNh6q3buYn1z9JEgWBE0Xrc5lMdtJmqA7tOcasV5tk80g3isMb4ovgGFSnF9G1m43SgofXOvOvZ96cyTUfe4Cj5B+9SoiBz5ENa119v5E8N5052dQUjbhViCLkfxhWwZzTAzKy+FEEULL1yc+VMahNX5GY5aKsj1ZnaMFmnVB4t6rBqbtfij9LNIghHsTpwFd6lyCGvtv6J3TbS5CQnrNifRIk1Ifs7tRSTLAZinCSfahq6w==', CAST(N'2020-07-17T22:25:06.4103042' AS DateTime2), N'SharedSecret', CAST(N'2019-07-17T19:25:06.4106346' AS DateTime2), 12) -GO --- INSERT [dbo].[ClientSecrets] ([Id], [Description], [Value], [Expiration], [Type], [Created], [ClientId]) VALUES (20, N'Client 19 description', N'BAFu7t3aGhQQFIOD/jz9JOvnfwxH5XsFhmBSRh5fg3bZmzxA1wQzSnCUjsfZFItFMkIsf5CLIB6GaWh8iNT2sJAMqWL/vU3mtDWcslezLHHUDBPcMgPlTXseuW6ctsKcnd03zGooRnX0Rstb723H0jz2qHzBGn2MJ1zn4QPfSf1zABV6fGAHq8ae5+w4il0OVuYxpg5G2oNfqqUNQWRxFfzN6O9YTFbc7vy1IjKRVJz/2YocrqPvLCWRGtG7+mphLNLwaqFttgqQVbcSkLhRzlUIDWjZVWZZ3rvKxjGFIPSRU/Zgoer7kSKAjFjr3ZxtQEx7s+wBiNZrlozlou/YCg==', CAST(N'2020-07-17T22:25:06.4205935' AS DateTime2), N'SharedSecret', CAST(N'2019-07-17T19:25:06.4207257' AS DateTime2), 20) +IF NOT EXISTS ( SELECT * FROM [dbo].[ClientSecrets] WHERE [Id] = 1) INSERT [dbo].[ClientSecrets] ([Id], [Description], [Value], [Expiration], [Type], [Created], [ClientId]) VALUES (1, N'User Management Client', N'UD6fn+ADIk5ieMKjcIBT75XFgaM4mxw7tQK+YXL6hc4=', CAST(N'2020-07-17T22:25:06.0026121' AS DateTime2), N'SharedSecret', CAST(N'2019-07-17T19:25:06.3078730' AS DateTime2), 1) GO SET IDENTITY_INSERT [dbo].[ClientSecrets] OFF GO From 8249d24a656a3bda4482ee2b245ede5f35a91a28 Mon Sep 17 00:00:00 2001 From: Tigran TIKSN Torosyan Date: Mon, 19 Aug 2019 23:15:14 +0300 Subject: [PATCH 071/139] Update Data.sql --- Data.sql | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) diff --git a/Data.sql b/Data.sql index ad0ade9..d47d950 100644 --- a/Data.sql +++ b/Data.sql @@ -226,15 +226,11 @@ GO GO -- INSERT [dbo].[ClientScopes] ([Id], [Scope], [ClientId]) VALUES (66, N'api1', 20) GO -IF NOT EXISTS ( SELECT * FROM [dbo].[ClientScopes] WHERE [Id] = 67) INSERT [dbo].[ClientScopes] ([Id], [Scope], [ClientId]) VALUES (67, N'api2.read_only', 1) +IF NOT EXISTS ( SELECT * FROM [dbo].[ClientScopes] WHERE [Id] = 1) INSERT [dbo].[ClientScopes] ([Id], [Scope], [ClientId]) VALUES (1, N'email', 1) GO -IF NOT EXISTS ( SELECT * FROM [dbo].[ClientScopes] WHERE [Id] = 68) INSERT [dbo].[ClientScopes] ([Id], [Scope], [ClientId]) VALUES (68, N'api1', 1) +IF NOT EXISTS ( SELECT * FROM [dbo].[ClientScopes] WHERE [Id] = 2) INSERT [dbo].[ClientScopes] ([Id], [Scope], [ClientId]) VALUES (2, N'profile', 1) GO -IF NOT EXISTS ( SELECT * FROM [dbo].[ClientScopes] WHERE [Id] = 69) INSERT [dbo].[ClientScopes] ([Id], [Scope], [ClientId]) VALUES (69, N'email', 1) -GO -IF NOT EXISTS ( SELECT * FROM [dbo].[ClientScopes] WHERE [Id] = 70) INSERT [dbo].[ClientScopes] ([Id], [Scope], [ClientId]) VALUES (70, N'profile', 1) -GO -IF NOT EXISTS ( SELECT * FROM [dbo].[ClientScopes] WHERE [Id] = 71) INSERT [dbo].[ClientScopes] ([Id], [Scope], [ClientId]) VALUES (71, N'openid', 1) +IF NOT EXISTS ( SELECT * FROM [dbo].[ClientScopes] WHERE [Id] = 3) INSERT [dbo].[ClientScopes] ([Id], [Scope], [ClientId]) VALUES (3, N'openid', 1) GO -- INSERT [dbo].[ClientScopes] ([Id], [Scope], [ClientId]) VALUES (72, N'email', 20) GO From 42bc2e3f084c69cbbc791468664335835d0dd2cd Mon Sep 17 00:00:00 2001 From: Tigran TIKSN Torosyan Date: Mon, 19 Aug 2019 23:45:40 +0300 Subject: [PATCH 072/139] Update Data.sql --- Data.sql | 48 ++++++++++++++++++++++++++++++++++++++++++++---- 1 file changed, 44 insertions(+), 4 deletions(-) diff --git a/Data.sql b/Data.sql index d47d950..015c47a 100644 --- a/Data.sql +++ b/Data.sql @@ -226,11 +226,9 @@ GO GO -- INSERT [dbo].[ClientScopes] ([Id], [Scope], [ClientId]) VALUES (66, N'api1', 20) GO -IF NOT EXISTS ( SELECT * FROM [dbo].[ClientScopes] WHERE [Id] = 1) INSERT [dbo].[ClientScopes] ([Id], [Scope], [ClientId]) VALUES (1, N'email', 1) +IF NOT EXISTS ( SELECT * FROM [dbo].[ClientScopes] WHERE [Id] = 1) INSERT [dbo].[ClientScopes] ([Id], [Scope], [ClientId]) VALUES (1, N'profile', 1) GO -IF NOT EXISTS ( SELECT * FROM [dbo].[ClientScopes] WHERE [Id] = 2) INSERT [dbo].[ClientScopes] ([Id], [Scope], [ClientId]) VALUES (2, N'profile', 1) -GO -IF NOT EXISTS ( SELECT * FROM [dbo].[ClientScopes] WHERE [Id] = 3) INSERT [dbo].[ClientScopes] ([Id], [Scope], [ClientId]) VALUES (3, N'openid', 1) +IF NOT EXISTS ( SELECT * FROM [dbo].[ClientScopes] WHERE [Id] = 2) INSERT [dbo].[ClientScopes] ([Id], [Scope], [ClientId]) VALUES (2, N'openid', 1) GO -- INSERT [dbo].[ClientScopes] ([Id], [Scope], [ClientId]) VALUES (72, N'email', 20) GO @@ -298,3 +296,45 @@ IF NOT EXISTS ( SELECT * FROM [dbo].[ClientSecrets] WHERE [Id] = 1) INSERT [dbo] GO SET IDENTITY_INSERT [dbo].[ClientSecrets] OFF GO +SET IDENTITY_INSERT [dbo].[IdentityResources] ON +GO +IF NOT EXISTS ( SELECT * FROM [dbo].[IdentityResources] WHERE [Id] = 1) INSERT [dbo].[IdentityResources] ([Id], [Created], [Description], [DisplayName], [Emphasize], [Enabled], [Name], [NonEditable], [Required], [ShowInDiscoveryDocument]) VALUES (1, GETDATE(), NULL, N'Your user identifier', 0, 1, N'openid', 1, 1, 1) +GO +IF NOT EXISTS ( SELECT * FROM [dbo].[IdentityResources] WHERE [Id] = 2) INSERT [dbo].[IdentityResources] ([Id], [Created], [Description], [DisplayName], [Emphasize], [Enabled], [Name], [NonEditable], [Required], [ShowInDiscoveryDocument]) VALUES (2, GETDATE(), N'Your user profile information (first name, last name, etc.)', N'User profile', 1, 1, N'profile', 1, 0, 1) +GO +SET IDENTITY_INSERT [dbo].[IdentityResources] OFF +GO +SET IDENTITY_INSERT [dbo].[IdentityClaims] ON +GO +IF NOT EXISTS ( SELECT * FROM [dbo].[IdentityClaims] WHERE [Id] = 1) INSERT [dbo].[IdentityClaims] ([Id], [IdentityResourceId], [Type]) VALUES (1, 1, N'sub') +GO +IF NOT EXISTS ( SELECT * FROM [dbo].[IdentityClaims] WHERE [Id] = 2) INSERT [dbo].[IdentityClaims] ([Id], [IdentityResourceId], [Type]) VALUES (2, 2, N'name') +GO +IF NOT EXISTS ( SELECT * FROM [dbo].[IdentityClaims] WHERE [Id] = 3) INSERT [dbo].[IdentityClaims] ([Id], [IdentityResourceId], [Type]) VALUES (3, 2, N'family_name') +GO +IF NOT EXISTS ( SELECT * FROM [dbo].[IdentityClaims] WHERE [Id] = 4) INSERT [dbo].[IdentityClaims] ([Id], [IdentityResourceId], [Type]) VALUES (4, 2, N'given_name') +GO +IF NOT EXISTS ( SELECT * FROM [dbo].[IdentityClaims] WHERE [Id] = 5) INSERT [dbo].[IdentityClaims] ([Id], [IdentityResourceId], [Type]) VALUES (5, 2, N'middle_name') +GO +IF NOT EXISTS ( SELECT * FROM [dbo].[IdentityClaims] WHERE [Id] = 6) INSERT [dbo].[IdentityClaims] ([Id], [IdentityResourceId], [Type]) VALUES (6, 2, N'nickname') +GO +IF NOT EXISTS ( SELECT * FROM [dbo].[IdentityClaims] WHERE [Id] = 7) INSERT [dbo].[IdentityClaims] ([Id], [IdentityResourceId], [Type]) VALUES (7, 2, N'preferred_username') +GO +IF NOT EXISTS ( SELECT * FROM [dbo].[IdentityClaims] WHERE [Id] = 8) INSERT [dbo].[IdentityClaims] ([Id], [IdentityResourceId], [Type]) VALUES (8, 2, N'profile') +GO +IF NOT EXISTS ( SELECT * FROM [dbo].[IdentityClaims] WHERE [Id] = 9) INSERT [dbo].[IdentityClaims] ([Id], [IdentityResourceId], [Type]) VALUES (9, 2, N'picture') +GO +IF NOT EXISTS ( SELECT * FROM [dbo].[IdentityClaims] WHERE [Id] = 10) INSERT [dbo].[IdentityClaims] ([Id], [IdentityResourceId], [Type]) VALUES (10, 2, N'website') +GO +IF NOT EXISTS ( SELECT * FROM [dbo].[IdentityClaims] WHERE [Id] = 11) INSERT [dbo].[IdentityClaims] ([Id], [IdentityResourceId], [Type]) VALUES (11, 2, N'gender') +GO +IF NOT EXISTS ( SELECT * FROM [dbo].[IdentityClaims] WHERE [Id] = 12) INSERT [dbo].[IdentityClaims] ([Id], [IdentityResourceId], [Type]) VALUES (12, 2, N'birthdate') +GO +IF NOT EXISTS ( SELECT * FROM [dbo].[IdentityClaims] WHERE [Id] = 13) INSERT [dbo].[IdentityClaims] ([Id], [IdentityResourceId], [Type]) VALUES (13, 2, N'zoneinfo') +GO +IF NOT EXISTS ( SELECT * FROM [dbo].[IdentityClaims] WHERE [Id] = 14) INSERT [dbo].[IdentityClaims] ([Id], [IdentityResourceId], [Type]) VALUES (14, 2, N'locale') +GO +IF NOT EXISTS ( SELECT * FROM [dbo].[IdentityClaims] WHERE [Id] = 15) INSERT [dbo].[IdentityClaims] ([Id], [IdentityResourceId], [Type]) VALUES (15, 2, N'updated_at') +GO +SET IDENTITY_INSERT [dbo].[IdentityClaims] OFF +GO \ No newline at end of file From b825d02264f36f45a640cfcdacf4a92c55773135 Mon Sep 17 00:00:00 2001 From: Tigran TIKSN Torosyan Date: Tue, 20 Aug 2019 00:00:27 +0300 Subject: [PATCH 073/139] Update variables.env --- docker-compose/variables.env | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/docker-compose/variables.env b/docker-compose/variables.env index ac82c37..e75eeac 100644 --- a/docker-compose/variables.env +++ b/docker-compose/variables.env @@ -1,2 +1,3 @@ Cors__Origins__0=http://localhost:4200 -Cors__Origins__1=http://localhost:8080 \ No newline at end of file +Cors__Origins__1=http://localhost:8080 +Services__Identity__BaseAddress=http://identity:80 \ No newline at end of file From b1272c74104287cc68ad4a9f2d0dfb2ac6781aea Mon Sep 17 00:00:00 2001 From: Tigran TIKSN Torosyan Date: Sun, 25 Aug 2019 16:08:20 +0300 Subject: [PATCH 074/139] Update dependencies.yml --- docker-compose/dependencies.yml | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/docker-compose/dependencies.yml b/docker-compose/dependencies.yml index f7ea59b..1f4a4e4 100644 --- a/docker-compose/dependencies.yml +++ b/docker-compose/dependencies.yml @@ -22,6 +22,11 @@ services: networks: - lionize + redis: + image: "redis:alpine" + networks: + - lionize + rabbitmq: image: rabbitmq:management-alpine container_name: rabbitmq From cb5426b918cc49d9a171e80f991ce3fe84e56d0e Mon Sep 17 00:00:00 2001 From: Tigran TIKSN Torosyan Date: Sun, 25 Aug 2019 16:20:08 +0300 Subject: [PATCH 075/139] Update dependencies.yml --- docker-compose/dependencies.yml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/docker-compose/dependencies.yml b/docker-compose/dependencies.yml index 1f4a4e4..3e98a69 100644 --- a/docker-compose/dependencies.yml +++ b/docker-compose/dependencies.yml @@ -24,6 +24,9 @@ services: redis: image: "redis:alpine" + command: redis-server --requirepass UmimfRKpdTj1VJjK + ports: + - "6379:6379" networks: - lionize From 4d4eb92802f56ce18f52fc6b351ae6ac4eb593ec Mon Sep 17 00:00:00 2001 From: Tigran TIKSN Torosyan Date: Sun, 25 Aug 2019 17:30:32 +0300 Subject: [PATCH 076/139] Update Data.sql --- Data.sql | 50 +++++++++++--------------------------------------- 1 file changed, 11 insertions(+), 39 deletions(-) diff --git a/Data.sql b/Data.sql index 015c47a..333db31 100644 --- a/Data.sql +++ b/Data.sql @@ -8,44 +8,6 @@ SET IDENTITY_INSERT [dbo].[Clients] ON GO IF NOT EXISTS ( SELECT * FROM [dbo].[Clients] WHERE [Id] = 1) INSERT [dbo].[Clients] ([Id], [Enabled], [ClientId], [ProtocolType], [RequireClientSecret], [ClientName], [Description], [ClientUri], [LogoUri], [RequireConsent], [AllowRememberConsent], [AlwaysIncludeUserClaimsInIdToken], [RequirePkce], [AllowPlainTextPkce], [AllowAccessTokensViaBrowser], [FrontChannelLogoutUri], [FrontChannelLogoutSessionRequired], [BackChannelLogoutUri], [BackChannelLogoutSessionRequired], [AllowOfflineAccess], [IdentityTokenLifetime], [AccessTokenLifetime], [AuthorizationCodeLifetime], [ConsentLifetime], [AbsoluteRefreshTokenLifetime], [SlidingRefreshTokenLifetime], [RefreshTokenUsage], [UpdateAccessTokenClaimsOnRefresh], [RefreshTokenExpiration], [AccessTokenType], [EnableLocalLogin], [IncludeJwtId], [AlwaysSendClientClaims], [ClientClaimsPrefix], [PairWiseSubjectSalt], [Created], [Updated], [LastAccessed], [UserSsoLifetime], [UserCodeType], [DeviceCodeLifetime], [NonEditable]) VALUES (1, 1, N'UserManagementClient', N'oidc', 1, N'User Management Client', NULL, NULL, NULL, 1, 1, 0, 0, 0, 0, NULL, 1, NULL, 1, 1, 300, 3600, 300, NULL, 2592000, 1296000, 1, 1, 1, 0, 1, 0, 1, N'client_', NULL, CAST(N'2019-07-17T19:25:06.3074530' AS DateTime2), NULL, NULL, NULL, NULL, 300, 0) GO --- INSERT [dbo].[Clients] ([Id], [Enabled], [ClientId], [ProtocolType], [RequireClientSecret], [ClientName], [Description], [ClientUri], [LogoUri], [RequireConsent], [AllowRememberConsent], [AlwaysIncludeUserClaimsInIdToken], [RequirePkce], [AllowPlainTextPkce], [AllowAccessTokensViaBrowser], [FrontChannelLogoutUri], [FrontChannelLogoutSessionRequired], [BackChannelLogoutUri], [BackChannelLogoutSessionRequired], [AllowOfflineAccess], [IdentityTokenLifetime], [AccessTokenLifetime], [AuthorizationCodeLifetime], [ConsentLifetime], [AbsoluteRefreshTokenLifetime], [SlidingRefreshTokenLifetime], [RefreshTokenUsage], [UpdateAccessTokenClaimsOnRefresh], [RefreshTokenExpiration], [AccessTokenType], [EnableLocalLogin], [IncludeJwtId], [AlwaysSendClientClaims], [ClientClaimsPrefix], [PairWiseSubjectSalt], [Created], [Updated], [LastAccessed], [UserSsoLifetime], [UserCodeType], [DeviceCodeLifetime], [NonEditable]) VALUES (2, 1, N'TaskManagementServiceClient', N'oidc', 1, N'Client 17 Client', NULL, N'http://identityserver.io', NULL, 1, 1, 0, 0, 0, 0, NULL, 1, NULL, 1, 0, 300, 3600, 300, NULL, 2592000, 1296000, 1, 0, 1, 0, 1, 0, 0, N'client_', NULL, CAST(N'2019-07-17T19:25:06.4198847' AS DateTime2), NULL, NULL, NULL, NULL, 300, 0) --- GO --- INSERT [dbo].[Clients] ([Id], [Enabled], [ClientId], [ProtocolType], [RequireClientSecret], [ClientName], [Description], [ClientUri], [LogoUri], [RequireConsent], [AllowRememberConsent], [AlwaysIncludeUserClaimsInIdToken], [RequirePkce], [AllowPlainTextPkce], [AllowAccessTokensViaBrowser], [FrontChannelLogoutUri], [FrontChannelLogoutSessionRequired], [BackChannelLogoutUri], [BackChannelLogoutSessionRequired], [AllowOfflineAccess], [IdentityTokenLifetime], [AccessTokenLifetime], [AuthorizationCodeLifetime], [ConsentLifetime], [AbsoluteRefreshTokenLifetime], [SlidingRefreshTokenLifetime], [RefreshTokenUsage], [UpdateAccessTokenClaimsOnRefresh], [RefreshTokenExpiration], [AccessTokenType], [EnableLocalLogin], [IncludeJwtId], [AlwaysSendClientClaims], [ClientClaimsPrefix], [PairWiseSubjectSalt], [Created], [Updated], [LastAccessed], [UserSsoLifetime], [UserCodeType], [DeviceCodeLifetime], [NonEditable]) VALUES (3, 1, N'Client_16', N'oidc', 1, N'Client 16 Client', NULL, N'http://identityserver.io', NULL, 1, 1, 0, 0, 0, 0, NULL, 1, NULL, 1, 0, 300, 3600, 300, NULL, 2592000, 1296000, 1, 0, 1, 0, 1, 0, 0, N'client_', NULL, CAST(N'2019-07-17T19:25:06.4193397' AS DateTime2), NULL, NULL, NULL, NULL, 300, 0) --- GO --- INSERT [dbo].[Clients] ([Id], [Enabled], [ClientId], [ProtocolType], [RequireClientSecret], [ClientName], [Description], [ClientUri], [LogoUri], [RequireConsent], [AllowRememberConsent], [AlwaysIncludeUserClaimsInIdToken], [RequirePkce], [AllowPlainTextPkce], [AllowAccessTokensViaBrowser], [FrontChannelLogoutUri], [FrontChannelLogoutSessionRequired], [BackChannelLogoutUri], [BackChannelLogoutSessionRequired], [AllowOfflineAccess], [IdentityTokenLifetime], [AccessTokenLifetime], [AuthorizationCodeLifetime], [ConsentLifetime], [AbsoluteRefreshTokenLifetime], [SlidingRefreshTokenLifetime], [RefreshTokenUsage], [UpdateAccessTokenClaimsOnRefresh], [RefreshTokenExpiration], [AccessTokenType], [EnableLocalLogin], [IncludeJwtId], [AlwaysSendClientClaims], [ClientClaimsPrefix], [PairWiseSubjectSalt], [Created], [Updated], [LastAccessed], [UserSsoLifetime], [UserCodeType], [DeviceCodeLifetime], [NonEditable]) VALUES (4, 1, N'Client_15', N'oidc', 1, N'Client 15 Client', NULL, N'http://identityserver.io', NULL, 1, 1, 0, 0, 0, 0, NULL, 1, NULL, 1, 0, 300, 3600, 300, NULL, 2592000, 1296000, 1, 0, 1, 0, 1, 0, 0, N'client_', NULL, CAST(N'2019-07-17T19:25:06.4172185' AS DateTime2), NULL, NULL, NULL, NULL, 300, 0) --- GO --- INSERT [dbo].[Clients] ([Id], [Enabled], [ClientId], [ProtocolType], [RequireClientSecret], [ClientName], [Description], [ClientUri], [LogoUri], [RequireConsent], [AllowRememberConsent], [AlwaysIncludeUserClaimsInIdToken], [RequirePkce], [AllowPlainTextPkce], [AllowAccessTokensViaBrowser], [FrontChannelLogoutUri], [FrontChannelLogoutSessionRequired], [BackChannelLogoutUri], [BackChannelLogoutSessionRequired], [AllowOfflineAccess], [IdentityTokenLifetime], [AccessTokenLifetime], [AuthorizationCodeLifetime], [ConsentLifetime], [AbsoluteRefreshTokenLifetime], [SlidingRefreshTokenLifetime], [RefreshTokenUsage], [UpdateAccessTokenClaimsOnRefresh], [RefreshTokenExpiration], [AccessTokenType], [EnableLocalLogin], [IncludeJwtId], [AlwaysSendClientClaims], [ClientClaimsPrefix], [PairWiseSubjectSalt], [Created], [Updated], [LastAccessed], [UserSsoLifetime], [UserCodeType], [DeviceCodeLifetime], [NonEditable]) VALUES (5, 1, N'Client_14', N'oidc', 1, N'Client 14 Client', NULL, N'http://identityserver.io', NULL, 1, 1, 0, 0, 0, 0, NULL, 1, NULL, 1, 0, 300, 3600, 300, NULL, 2592000, 1296000, 1, 0, 1, 0, 1, 0, 0, N'client_', NULL, CAST(N'2019-07-17T19:25:06.4165624' AS DateTime2), NULL, NULL, NULL, NULL, 300, 0) --- GO --- INSERT [dbo].[Clients] ([Id], [Enabled], [ClientId], [ProtocolType], [RequireClientSecret], [ClientName], [Description], [ClientUri], [LogoUri], [RequireConsent], [AllowRememberConsent], [AlwaysIncludeUserClaimsInIdToken], [RequirePkce], [AllowPlainTextPkce], [AllowAccessTokensViaBrowser], [FrontChannelLogoutUri], [FrontChannelLogoutSessionRequired], [BackChannelLogoutUri], [BackChannelLogoutSessionRequired], [AllowOfflineAccess], [IdentityTokenLifetime], [AccessTokenLifetime], [AuthorizationCodeLifetime], [ConsentLifetime], [AbsoluteRefreshTokenLifetime], [SlidingRefreshTokenLifetime], [RefreshTokenUsage], [UpdateAccessTokenClaimsOnRefresh], [RefreshTokenExpiration], [AccessTokenType], [EnableLocalLogin], [IncludeJwtId], [AlwaysSendClientClaims], [ClientClaimsPrefix], [PairWiseSubjectSalt], [Created], [Updated], [LastAccessed], [UserSsoLifetime], [UserCodeType], [DeviceCodeLifetime], [NonEditable]) VALUES (6, 1, N'Client_13', N'oidc', 1, N'Client 13 Client', NULL, N'http://identityserver.io', NULL, 1, 1, 0, 0, 0, 0, NULL, 1, NULL, 1, 0, 300, 3600, 300, NULL, 2592000, 1296000, 1, 0, 1, 0, 1, 0, 0, N'client_', NULL, CAST(N'2019-07-17T19:25:06.4156326' AS DateTime2), NULL, NULL, NULL, NULL, 300, 0) --- GO --- INSERT [dbo].[Clients] ([Id], [Enabled], [ClientId], [ProtocolType], [RequireClientSecret], [ClientName], [Description], [ClientUri], [LogoUri], [RequireConsent], [AllowRememberConsent], [AlwaysIncludeUserClaimsInIdToken], [RequirePkce], [AllowPlainTextPkce], [AllowAccessTokensViaBrowser], [FrontChannelLogoutUri], [FrontChannelLogoutSessionRequired], [BackChannelLogoutUri], [BackChannelLogoutSessionRequired], [AllowOfflineAccess], [IdentityTokenLifetime], [AccessTokenLifetime], [AuthorizationCodeLifetime], [ConsentLifetime], [AbsoluteRefreshTokenLifetime], [SlidingRefreshTokenLifetime], [RefreshTokenUsage], [UpdateAccessTokenClaimsOnRefresh], [RefreshTokenExpiration], [AccessTokenType], [EnableLocalLogin], [IncludeJwtId], [AlwaysSendClientClaims], [ClientClaimsPrefix], [PairWiseSubjectSalt], [Created], [Updated], [LastAccessed], [UserSsoLifetime], [UserCodeType], [DeviceCodeLifetime], [NonEditable]) VALUES (7, 1, N'Client_12', N'oidc', 1, N'Client 12 Client', NULL, N'http://identityserver.io', NULL, 1, 1, 0, 0, 0, 0, NULL, 1, NULL, 1, 0, 300, 3600, 300, NULL, 2592000, 1296000, 1, 0, 1, 0, 1, 0, 0, N'client_', NULL, CAST(N'2019-07-17T19:25:06.4151104' AS DateTime2), NULL, NULL, NULL, NULL, 300, 0) --- GO --- INSERT [dbo].[Clients] ([Id], [Enabled], [ClientId], [ProtocolType], [RequireClientSecret], [ClientName], [Description], [ClientUri], [LogoUri], [RequireConsent], [AllowRememberConsent], [AlwaysIncludeUserClaimsInIdToken], [RequirePkce], [AllowPlainTextPkce], [AllowAccessTokensViaBrowser], [FrontChannelLogoutUri], [FrontChannelLogoutSessionRequired], [BackChannelLogoutUri], [BackChannelLogoutSessionRequired], [AllowOfflineAccess], [IdentityTokenLifetime], [AccessTokenLifetime], [AuthorizationCodeLifetime], [ConsentLifetime], [AbsoluteRefreshTokenLifetime], [SlidingRefreshTokenLifetime], [RefreshTokenUsage], [UpdateAccessTokenClaimsOnRefresh], [RefreshTokenExpiration], [AccessTokenType], [EnableLocalLogin], [IncludeJwtId], [AlwaysSendClientClaims], [ClientClaimsPrefix], [PairWiseSubjectSalt], [Created], [Updated], [LastAccessed], [UserSsoLifetime], [UserCodeType], [DeviceCodeLifetime], [NonEditable]) VALUES (8, 1, N'Client_11', N'oidc', 1, N'Client 11 Client', NULL, N'http://identityserver.io', NULL, 1, 1, 0, 0, 0, 0, NULL, 1, NULL, 1, 0, 300, 3600, 300, NULL, 2592000, 1296000, 1, 0, 1, 0, 1, 0, 0, N'client_', NULL, CAST(N'2019-07-17T19:25:06.4146409' AS DateTime2), NULL, NULL, NULL, NULL, 300, 0) --- GO --- INSERT [dbo].[Clients] ([Id], [Enabled], [ClientId], [ProtocolType], [RequireClientSecret], [ClientName], [Description], [ClientUri], [LogoUri], [RequireConsent], [AllowRememberConsent], [AlwaysIncludeUserClaimsInIdToken], [RequirePkce], [AllowPlainTextPkce], [AllowAccessTokensViaBrowser], [FrontChannelLogoutUri], [FrontChannelLogoutSessionRequired], [BackChannelLogoutUri], [BackChannelLogoutSessionRequired], [AllowOfflineAccess], [IdentityTokenLifetime], [AccessTokenLifetime], [AuthorizationCodeLifetime], [ConsentLifetime], [AbsoluteRefreshTokenLifetime], [SlidingRefreshTokenLifetime], [RefreshTokenUsage], [UpdateAccessTokenClaimsOnRefresh], [RefreshTokenExpiration], [AccessTokenType], [EnableLocalLogin], [IncludeJwtId], [AlwaysSendClientClaims], [ClientClaimsPrefix], [PairWiseSubjectSalt], [Created], [Updated], [LastAccessed], [UserSsoLifetime], [UserCodeType], [DeviceCodeLifetime], [NonEditable]) VALUES (9, 1, N'Client_10', N'oidc', 1, N'Client 10 Client', NULL, N'http://identityserver.io', NULL, 1, 1, 0, 0, 0, 0, NULL, 1, NULL, 1, 0, 300, 3600, 300, NULL, 2592000, 1296000, 1, 0, 1, 0, 1, 0, 0, N'client_', NULL, CAST(N'2019-07-17T19:25:06.4141537' AS DateTime2), NULL, NULL, NULL, NULL, 300, 0) --- GO --- INSERT [dbo].[Clients] ([Id], [Enabled], [ClientId], [ProtocolType], [RequireClientSecret], [ClientName], [Description], [ClientUri], [LogoUri], [RequireConsent], [AllowRememberConsent], [AlwaysIncludeUserClaimsInIdToken], [RequirePkce], [AllowPlainTextPkce], [AllowAccessTokensViaBrowser], [FrontChannelLogoutUri], [FrontChannelLogoutSessionRequired], [BackChannelLogoutUri], [BackChannelLogoutSessionRequired], [AllowOfflineAccess], [IdentityTokenLifetime], [AccessTokenLifetime], [AuthorizationCodeLifetime], [ConsentLifetime], [AbsoluteRefreshTokenLifetime], [SlidingRefreshTokenLifetime], [RefreshTokenUsage], [UpdateAccessTokenClaimsOnRefresh], [RefreshTokenExpiration], [AccessTokenType], [EnableLocalLogin], [IncludeJwtId], [AlwaysSendClientClaims], [ClientClaimsPrefix], [PairWiseSubjectSalt], [Created], [Updated], [LastAccessed], [UserSsoLifetime], [UserCodeType], [DeviceCodeLifetime], [NonEditable]) VALUES (10, 1, N'Client_9', N'oidc', 1, N'Client 9 Client', NULL, N'http://identityserver.io', NULL, 1, 1, 0, 0, 0, 0, NULL, 1, NULL, 1, 0, 300, 3600, 300, NULL, 2592000, 1296000, 1, 0, 1, 0, 1, 0, 0, N'client_', NULL, CAST(N'2019-07-17T19:25:06.4136438' AS DateTime2), NULL, NULL, NULL, NULL, 300, 0) --- GO --- INSERT [dbo].[Clients] ([Id], [Enabled], [ClientId], [ProtocolType], [RequireClientSecret], [ClientName], [Description], [ClientUri], [LogoUri], [RequireConsent], [AllowRememberConsent], [AlwaysIncludeUserClaimsInIdToken], [RequirePkce], [AllowPlainTextPkce], [AllowAccessTokensViaBrowser], [FrontChannelLogoutUri], [FrontChannelLogoutSessionRequired], [BackChannelLogoutUri], [BackChannelLogoutSessionRequired], [AllowOfflineAccess], [IdentityTokenLifetime], [AccessTokenLifetime], [AuthorizationCodeLifetime], [ConsentLifetime], [AbsoluteRefreshTokenLifetime], [SlidingRefreshTokenLifetime], [RefreshTokenUsage], [UpdateAccessTokenClaimsOnRefresh], [RefreshTokenExpiration], [AccessTokenType], [EnableLocalLogin], [IncludeJwtId], [AlwaysSendClientClaims], [ClientClaimsPrefix], [PairWiseSubjectSalt], [Created], [Updated], [LastAccessed], [UserSsoLifetime], [UserCodeType], [DeviceCodeLifetime], [NonEditable]) VALUES (11, 1, N'Client_8', N'oidc', 1, N'Client 8 Client', NULL, N'http://identityserver.io', NULL, 1, 1, 0, 0, 0, 0, NULL, 1, NULL, 1, 0, 300, 3600, 300, NULL, 2592000, 1296000, 1, 0, 1, 0, 1, 0, 0, N'client_', NULL, CAST(N'2019-07-17T19:25:06.4130695' AS DateTime2), NULL, NULL, NULL, NULL, 300, 0) --- GO --- INSERT [dbo].[Clients] ([Id], [Enabled], [ClientId], [ProtocolType], [RequireClientSecret], [ClientName], [Description], [ClientUri], [LogoUri], [RequireConsent], [AllowRememberConsent], [AlwaysIncludeUserClaimsInIdToken], [RequirePkce], [AllowPlainTextPkce], [AllowAccessTokensViaBrowser], [FrontChannelLogoutUri], [FrontChannelLogoutSessionRequired], [BackChannelLogoutUri], [BackChannelLogoutSessionRequired], [AllowOfflineAccess], [IdentityTokenLifetime], [AccessTokenLifetime], [AuthorizationCodeLifetime], [ConsentLifetime], [AbsoluteRefreshTokenLifetime], [SlidingRefreshTokenLifetime], [RefreshTokenUsage], [UpdateAccessTokenClaimsOnRefresh], [RefreshTokenExpiration], [AccessTokenType], [EnableLocalLogin], [IncludeJwtId], [AlwaysSendClientClaims], [ClientClaimsPrefix], [PairWiseSubjectSalt], [Created], [Updated], [LastAccessed], [UserSsoLifetime], [UserCodeType], [DeviceCodeLifetime], [NonEditable]) VALUES (12, 1, N'Client_7', N'oidc', 1, N'Client 7 Client', NULL, N'http://identityserver.io', NULL, 1, 1, 0, 0, 0, 0, NULL, 1, NULL, 1, 0, 300, 3600, 300, NULL, 2592000, 1296000, 1, 0, 1, 0, 1, 0, 0, N'client_', NULL, CAST(N'2019-07-17T19:25:06.4106335' AS DateTime2), NULL, NULL, NULL, NULL, 300, 0) --- GO --- INSERT [dbo].[Clients] ([Id], [Enabled], [ClientId], [ProtocolType], [RequireClientSecret], [ClientName], [Description], [ClientUri], [LogoUri], [RequireConsent], [AllowRememberConsent], [AlwaysIncludeUserClaimsInIdToken], [RequirePkce], [AllowPlainTextPkce], [AllowAccessTokensViaBrowser], [FrontChannelLogoutUri], [FrontChannelLogoutSessionRequired], [BackChannelLogoutUri], [BackChannelLogoutSessionRequired], [AllowOfflineAccess], [IdentityTokenLifetime], [AccessTokenLifetime], [AuthorizationCodeLifetime], [ConsentLifetime], [AbsoluteRefreshTokenLifetime], [SlidingRefreshTokenLifetime], [RefreshTokenUsage], [UpdateAccessTokenClaimsOnRefresh], [RefreshTokenExpiration], [AccessTokenType], [EnableLocalLogin], [IncludeJwtId], [AlwaysSendClientClaims], [ClientClaimsPrefix], [PairWiseSubjectSalt], [Created], [Updated], [LastAccessed], [UserSsoLifetime], [UserCodeType], [DeviceCodeLifetime], [NonEditable]) VALUES (13, 1, N'Client_6', N'oidc', 1, N'Client 6 Client', NULL, N'http://identityserver.io', NULL, 1, 1, 0, 0, 0, 0, NULL, 1, NULL, 1, 0, 300, 3600, 300, NULL, 2592000, 1296000, 1, 0, 1, 0, 1, 0, 0, N'client_', NULL, CAST(N'2019-07-17T19:25:06.4097861' AS DateTime2), NULL, NULL, NULL, NULL, 300, 0) --- GO --- INSERT [dbo].[Clients] ([Id], [Enabled], [ClientId], [ProtocolType], [RequireClientSecret], [ClientName], [Description], [ClientUri], [LogoUri], [RequireConsent], [AllowRememberConsent], [AlwaysIncludeUserClaimsInIdToken], [RequirePkce], [AllowPlainTextPkce], [AllowAccessTokensViaBrowser], [FrontChannelLogoutUri], [FrontChannelLogoutSessionRequired], [BackChannelLogoutUri], [BackChannelLogoutSessionRequired], [AllowOfflineAccess], [IdentityTokenLifetime], [AccessTokenLifetime], [AuthorizationCodeLifetime], [ConsentLifetime], [AbsoluteRefreshTokenLifetime], [SlidingRefreshTokenLifetime], [RefreshTokenUsage], [UpdateAccessTokenClaimsOnRefresh], [RefreshTokenExpiration], [AccessTokenType], [EnableLocalLogin], [IncludeJwtId], [AlwaysSendClientClaims], [ClientClaimsPrefix], [PairWiseSubjectSalt], [Created], [Updated], [LastAccessed], [UserSsoLifetime], [UserCodeType], [DeviceCodeLifetime], [NonEditable]) VALUES (14, 1, N'Client_5', N'oidc', 1, N'Client 5 Client', NULL, N'http://identityserver.io', NULL, 1, 1, 0, 0, 0, 0, NULL, 1, NULL, 1, 0, 300, 3600, 300, NULL, 2592000, 1296000, 1, 0, 1, 0, 1, 0, 0, N'client_', NULL, CAST(N'2019-07-17T19:25:06.4092640' AS DateTime2), NULL, NULL, NULL, NULL, 300, 0) --- GO --- INSERT [dbo].[Clients] ([Id], [Enabled], [ClientId], [ProtocolType], [RequireClientSecret], [ClientName], [Description], [ClientUri], [LogoUri], [RequireConsent], [AllowRememberConsent], [AlwaysIncludeUserClaimsInIdToken], [RequirePkce], [AllowPlainTextPkce], [AllowAccessTokensViaBrowser], [FrontChannelLogoutUri], [FrontChannelLogoutSessionRequired], [BackChannelLogoutUri], [BackChannelLogoutSessionRequired], [AllowOfflineAccess], [IdentityTokenLifetime], [AccessTokenLifetime], [AuthorizationCodeLifetime], [ConsentLifetime], [AbsoluteRefreshTokenLifetime], [SlidingRefreshTokenLifetime], [RefreshTokenUsage], [UpdateAccessTokenClaimsOnRefresh], [RefreshTokenExpiration], [AccessTokenType], [EnableLocalLogin], [IncludeJwtId], [AlwaysSendClientClaims], [ClientClaimsPrefix], [PairWiseSubjectSalt], [Created], [Updated], [LastAccessed], [UserSsoLifetime], [UserCodeType], [DeviceCodeLifetime], [NonEditable]) VALUES (15, 1, N'Client_4', N'oidc', 1, N'Client 4 Client', NULL, N'http://identityserver.io', NULL, 1, 1, 0, 0, 0, 0, NULL, 1, NULL, 1, 0, 300, 3600, 300, NULL, 2592000, 1296000, 1, 0, 1, 0, 1, 0, 0, N'client_', NULL, CAST(N'2019-07-17T19:25:06.4087165' AS DateTime2), NULL, NULL, NULL, NULL, 300, 0) --- GO --- INSERT [dbo].[Clients] ([Id], [Enabled], [ClientId], [ProtocolType], [RequireClientSecret], [ClientName], [Description], [ClientUri], [LogoUri], [RequireConsent], [AllowRememberConsent], [AlwaysIncludeUserClaimsInIdToken], [RequirePkce], [AllowPlainTextPkce], [AllowAccessTokensViaBrowser], [FrontChannelLogoutUri], [FrontChannelLogoutSessionRequired], [BackChannelLogoutUri], [BackChannelLogoutSessionRequired], [AllowOfflineAccess], [IdentityTokenLifetime], [AccessTokenLifetime], [AuthorizationCodeLifetime], [ConsentLifetime], [AbsoluteRefreshTokenLifetime], [SlidingRefreshTokenLifetime], [RefreshTokenUsage], [UpdateAccessTokenClaimsOnRefresh], [RefreshTokenExpiration], [AccessTokenType], [EnableLocalLogin], [IncludeJwtId], [AlwaysSendClientClaims], [ClientClaimsPrefix], [PairWiseSubjectSalt], [Created], [Updated], [LastAccessed], [UserSsoLifetime], [UserCodeType], [DeviceCodeLifetime], [NonEditable]) VALUES (16, 1, N'Client_3', N'oidc', 1, N'Client 3 Client', NULL, N'http://identityserver.io', NULL, 1, 1, 0, 0, 0, 0, NULL, 1, NULL, 1, 0, 300, 3600, 300, NULL, 2592000, 1296000, 1, 0, 1, 0, 1, 0, 0, N'client_', NULL, CAST(N'2019-07-17T19:25:06.4082211' AS DateTime2), NULL, NULL, NULL, NULL, 300, 0) --- GO --- INSERT [dbo].[Clients] ([Id], [Enabled], [ClientId], [ProtocolType], [RequireClientSecret], [ClientName], [Description], [ClientUri], [LogoUri], [RequireConsent], [AllowRememberConsent], [AlwaysIncludeUserClaimsInIdToken], [RequirePkce], [AllowPlainTextPkce], [AllowAccessTokensViaBrowser], [FrontChannelLogoutUri], [FrontChannelLogoutSessionRequired], [BackChannelLogoutUri], [BackChannelLogoutSessionRequired], [AllowOfflineAccess], [IdentityTokenLifetime], [AccessTokenLifetime], [AuthorizationCodeLifetime], [ConsentLifetime], [AbsoluteRefreshTokenLifetime], [SlidingRefreshTokenLifetime], [RefreshTokenUsage], [UpdateAccessTokenClaimsOnRefresh], [RefreshTokenExpiration], [AccessTokenType], [EnableLocalLogin], [IncludeJwtId], [AlwaysSendClientClaims], [ClientClaimsPrefix], [PairWiseSubjectSalt], [Created], [Updated], [LastAccessed], [UserSsoLifetime], [UserCodeType], [DeviceCodeLifetime], [NonEditable]) VALUES (17, 1, N'Client_2', N'oidc', 1, N'Client 2 Client', NULL, N'http://identityserver.io', NULL, 1, 1, 0, 0, 0, 0, NULL, 1, NULL, 1, 0, 300, 3600, 300, NULL, 2592000, 1296000, 1, 0, 1, 0, 1, 0, 0, N'client_', NULL, CAST(N'2019-07-17T19:25:06.4075896' AS DateTime2), NULL, NULL, NULL, NULL, 300, 0) --- GO --- INSERT [dbo].[Clients] ([Id], [Enabled], [ClientId], [ProtocolType], [RequireClientSecret], [ClientName], [Description], [ClientUri], [LogoUri], [RequireConsent], [AllowRememberConsent], [AlwaysIncludeUserClaimsInIdToken], [RequirePkce], [AllowPlainTextPkce], [AllowAccessTokensViaBrowser], [FrontChannelLogoutUri], [FrontChannelLogoutSessionRequired], [BackChannelLogoutUri], [BackChannelLogoutSessionRequired], [AllowOfflineAccess], [IdentityTokenLifetime], [AccessTokenLifetime], [AuthorizationCodeLifetime], [ConsentLifetime], [AbsoluteRefreshTokenLifetime], [SlidingRefreshTokenLifetime], [RefreshTokenUsage], [UpdateAccessTokenClaimsOnRefresh], [RefreshTokenExpiration], [AccessTokenType], [EnableLocalLogin], [IncludeJwtId], [AlwaysSendClientClaims], [ClientClaimsPrefix], [PairWiseSubjectSalt], [Created], [Updated], [LastAccessed], [UserSsoLifetime], [UserCodeType], [DeviceCodeLifetime], [NonEditable]) VALUES (18, 1, N'Client_1', N'oidc', 1, N'Client 1 Client', NULL, N'http://identityserver.io', NULL, 1, 1, 0, 0, 0, 0, NULL, 1, NULL, 1, 0, 300, 3600, 300, NULL, 2592000, 1296000, 1, 0, 1, 0, 1, 0, 0, N'client_', NULL, CAST(N'2019-07-17T19:25:06.4034661' AS DateTime2), NULL, NULL, NULL, NULL, 300, 0) --- GO --- INSERT [dbo].[Clients] ([Id], [Enabled], [ClientId], [ProtocolType], [RequireClientSecret], [ClientName], [Description], [ClientUri], [LogoUri], [RequireConsent], [AllowRememberConsent], [AlwaysIncludeUserClaimsInIdToken], [RequirePkce], [AllowPlainTextPkce], [AllowAccessTokensViaBrowser], [FrontChannelLogoutUri], [FrontChannelLogoutSessionRequired], [BackChannelLogoutUri], [BackChannelLogoutSessionRequired], [AllowOfflineAccess], [IdentityTokenLifetime], [AccessTokenLifetime], [AuthorizationCodeLifetime], [ConsentLifetime], [AbsoluteRefreshTokenLifetime], [SlidingRefreshTokenLifetime], [RefreshTokenUsage], [UpdateAccessTokenClaimsOnRefresh], [RefreshTokenExpiration], [AccessTokenType], [EnableLocalLogin], [IncludeJwtId], [AlwaysSendClientClaims], [ClientClaimsPrefix], [PairWiseSubjectSalt], [Created], [Updated], [LastAccessed], [UserSsoLifetime], [UserCodeType], [DeviceCodeLifetime], [NonEditable]) VALUES (19, 1, N'Client_18', N'oidc', 1, N'Client 18 Client', NULL, N'http://identityserver.io', NULL, 1, 1, 0, 0, 0, 0, NULL, 1, NULL, 1, 0, 300, 3600, 300, NULL, 2592000, 1296000, 1, 0, 1, 0, 1, 0, 0, N'client_', NULL, CAST(N'2019-07-17T19:25:06.4203358' AS DateTime2), NULL, NULL, NULL, NULL, 300, 0) --- GO --- INSERT [dbo].[Clients] ([Id], [Enabled], [ClientId], [ProtocolType], [RequireClientSecret], [ClientName], [Description], [ClientUri], [LogoUri], [RequireConsent], [AllowRememberConsent], [AlwaysIncludeUserClaimsInIdToken], [RequirePkce], [AllowPlainTextPkce], [AllowAccessTokensViaBrowser], [FrontChannelLogoutUri], [FrontChannelLogoutSessionRequired], [BackChannelLogoutUri], [BackChannelLogoutSessionRequired], [AllowOfflineAccess], [IdentityTokenLifetime], [AccessTokenLifetime], [AuthorizationCodeLifetime], [ConsentLifetime], [AbsoluteRefreshTokenLifetime], [SlidingRefreshTokenLifetime], [RefreshTokenUsage], [UpdateAccessTokenClaimsOnRefresh], [RefreshTokenExpiration], [AccessTokenType], [EnableLocalLogin], [IncludeJwtId], [AlwaysSendClientClaims], [ClientClaimsPrefix], [PairWiseSubjectSalt], [Created], [Updated], [LastAccessed], [UserSsoLifetime], [UserCodeType], [DeviceCodeLifetime], [NonEditable]) VALUES (20, 1, N'Client_19', N'oidc', 1, N'Client 19 Client', NULL, N'http://identityserver.io', NULL, 1, 1, 0, 0, 0, 0, NULL, 1, NULL, 1, 0, 300, 3600, 300, NULL, 2592000, 1296000, 1, 0, 1, 0, 1, 0, 0, N'client_', NULL, CAST(N'2019-07-17T19:25:06.4207247' AS DateTime2), NULL, NULL, NULL, NULL, 300, 0) --- GO SET IDENTITY_INSERT [dbo].[Clients] OFF GO SET IDENTITY_INSERT [dbo].[ClientGrantTypes] ON @@ -337,4 +299,14 @@ GO IF NOT EXISTS ( SELECT * FROM [dbo].[IdentityClaims] WHERE [Id] = 15) INSERT [dbo].[IdentityClaims] ([Id], [IdentityResourceId], [Type]) VALUES (15, 2, N'updated_at') GO SET IDENTITY_INSERT [dbo].[IdentityClaims] OFF -GO \ No newline at end of file +GO +SET IDENTITY_INSERT [dbo].[ApiResources] ON +GO +IF NOT EXISTS ( SELECT * FROM [dbo].[ApiResources] WHERE [Id] = 1) INSERT [dbo].[ApiResources] ([Id], [Created], [Description], [DisplayName], [Enabled], [Name], [NonEditable]) VALUES (1, GETDATE(), N'Identity Management Service', N'Identity Management Service API', 1, N'identity-api', 1) +GO +IF NOT EXISTS ( SELECT * FROM [dbo].[ApiResources] WHERE [Id] = 2) INSERT [dbo].[ApiResources] ([Id], [Created], [Description], [DisplayName], [Enabled], [Name], [NonEditable]) VALUES (2, GETDATE(), N'Task Management Service', N'Identity Management Service API', 1, N'task-api', 1) +GO +IF NOT EXISTS ( SELECT * FROM [dbo].[ApiResources] WHERE [Id] = 3) INSERT [dbo].[ApiResources] ([Id], [Created], [Description], [DisplayName], [Enabled], [Name], [NonEditable]) VALUES (3, GETDATE(), N'Habitica Task Provider Service', N'Habitica Task Provider Service API', 1, N'habitica-api', 1) +GO +SET IDENTITY_INSERT [dbo].[ApiResources] OFF +GO From 513e1bd96dd210996d38d826c629a9db14975b96 Mon Sep 17 00:00:00 2001 From: Tigran TIKSN Torosyan Date: Sun, 25 Aug 2019 17:35:11 +0300 Subject: [PATCH 077/139] Update microservices.yml --- docker-compose/microservices.yml | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/docker-compose/microservices.yml b/docker-compose/microservices.yml index bbea9b8..d97e89a 100644 --- a/docker-compose/microservices.yml +++ b/docker-compose/microservices.yml @@ -8,6 +8,8 @@ services: - "8081:80" env_file: - variables.env + environment: + - ApiResource__ApiName=identity-api networks: - lionize @@ -17,6 +19,8 @@ services: - "8083:80" env_file: - variables.env + environment: + - ApiResource__ApiName=task-api networks: - lionize @@ -26,6 +30,8 @@ services: - "8085:80" env_file: - variables.env + environment: + - ApiResource__ApiName=habitica-api networks: - lionize From 2492595590a2f99190bae8d6221e6b25d871b5d6 Mon Sep 17 00:00:00 2001 From: Tigran TIKSN Torosyan Date: Sun, 25 Aug 2019 17:41:02 +0300 Subject: [PATCH 078/139] Update microservices.yml --- docker-compose/microservices.yml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/docker-compose/microservices.yml b/docker-compose/microservices.yml index d97e89a..79b1dbb 100644 --- a/docker-compose/microservices.yml +++ b/docker-compose/microservices.yml @@ -9,6 +9,9 @@ services: env_file: - variables.env environment: + - ConnectionStrings__Users="Server=mssql;Database=IdentityManagementService;User Id=sa;Password=z0aiDwJ0205q37Nr;" + - ConnectionStrings__Configuration="Server=mssql;Database=IdentityManagementService;User Id=sa;Password=z0aiDwJ0205q37Nr;" + - ConnectionStrings__Operational="Server=mssql;Database=IdentityManagementService;User Id=sa;Password=z0aiDwJ0205q37Nr;" - ApiResource__ApiName=identity-api networks: - lionize From bd627d1f64888204fe21bcb892f9735a0dc1aff1 Mon Sep 17 00:00:00 2001 From: Tigran TIKSN Torosyan Date: Sun, 25 Aug 2019 18:04:42 +0300 Subject: [PATCH 079/139] Update Data.sql --- Data.sql | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/Data.sql b/Data.sql index 333db31..8ea447c 100644 --- a/Data.sql +++ b/Data.sql @@ -310,3 +310,13 @@ IF NOT EXISTS ( SELECT * FROM [dbo].[ApiResources] WHERE [Id] = 3) INSERT [dbo]. GO SET IDENTITY_INSERT [dbo].[ApiResources] OFF GO +SET IDENTITY_INSERT [dbo].[ApiSecrets] ON +GO +IF NOT EXISTS ( SELECT * FROM [dbo].[ApiSecrets] WHERE [Id] = 1) INSERT [dbo].[ApiSecrets] ([Id], [ApiResourceId], [Description], [Created], [Expiration], [Type], [Value]) VALUES (1, 1, NULL, GETDATE(), NULL, N'SharedSecret', N'IlM2emwvAOUundGVXqrYSbgWsSgBdFiUBEFNm+zkZLw=') +GO +IF NOT EXISTS ( SELECT * FROM [dbo].[ApiSecrets] WHERE [Id] = 2) INSERT [dbo].[ApiSecrets] ([Id], [ApiResourceId], [Description], [Created], [Expiration], [Type], [Value]) VALUES (2, 2, NULL, GETDATE(), NULL, N'SharedSecret', N'SwU06eRABG2C0MK+UuJGdLL064+6wIvtojzDZX+aE7o=') +GO +IF NOT EXISTS ( SELECT * FROM [dbo].[ApiSecrets] WHERE [Id] = 3) INSERT [dbo].[ApiSecrets] ([Id], [ApiResourceId], [Description], [Created], [Expiration], [Type], [Value]) VALUES (3, 3, NULL, GETDATE(), NULL, N'SharedSecret', N'26O1szHj4CXM1nc/5Pi/K/l7AT751uN9/24QGNiZb70=') +GO +SET IDENTITY_INSERT [dbo].[ApiSecrets] ON +GO \ No newline at end of file From 247cf65aa5998f45c3b838fddf1640faaebcc452 Mon Sep 17 00:00:00 2001 From: Tigran TIKSN Torosyan Date: Sun, 25 Aug 2019 18:04:45 +0300 Subject: [PATCH 080/139] Update microservices.yml --- docker-compose/microservices.yml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/docker-compose/microservices.yml b/docker-compose/microservices.yml index 79b1dbb..360b0ad 100644 --- a/docker-compose/microservices.yml +++ b/docker-compose/microservices.yml @@ -13,6 +13,7 @@ services: - ConnectionStrings__Configuration="Server=mssql;Database=IdentityManagementService;User Id=sa;Password=z0aiDwJ0205q37Nr;" - ConnectionStrings__Operational="Server=mssql;Database=IdentityManagementService;User Id=sa;Password=z0aiDwJ0205q37Nr;" - ApiResource__ApiName=identity-api + - ApiResource__ApiSecret="Iu+LZ8RCoUcrv6XNFcg+eEyHPBYeeLyBfmkex++Apqvn/dnrSsZx1r/rw7gvJAY7s4V7Lleh9qozCehaI9pYqg==" networks: - lionize @@ -24,6 +25,7 @@ services: - variables.env environment: - ApiResource__ApiName=task-api + - ApiResource__ApiSecret="B01SeaEDdDBGDLeqUCHuPSUhuSXsa8VEsvvEp6bfb804hLcVZ1bcJkZDB/crtsSG2xzzgiRxjZuHDsalPs2JZg==" networks: - lionize @@ -35,6 +37,7 @@ services: - variables.env environment: - ApiResource__ApiName=habitica-api + - ApiResource__ApiSecret="43xoIIj2QFyvFNevScaPvOFUWNQa4unVwT75TOlG5cmwFyAwcI+BFW4mpkeN52jXSAHbUya58gCTkl5K/PNyaQ==" networks: - lionize From 175badac5bc60497b46b4051a1c5cf65111330eb Mon Sep 17 00:00:00 2001 From: Tigran TIKSN Torosyan Date: Sun, 25 Aug 2019 18:09:43 +0300 Subject: [PATCH 081/139] Update microservices.yml --- docker-compose/microservices.yml | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/docker-compose/microservices.yml b/docker-compose/microservices.yml index 360b0ad..6484995 100644 --- a/docker-compose/microservices.yml +++ b/docker-compose/microservices.yml @@ -9,11 +9,11 @@ services: env_file: - variables.env environment: - - ConnectionStrings__Users="Server=mssql;Database=IdentityManagementService;User Id=sa;Password=z0aiDwJ0205q37Nr;" - - ConnectionStrings__Configuration="Server=mssql;Database=IdentityManagementService;User Id=sa;Password=z0aiDwJ0205q37Nr;" - - ConnectionStrings__Operational="Server=mssql;Database=IdentityManagementService;User Id=sa;Password=z0aiDwJ0205q37Nr;" + - ConnectionStrings__Users=Server=mssql;Database=IdentityManagementService;User Id=sa;Password=z0aiDwJ0205q37Nr; + - ConnectionStrings__Configuration=Server=mssql;Database=IdentityManagementService;User Id=sa;Password=z0aiDwJ0205q37Nr; + - ConnectionStrings__Operational=Server=mssql;Database=IdentityManagementService;User Id=sa;Password=z0aiDwJ0205q37Nr; - ApiResource__ApiName=identity-api - - ApiResource__ApiSecret="Iu+LZ8RCoUcrv6XNFcg+eEyHPBYeeLyBfmkex++Apqvn/dnrSsZx1r/rw7gvJAY7s4V7Lleh9qozCehaI9pYqg==" + - ApiResource__ApiSecret=Iu+LZ8RCoUcrv6XNFcg+eEyHPBYeeLyBfmkex++Apqvn/dnrSsZx1r/rw7gvJAY7s4V7Lleh9qozCehaI9pYqg== networks: - lionize @@ -25,7 +25,7 @@ services: - variables.env environment: - ApiResource__ApiName=task-api - - ApiResource__ApiSecret="B01SeaEDdDBGDLeqUCHuPSUhuSXsa8VEsvvEp6bfb804hLcVZ1bcJkZDB/crtsSG2xzzgiRxjZuHDsalPs2JZg==" + - ApiResource__ApiSecret=B01SeaEDdDBGDLeqUCHuPSUhuSXsa8VEsvvEp6bfb804hLcVZ1bcJkZDB/crtsSG2xzzgiRxjZuHDsalPs2JZg== networks: - lionize @@ -37,7 +37,7 @@ services: - variables.env environment: - ApiResource__ApiName=habitica-api - - ApiResource__ApiSecret="43xoIIj2QFyvFNevScaPvOFUWNQa4unVwT75TOlG5cmwFyAwcI+BFW4mpkeN52jXSAHbUya58gCTkl5K/PNyaQ==" + - ApiResource__ApiSecret=43xoIIj2QFyvFNevScaPvOFUWNQa4unVwT75TOlG5cmwFyAwcI+BFW4mpkeN52jXSAHbUya58gCTkl5K/PNyaQ== networks: - lionize From e6ba524174831de079ca10e9c5c10e402e37a993 Mon Sep 17 00:00:00 2001 From: Tigran TIKSN Torosyan Date: Sun, 25 Aug 2019 20:08:43 +0300 Subject: [PATCH 082/139] Update Data.sql --- Data.sql | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) diff --git a/Data.sql b/Data.sql index 8ea447c..ea1c0f7 100644 --- a/Data.sql +++ b/Data.sql @@ -318,5 +318,15 @@ IF NOT EXISTS ( SELECT * FROM [dbo].[ApiSecrets] WHERE [Id] = 2) INSERT [dbo].[A GO IF NOT EXISTS ( SELECT * FROM [dbo].[ApiSecrets] WHERE [Id] = 3) INSERT [dbo].[ApiSecrets] ([Id], [ApiResourceId], [Description], [Created], [Expiration], [Type], [Value]) VALUES (3, 3, NULL, GETDATE(), NULL, N'SharedSecret', N'26O1szHj4CXM1nc/5Pi/K/l7AT751uN9/24QGNiZb70=') GO -SET IDENTITY_INSERT [dbo].[ApiSecrets] ON -GO \ No newline at end of file +SET IDENTITY_INSERT [dbo].[ApiSecrets] OFF +GO +SET IDENTITY_INSERT [dbo].[ApiScopes] ON +GO +IF NOT EXISTS ( SELECT * FROM [dbo].[ApiScopes] WHERE [Id] = 1) INSERT [dbo].[ApiScopes] ([Id], [ApiResourceId], [Description], [DisplayName], [Emphasize], [Name], [Required], [ShowInDiscoveryDocument]) VALUES (1, 1, N'Identity Management Service Default Scope', N'Identity Management Service Default Scope', 0, N'identity-management', 0, 1) +GO +IF NOT EXISTS ( SELECT * FROM [dbo].[ApiScopes] WHERE [Id] = 2) INSERT [dbo].[ApiScopes] ([Id], [ApiResourceId], [Description], [DisplayName], [Emphasize], [Name], [Required], [ShowInDiscoveryDocument]) VALUES (2, 2, N'Task Management Service Default Scope', N'Task Management Service Default Scope', 0, N'task-management', 0, 1) +GO +IF NOT EXISTS ( SELECT * FROM [dbo].[ApiScopes] WHERE [Id] = 3) INSERT [dbo].[ApiScopes] ([Id], [ApiResourceId], [Description], [DisplayName], [Emphasize], [Name], [Required], [ShowInDiscoveryDocument]) VALUES (3, 3, N'Habitica Task Provider Service Default Scope', N'Habitica Task Provider Service Default Scope', 0, N'habitica-provider', 0, 1) +GO +SET IDENTITY_INSERT [dbo].[ApiScopes] OFF +GO From 7bd09d642c8d4d6266f28b3e5082a273365e45fd Mon Sep 17 00:00:00 2001 From: Tigran TIKSN Torosyan Date: Sun, 25 Aug 2019 20:15:33 +0300 Subject: [PATCH 083/139] Update Data.sql --- Data.sql | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/Data.sql b/Data.sql index ea1c0f7..93d1595 100644 --- a/Data.sql +++ b/Data.sql @@ -192,6 +192,12 @@ IF NOT EXISTS ( SELECT * FROM [dbo].[ClientScopes] WHERE [Id] = 1) INSERT [dbo]. GO IF NOT EXISTS ( SELECT * FROM [dbo].[ClientScopes] WHERE [Id] = 2) INSERT [dbo].[ClientScopes] ([Id], [Scope], [ClientId]) VALUES (2, N'openid', 1) GO +IF NOT EXISTS ( SELECT * FROM [dbo].[ClientScopes] WHERE [Id] = 3) INSERT [dbo].[ClientScopes] ([Id], [Scope], [ClientId]) VALUES (3, N'identity-management', 1) +GO +IF NOT EXISTS ( SELECT * FROM [dbo].[ClientScopes] WHERE [Id] = 4) INSERT [dbo].[ClientScopes] ([Id], [Scope], [ClientId]) VALUES (4, N'task-management', 1) +GO +IF NOT EXISTS ( SELECT * FROM [dbo].[ClientScopes] WHERE [Id] = 5) INSERT [dbo].[ClientScopes] ([Id], [Scope], [ClientId]) VALUES (5, N'habitica-provider', 1) +GO -- INSERT [dbo].[ClientScopes] ([Id], [Scope], [ClientId]) VALUES (72, N'email', 20) GO -- INSERT [dbo].[ClientScopes] ([Id], [Scope], [ClientId]) VALUES (73, N'openid', 10) From 487e39faab3fbda41eab407647ba46383d6731fa Mon Sep 17 00:00:00 2001 From: Tigran TIKSN Torosyan Date: Sun, 25 Aug 2019 20:43:07 +0300 Subject: [PATCH 084/139] Update microservices.yml --- docker-compose/microservices.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/docker-compose/microservices.yml b/docker-compose/microservices.yml index 6484995..e768aa8 100644 --- a/docker-compose/microservices.yml +++ b/docker-compose/microservices.yml @@ -36,6 +36,7 @@ services: env_file: - variables.env environment: + - ConnectionStrings__Redis=redis:6379,password=UmimfRKpdTj1VJjK - ApiResource__ApiName=habitica-api - ApiResource__ApiSecret=43xoIIj2QFyvFNevScaPvOFUWNQa4unVwT75TOlG5cmwFyAwcI+BFW4mpkeN52jXSAHbUya58gCTkl5K/PNyaQ== networks: From a639e296a2ab23c2229203ce407d0b54942d7dc0 Mon Sep 17 00:00:00 2001 From: Tigran TIKSN Torosyan Date: Mon, 26 Aug 2019 11:42:37 +0300 Subject: [PATCH 085/139] Update variables.env --- docker-compose/variables.env | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docker-compose/variables.env b/docker-compose/variables.env index e75eeac..c342253 100644 --- a/docker-compose/variables.env +++ b/docker-compose/variables.env @@ -1,3 +1,3 @@ Cors__Origins__0=http://localhost:4200 Cors__Origins__1=http://localhost:8080 -Services__Identity__BaseAddress=http://identity:80 \ No newline at end of file +Services__Identity__BaseAddress=http://identity \ No newline at end of file From ba240833562bd2b6bd25db8ee8d1bdafb3d5f8f5 Mon Sep 17 00:00:00 2001 From: Tigran TIKSN Torosyan Date: Thu, 29 Aug 2019 21:34:59 +0300 Subject: [PATCH 086/139] Update Data.sql --- Data.sql | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/Data.sql b/Data.sql index 93d1595..802268b 100644 --- a/Data.sql +++ b/Data.sql @@ -310,7 +310,7 @@ SET IDENTITY_INSERT [dbo].[ApiResources] ON GO IF NOT EXISTS ( SELECT * FROM [dbo].[ApiResources] WHERE [Id] = 1) INSERT [dbo].[ApiResources] ([Id], [Created], [Description], [DisplayName], [Enabled], [Name], [NonEditable]) VALUES (1, GETDATE(), N'Identity Management Service', N'Identity Management Service API', 1, N'identity-api', 1) GO -IF NOT EXISTS ( SELECT * FROM [dbo].[ApiResources] WHERE [Id] = 2) INSERT [dbo].[ApiResources] ([Id], [Created], [Description], [DisplayName], [Enabled], [Name], [NonEditable]) VALUES (2, GETDATE(), N'Task Management Service', N'Identity Management Service API', 1, N'task-api', 1) +IF NOT EXISTS ( SELECT * FROM [dbo].[ApiResources] WHERE [Id] = 2) INSERT [dbo].[ApiResources] ([Id], [Created], [Description], [DisplayName], [Enabled], [Name], [NonEditable]) VALUES (2, GETDATE(), N'Task Management Service', N'Task Management Service API', 1, N'task-api', 1) GO IF NOT EXISTS ( SELECT * FROM [dbo].[ApiResources] WHERE [Id] = 3) INSERT [dbo].[ApiResources] ([Id], [Created], [Description], [DisplayName], [Enabled], [Name], [NonEditable]) VALUES (3, GETDATE(), N'Habitica Task Provider Service', N'Habitica Task Provider Service API', 1, N'habitica-api', 1) GO @@ -318,11 +318,11 @@ SET IDENTITY_INSERT [dbo].[ApiResources] OFF GO SET IDENTITY_INSERT [dbo].[ApiSecrets] ON GO -IF NOT EXISTS ( SELECT * FROM [dbo].[ApiSecrets] WHERE [Id] = 1) INSERT [dbo].[ApiSecrets] ([Id], [ApiResourceId], [Description], [Created], [Expiration], [Type], [Value]) VALUES (1, 1, NULL, GETDATE(), NULL, N'SharedSecret', N'IlM2emwvAOUundGVXqrYSbgWsSgBdFiUBEFNm+zkZLw=') +IF NOT EXISTS ( SELECT * FROM [dbo].[ApiSecrets] WHERE [Id] = 1) INSERT [dbo].[ApiSecrets] ([Id], [ApiResourceId], [Description], [Created], [Expiration], [Type], [Value]) VALUES (1, 1, NULL, GETDATE(), '2058-06-23 07:30:20', N'SharedSecret', N'IlM2emwvAOUundGVXqrYSbgWsSgBdFiUBEFNm+zkZLw=') GO -IF NOT EXISTS ( SELECT * FROM [dbo].[ApiSecrets] WHERE [Id] = 2) INSERT [dbo].[ApiSecrets] ([Id], [ApiResourceId], [Description], [Created], [Expiration], [Type], [Value]) VALUES (2, 2, NULL, GETDATE(), NULL, N'SharedSecret', N'SwU06eRABG2C0MK+UuJGdLL064+6wIvtojzDZX+aE7o=') +IF NOT EXISTS ( SELECT * FROM [dbo].[ApiSecrets] WHERE [Id] = 2) INSERT [dbo].[ApiSecrets] ([Id], [ApiResourceId], [Description], [Created], [Expiration], [Type], [Value]) VALUES (2, 2, NULL, GETDATE(), '2058-06-23 07:30:20', N'SharedSecret', N'SwU06eRABG2C0MK+UuJGdLL064+6wIvtojzDZX+aE7o=') GO -IF NOT EXISTS ( SELECT * FROM [dbo].[ApiSecrets] WHERE [Id] = 3) INSERT [dbo].[ApiSecrets] ([Id], [ApiResourceId], [Description], [Created], [Expiration], [Type], [Value]) VALUES (3, 3, NULL, GETDATE(), NULL, N'SharedSecret', N'26O1szHj4CXM1nc/5Pi/K/l7AT751uN9/24QGNiZb70=') +IF NOT EXISTS ( SELECT * FROM [dbo].[ApiSecrets] WHERE [Id] = 3) INSERT [dbo].[ApiSecrets] ([Id], [ApiResourceId], [Description], [Created], [Expiration], [Type], [Value]) VALUES (3, 3, NULL, GETDATE(), '2058-06-23 07:30:20', N'SharedSecret', N'26O1szHj4CXM1nc/5Pi/K/l7AT751uN9/24QGNiZb70=') GO SET IDENTITY_INSERT [dbo].[ApiSecrets] OFF GO From a626b1cb5a648a2c670b8d7ee7287283a904f126 Mon Sep 17 00:00:00 2001 From: Tigran TIKSN Torosyan Date: Fri, 30 Aug 2019 21:50:50 +0300 Subject: [PATCH 087/139] Update microservices.yml --- docker-compose/microservices.yml | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/docker-compose/microservices.yml b/docker-compose/microservices.yml index e768aa8..b7716e0 100644 --- a/docker-compose/microservices.yml +++ b/docker-compose/microservices.yml @@ -4,6 +4,8 @@ services: identity: image: tiksn/lionize-identity-management-service:latest + hostname: identity + domainname: identity ports: - "8081:80" env_file: @@ -19,6 +21,8 @@ services: tasks: image: tiksn/lionize-task-management-service:latest + hostname: tasks + domainname: tasks ports: - "8083:80" env_file: @@ -31,6 +35,8 @@ services: habitica: image: tiksn/lionize-habitica-task-provider-service:latest + hostname: habitica + domainname: habitica ports: - "8085:80" env_file: From 280fe75a2f1377dcda15be3c765ba0610c0dce9a Mon Sep 17 00:00:00 2001 From: Tigran TIKSN Torosyan Date: Sat, 31 Aug 2019 00:20:59 +0300 Subject: [PATCH 088/139] Update microservices.yml --- docker-compose/microservices.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/docker-compose/microservices.yml b/docker-compose/microservices.yml index b7716e0..c91cb0e 100644 --- a/docker-compose/microservices.yml +++ b/docker-compose/microservices.yml @@ -43,6 +43,7 @@ services: - variables.env environment: - ConnectionStrings__Redis=redis:6379,password=UmimfRKpdTj1VJjK + - ConnectionStrings__Mongo=mongodb://root:Xq5xrtzEKj44ueyd@mongo:27017/HabiticaTaskProviderService?authSource=admin - ApiResource__ApiName=habitica-api - ApiResource__ApiSecret=43xoIIj2QFyvFNevScaPvOFUWNQa4unVwT75TOlG5cmwFyAwcI+BFW4mpkeN52jXSAHbUya58gCTkl5K/PNyaQ== networks: From ee68452a9ef32c6c4ce83b4b3cb68770ee0bcbea Mon Sep 17 00:00:00 2001 From: Tigran TIKSN Torosyan Date: Sat, 31 Aug 2019 21:57:24 +0300 Subject: [PATCH 089/139] Update variables.env --- docker-compose/variables.env | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/docker-compose/variables.env b/docker-compose/variables.env index c342253..a629926 100644 --- a/docker-compose/variables.env +++ b/docker-compose/variables.env @@ -1,3 +1,4 @@ Cors__Origins__0=http://localhost:4200 Cors__Origins__1=http://localhost:8080 -Services__Identity__BaseAddress=http://identity \ No newline at end of file +Services__Identity__BaseAddress=http://identity +ConnectionStrings__RabbitMQ=rabbitmq://rabbit:EvtNt7PKZqNNT06T@rabbitmq/ \ No newline at end of file From 6884e0183e01e7319649e30d38c0f549767d3369 Mon Sep 17 00:00:00 2001 From: Tigran TIKSN Torosyan Date: Sat, 31 Aug 2019 22:03:16 +0300 Subject: [PATCH 090/139] Update variables.env --- docker-compose/variables.env | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docker-compose/variables.env b/docker-compose/variables.env index a629926..62ddc76 100644 --- a/docker-compose/variables.env +++ b/docker-compose/variables.env @@ -1,4 +1,4 @@ Cors__Origins__0=http://localhost:4200 Cors__Origins__1=http://localhost:8080 Services__Identity__BaseAddress=http://identity -ConnectionStrings__RabbitMQ=rabbitmq://rabbit:EvtNt7PKZqNNT06T@rabbitmq/ \ No newline at end of file +ConnectionStrings__RabbitMQ=rabbitmq://rabbit:EvtNt7PKZqNNT06T@rabbitmq \ No newline at end of file From d8f2784decf3f722723f07b0f40e92eb622fc689 Mon Sep 17 00:00:00 2001 From: Tigran TIKSN Torosyan Date: Sat, 7 Sep 2019 14:18:35 +0300 Subject: [PATCH 091/139] Update dependencies.yml --- docker-compose/dependencies.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/docker-compose/dependencies.yml b/docker-compose/dependencies.yml index 3e98a69..63d7542 100644 --- a/docker-compose/dependencies.yml +++ b/docker-compose/dependencies.yml @@ -44,4 +44,5 @@ services: networks: lionize: + name: lionize driver: bridge \ No newline at end of file From d3907a6a575d05955d40041d63c7572a8f899800 Mon Sep 17 00:00:00 2001 From: Tigran TIKSN Torosyan Date: Sat, 7 Sep 2019 14:18:37 +0300 Subject: [PATCH 092/139] Update microservices.yml --- docker-compose/microservices.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/docker-compose/microservices.yml b/docker-compose/microservices.yml index c91cb0e..c448723 100644 --- a/docker-compose/microservices.yml +++ b/docker-compose/microservices.yml @@ -58,4 +58,5 @@ services: networks: lionize: - driver: bridge \ No newline at end of file + name: lionize + driver: bridge From cbad7734a73b23fa74a895a16c2f53555c13330c Mon Sep 17 00:00:00 2001 From: Tigran TIKSN Torosyan Date: Sat, 7 Sep 2019 22:07:40 +0300 Subject: [PATCH 093/139] Update microservices.yml --- docker-compose/microservices.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/docker-compose/microservices.yml b/docker-compose/microservices.yml index c448723..f84cb29 100644 --- a/docker-compose/microservices.yml +++ b/docker-compose/microservices.yml @@ -30,6 +30,8 @@ services: environment: - ApiResource__ApiName=task-api - ApiResource__ApiSecret=B01SeaEDdDBGDLeqUCHuPSUhuSXsa8VEsvvEp6bfb804hLcVZ1bcJkZDB/crtsSG2xzzgiRxjZuHDsalPs2JZg== + - Account__ClientId=UserManagementClient + - Account__ClientSecret=G4QJrKZSRQ4PO6yDX/WxY7OxZbGol7hPO7u/hv1kt1cRwn34+wOHJ26jL+kBRk9mmSIXn98HMoTLunHrkr4Qqw== networks: - lionize From 7fdb3ffed723c595d6c5f9fc58579f3dcc2c7332 Mon Sep 17 00:00:00 2001 From: Tigran TIKSN Torosyan Date: Tue, 10 Sep 2019 20:44:09 +0300 Subject: [PATCH 094/139] Update microservices.yml --- docker-compose/microservices.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/docker-compose/microservices.yml b/docker-compose/microservices.yml index f84cb29..d6f32df 100644 --- a/docker-compose/microservices.yml +++ b/docker-compose/microservices.yml @@ -28,6 +28,8 @@ services: env_file: - variables.env environment: + - Services__Identity__BaseAddress=http://identity + - ConnectionStrings__RabbitMQ=rabbitmq://rabbit:EvtNt7PKZqNNT06T@rabbitmq - ApiResource__ApiName=task-api - ApiResource__ApiSecret=B01SeaEDdDBGDLeqUCHuPSUhuSXsa8VEsvvEp6bfb804hLcVZ1bcJkZDB/crtsSG2xzzgiRxjZuHDsalPs2JZg== - Account__ClientId=UserManagementClient From 03faeb41af779456ad882e83544bc84258ebfa00 Mon Sep 17 00:00:00 2001 From: Tigran TIKSN Torosyan Date: Thu, 26 Sep 2019 13:47:33 +0300 Subject: [PATCH 095/139] Update variables.env --- docker-compose/variables.env | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docker-compose/variables.env b/docker-compose/variables.env index 62ddc76..251414f 100644 --- a/docker-compose/variables.env +++ b/docker-compose/variables.env @@ -1,4 +1,4 @@ Cors__Origins__0=http://localhost:4200 Cors__Origins__1=http://localhost:8080 Services__Identity__BaseAddress=http://identity -ConnectionStrings__RabbitMQ=rabbitmq://rabbit:EvtNt7PKZqNNT06T@rabbitmq \ No newline at end of file +ConnectionStrings__RabbitMQ=amqp://rabbit:EvtNt7PKZqNNT06T@rabbitmq \ No newline at end of file From 0186286d259e0a7ed42aebb5b54eedbd0c08129a Mon Sep 17 00:00:00 2001 From: Tigran TIKSN Torosyan Date: Sat, 28 Sep 2019 22:45:24 +0300 Subject: [PATCH 096/139] Update microservices.yml --- docker-compose/microservices.yml | 1 - 1 file changed, 1 deletion(-) diff --git a/docker-compose/microservices.yml b/docker-compose/microservices.yml index d6f32df..9a2b4a1 100644 --- a/docker-compose/microservices.yml +++ b/docker-compose/microservices.yml @@ -29,7 +29,6 @@ services: - variables.env environment: - Services__Identity__BaseAddress=http://identity - - ConnectionStrings__RabbitMQ=rabbitmq://rabbit:EvtNt7PKZqNNT06T@rabbitmq - ApiResource__ApiName=task-api - ApiResource__ApiSecret=B01SeaEDdDBGDLeqUCHuPSUhuSXsa8VEsvvEp6bfb804hLcVZ1bcJkZDB/crtsSG2xzzgiRxjZuHDsalPs2JZg== - Account__ClientId=UserManagementClient From 2c20a8fc678533c62947a488924bb02f58558ed0 Mon Sep 17 00:00:00 2001 From: Tigran TIKSN Torosyan Date: Sat, 28 Sep 2019 22:46:01 +0300 Subject: [PATCH 097/139] Update microservices.yml --- docker-compose/microservices.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/docker-compose/microservices.yml b/docker-compose/microservices.yml index 9a2b4a1..31cd107 100644 --- a/docker-compose/microservices.yml +++ b/docker-compose/microservices.yml @@ -29,6 +29,7 @@ services: - variables.env environment: - Services__Identity__BaseAddress=http://identity + - ConnectionStrings__Mongo=mongodb://root:Xq5xrtzEKj44ueyd@mongo:27017/TaskManagementService?authSource=admin - ApiResource__ApiName=task-api - ApiResource__ApiSecret=B01SeaEDdDBGDLeqUCHuPSUhuSXsa8VEsvvEp6bfb804hLcVZ1bcJkZDB/crtsSG2xzzgiRxjZuHDsalPs2JZg== - Account__ClientId=UserManagementClient From e1dfa656131cc067b0278a710f14a3924a9829d4 Mon Sep 17 00:00:00 2001 From: Tigran TIKSN Torosyan Date: Sun, 29 Sep 2019 19:10:02 +0300 Subject: [PATCH 098/139] Update dependencies.yml --- docker-compose/dependencies.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/docker-compose/dependencies.yml b/docker-compose/dependencies.yml index 63d7542..cf1d90e 100644 --- a/docker-compose/dependencies.yml +++ b/docker-compose/dependencies.yml @@ -32,7 +32,8 @@ services: rabbitmq: image: rabbitmq:management-alpine - container_name: rabbitmq + hostname: rabbitmq + domainname: rabbitmq environment: RABBITMQ_DEFAULT_USER: rabbit RABBITMQ_DEFAULT_PASS: EvtNt7PKZqNNT06T From 64fc7b3a43e31ded5b374383b4c5a6d36f2aec8f Mon Sep 17 00:00:00 2001 From: Tigran TIKSN Torosyan Date: Sun, 29 Sep 2019 19:12:10 +0300 Subject: [PATCH 099/139] Update dependencies.yml --- docker-compose/dependencies.yml | 24 +++++++++++++----------- 1 file changed, 13 insertions(+), 11 deletions(-) diff --git a/docker-compose/dependencies.yml b/docker-compose/dependencies.yml index cf1d90e..088ac50 100644 --- a/docker-compose/dependencies.yml +++ b/docker-compose/dependencies.yml @@ -14,6 +14,8 @@ services: mongo: image: mongo:latest + hostname: mongo + domainname: mongo environment: - MONGO_INITDB_ROOT_USERNAME=root - MONGO_INITDB_ROOT_PASSWORD=Xq5xrtzEKj44ueyd @@ -31,17 +33,17 @@ services: - lionize rabbitmq: - image: rabbitmq:management-alpine - hostname: rabbitmq - domainname: rabbitmq - environment: - RABBITMQ_DEFAULT_USER: rabbit - RABBITMQ_DEFAULT_PASS: EvtNt7PKZqNNT06T - ports: - - 5672:5672 - - 15672:15672 - networks: - - lionize + image: rabbitmq:management-alpine + hostname: rabbitmq + domainname: rabbitmq + environment: + - RABBITMQ_DEFAULT_USER=rabbit + - RABBITMQ_DEFAULT_PASS=EvtNt7PKZqNNT06T + ports: + - 5672:5672 + - 15672:15672 + networks: + - lionize networks: lionize: From 60cdf4c5b40daa4051879e5c42ae099787eae50e Mon Sep 17 00:00:00 2001 From: Tigran TIKSN Torosyan Date: Sun, 6 Oct 2019 14:24:50 +0300 Subject: [PATCH 100/139] deployment bootstrapper --- Kubernetes/Deploy.ps1 | 6 ++++++ 1 file changed, 6 insertions(+) create mode 100644 Kubernetes/Deploy.ps1 diff --git a/Kubernetes/Deploy.ps1 b/Kubernetes/Deploy.ps1 new file mode 100644 index 0000000..e83aeb5 --- /dev/null +++ b/Kubernetes/Deploy.ps1 @@ -0,0 +1,6 @@ +param( + [Parameter(Mandatory=$true)] + [string]$EnvironmentName +) + +Invoke-psake -buildFile ./DeploymentTasks.ps1 -taskList Deploy -parameters @{ EnvironmentName = $EnvironmentName } From 0a69cf804722c54a03d195bc9b6c2a62e0960d4a Mon Sep 17 00:00:00 2001 From: Tigran TIKSN Torosyan Date: Sun, 6 Oct 2019 14:31:00 +0300 Subject: [PATCH 101/139] tasks added --- Kubernetes/Deploy.ps1 | 2 +- Kubernetes/DeploymentTasks.ps1 | 9 +++++++++ 2 files changed, 10 insertions(+), 1 deletion(-) create mode 100644 Kubernetes/DeploymentTasks.ps1 diff --git a/Kubernetes/Deploy.ps1 b/Kubernetes/Deploy.ps1 index e83aeb5..319ee3c 100644 --- a/Kubernetes/Deploy.ps1 +++ b/Kubernetes/Deploy.ps1 @@ -3,4 +3,4 @@ param( [string]$EnvironmentName ) -Invoke-psake -buildFile ./DeploymentTasks.ps1 -taskList Deploy -parameters @{ EnvironmentName = $EnvironmentName } +Invoke-psake -buildFile ./DeploymentTasks.ps1 -taskList DeployToEnvironment -parameters @{ EnvironmentName = $EnvironmentName } diff --git a/Kubernetes/DeploymentTasks.ps1 b/Kubernetes/DeploymentTasks.ps1 new file mode 100644 index 0000000..1b5f157 --- /dev/null +++ b/Kubernetes/DeploymentTasks.ps1 @@ -0,0 +1,9 @@ +Task DeployToEnvironment -depends DeployMicroservices + +Task DeployMicroservices -depends DeployDependencies, DeployConfigMap + +Task DeployConfigMap + +Task DeployDependencies -depends SelectEnvironment + +Task SelectEnvironment From 19a2b8f4f4e6bcca54ae2669fc1d894f2f62b846 Mon Sep 17 00:00:00 2001 From: Tigran TIKSN Torosyan Date: Sun, 6 Oct 2019 14:40:26 +0300 Subject: [PATCH 102/139] select environment --- Kubernetes/DeploymentTasks.ps1 | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Kubernetes/DeploymentTasks.ps1 b/Kubernetes/DeploymentTasks.ps1 index 1b5f157..76fd27e 100644 --- a/Kubernetes/DeploymentTasks.ps1 +++ b/Kubernetes/DeploymentTasks.ps1 @@ -6,4 +6,6 @@ Task DeployConfigMap Task DeployDependencies -depends SelectEnvironment -Task SelectEnvironment +Task SelectEnvironment { + Exec { kubectl config set-context $EnvironmentName } +} From 052b97784d468a14218272251032e1aed207b2ec Mon Sep 17 00:00:00 2001 From: Tigran TIKSN Torosyan Date: Sun, 6 Oct 2019 15:05:04 +0300 Subject: [PATCH 103/139] check env name first --- Kubernetes/DeploymentTasks.ps1 | 7 +++++++ Setup.ps1 | 1 + 2 files changed, 8 insertions(+) diff --git a/Kubernetes/DeploymentTasks.ps1 b/Kubernetes/DeploymentTasks.ps1 index 76fd27e..23349f6 100644 --- a/Kubernetes/DeploymentTasks.ps1 +++ b/Kubernetes/DeploymentTasks.ps1 @@ -1,3 +1,10 @@ +Properties { + $config = Get-KubeConfig + $envCount = $config.Contexts.Where({$_.Name -eq $EnvironmentName}).Count + + Assert ( $envCount -gt 0 ) "Environment '$EnvironmentName' is not configured yet." +} + Task DeployToEnvironment -depends DeployMicroservices Task DeployMicroservices -depends DeployDependencies, DeployConfigMap diff --git a/Setup.ps1 b/Setup.ps1 index 14ae9e8..72b79df 100644 --- a/Setup.ps1 +++ b/Setup.ps1 @@ -1,5 +1,6 @@ Install-Module -Name psake Install-Module -Name PsHosts +Install-Module -Name PSKubectl Install-Module -Name SqlServer dotnet tool install --global smite-cli From d81cb518b0ede1b325b57abf3dd2c34d2944be87 Mon Sep 17 00:00:00 2001 From: Tigran TIKSN Torosyan Date: Sat, 19 Oct 2019 23:23:47 +0300 Subject: [PATCH 104/139] postgres dependency container added --- docker-compose/dependencies.yml | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/docker-compose/dependencies.yml b/docker-compose/dependencies.yml index 088ac50..0c8eef3 100644 --- a/docker-compose/dependencies.yml +++ b/docker-compose/dependencies.yml @@ -12,6 +12,17 @@ services: networks: - lionize + postgres: + image: postgres:latest + hostname: postgres + domainname: postgres + environment: + POSTGRES_PASSWORD: IYmv5OcqEoANcO7s + ports: + - 5432:5432 + networks: + - lionize + mongo: image: mongo:latest hostname: mongo From f89b59185ca619e43bc4fe1862232f4da0586e4a Mon Sep 17 00:00:00 2001 From: Tigran TIKSN Torosyan Date: Sun, 20 Oct 2019 02:27:50 +0300 Subject: [PATCH 105/139] removed mssql --- docker-compose/dependencies.yml | 10 ---------- 1 file changed, 10 deletions(-) diff --git a/docker-compose/dependencies.yml b/docker-compose/dependencies.yml index 0c8eef3..fa768c6 100644 --- a/docker-compose/dependencies.yml +++ b/docker-compose/dependencies.yml @@ -2,16 +2,6 @@ version: '3.7' services: - mssql: - image: mcr.microsoft.com/mssql/server:latest - environment: - - ACCEPT_EULA=Y - - SA_PASSWORD=z0aiDwJ0205q37Nr - ports: - - "1433:1433" - networks: - - lionize - postgres: image: postgres:latest hostname: postgres From 0193f028f574a06003d3b1a44b33b4b19036cecb Mon Sep 17 00:00:00 2001 From: Tigran TIKSN Torosyan Date: Sun, 20 Oct 2019 02:32:22 +0300 Subject: [PATCH 106/139] connection string updated --- docker-compose/microservices.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/docker-compose/microservices.yml b/docker-compose/microservices.yml index 31cd107..739185d 100644 --- a/docker-compose/microservices.yml +++ b/docker-compose/microservices.yml @@ -11,9 +11,9 @@ services: env_file: - variables.env environment: - - ConnectionStrings__Users=Server=mssql;Database=IdentityManagementService;User Id=sa;Password=z0aiDwJ0205q37Nr; - - ConnectionStrings__Configuration=Server=mssql;Database=IdentityManagementService;User Id=sa;Password=z0aiDwJ0205q37Nr; - - ConnectionStrings__Operational=Server=mssql;Database=IdentityManagementService;User Id=sa;Password=z0aiDwJ0205q37Nr; + - ConnectionStrings__Users=Server=postgres;Port=5432;Database=IdentityManagement;User Id=postgres;Password=IYmv5OcqEoANcO7s; + - ConnectionStrings__Configuration=Server=postgres;Port=5432;Database=IdentityManagement;User Id=postgres;Password=IYmv5OcqEoANcO7s; + - ConnectionStrings__Operational=Server=Server=postgres;Port=5432;Database=IdentityManagement;User Id=postgres;Password=IYmv5OcqEoANcO7s; - ApiResource__ApiName=identity-api - ApiResource__ApiSecret=Iu+LZ8RCoUcrv6XNFcg+eEyHPBYeeLyBfmkex++Apqvn/dnrSsZx1r/rw7gvJAY7s4V7Lleh9qozCehaI9pYqg== networks: From 3c38bf625c22a71dea945412b25d8475aea7efd7 Mon Sep 17 00:00:00 2001 From: Tigran TIKSN Torosyan Date: Sun, 20 Oct 2019 14:01:40 +0300 Subject: [PATCH 107/139] connect and apply to postgres --- docker-compose-tasks.ps1 | 20 +++++++++++++++----- 1 file changed, 15 insertions(+), 5 deletions(-) diff --git a/docker-compose-tasks.ps1 b/docker-compose-tasks.ps1 index 66c3086..dd8fcd9 100644 --- a/docker-compose-tasks.ps1 +++ b/docker-compose-tasks.ps1 @@ -24,11 +24,21 @@ Task Run -depends Pull { Task ApplyScript -depends Run { - $serverInstance = "localhost,1433" - $username = "sa" - $password = ConvertTo-SecureString -String "z0aiDwJ0205q37Nr" -AsPlainText -Force - $credential = New-Object System.Management.Automation.PSCredential($username, $password) - Invoke-SqlCmd -ServerInstance $serverInstance -Credential $credential -Database 'IdentityManagementService' -InputFile 'Data.sql' -OutputSqlErrors $true + $connectionString = "Server=localhost;Port=5432;Database=IdentityManagement;User Id=postgres;Password=IYmv5OcqEoANcO7s;" + + Import-Module -Name SimplySql + + try { + Open-PostGreConnection -ConnectionString $connectionString + + $sqlFilePath = (Resolve-Path "./Data.sql").Path + $query = Get-Content -Path $sqlFilePath; + Invoke-SqlUpdate -Query $query + Close-SqlConnection + } + catch { + throw + } } Task Setup -depends ApplyScript, Run From 55e9587747bf49c1f1c6162b64b9ea0b41f0197b Mon Sep 17 00:00:00 2001 From: Tigran TIKSN Torosyan Date: Sun, 20 Oct 2019 14:34:49 +0300 Subject: [PATCH 108/139] close connection anyway --- docker-compose-tasks.ps1 | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/docker-compose-tasks.ps1 b/docker-compose-tasks.ps1 index dd8fcd9..6c7b545 100644 --- a/docker-compose-tasks.ps1 +++ b/docker-compose-tasks.ps1 @@ -31,10 +31,14 @@ Task ApplyScript -depends Run { try { Open-PostGreConnection -ConnectionString $connectionString - $sqlFilePath = (Resolve-Path "./Data.sql").Path - $query = Get-Content -Path $sqlFilePath; - Invoke-SqlUpdate -Query $query - Close-SqlConnection + try { + $sqlFilePath = (Resolve-Path "./Data.sql").Path + $query = Get-Content -Path $sqlFilePath; + Invoke-SqlUpdate -Query $query + } + finally { + Close-SqlConnection + } } catch { throw From 2f5e44e7862c8644bf6104d900b013c12a5fd3d4 Mon Sep 17 00:00:00 2001 From: Tigran TIKSN Torosyan Date: Sun, 20 Oct 2019 15:29:11 +0300 Subject: [PATCH 109/139] migrated script to postgres --- Data.sql | 405 +++++++++---------------------------------------------- 1 file changed, 67 insertions(+), 338 deletions(-) diff --git a/Data.sql b/Data.sql index 802268b..c8eb166 100644 --- a/Data.sql +++ b/Data.sql @@ -1,338 +1,67 @@ -USE [IdentityManagementService] -GO -SET IDENTITY_INSERT [dbo].[AspNetUserClaims] ON -GO -SET IDENTITY_INSERT [dbo].[AspNetUserClaims] OFF -GO -SET IDENTITY_INSERT [dbo].[Clients] ON -GO -IF NOT EXISTS ( SELECT * FROM [dbo].[Clients] WHERE [Id] = 1) INSERT [dbo].[Clients] ([Id], [Enabled], [ClientId], [ProtocolType], [RequireClientSecret], [ClientName], [Description], [ClientUri], [LogoUri], [RequireConsent], [AllowRememberConsent], [AlwaysIncludeUserClaimsInIdToken], [RequirePkce], [AllowPlainTextPkce], [AllowAccessTokensViaBrowser], [FrontChannelLogoutUri], [FrontChannelLogoutSessionRequired], [BackChannelLogoutUri], [BackChannelLogoutSessionRequired], [AllowOfflineAccess], [IdentityTokenLifetime], [AccessTokenLifetime], [AuthorizationCodeLifetime], [ConsentLifetime], [AbsoluteRefreshTokenLifetime], [SlidingRefreshTokenLifetime], [RefreshTokenUsage], [UpdateAccessTokenClaimsOnRefresh], [RefreshTokenExpiration], [AccessTokenType], [EnableLocalLogin], [IncludeJwtId], [AlwaysSendClientClaims], [ClientClaimsPrefix], [PairWiseSubjectSalt], [Created], [Updated], [LastAccessed], [UserSsoLifetime], [UserCodeType], [DeviceCodeLifetime], [NonEditable]) VALUES (1, 1, N'UserManagementClient', N'oidc', 1, N'User Management Client', NULL, NULL, NULL, 1, 1, 0, 0, 0, 0, NULL, 1, NULL, 1, 1, 300, 3600, 300, NULL, 2592000, 1296000, 1, 1, 1, 0, 1, 0, 1, N'client_', NULL, CAST(N'2019-07-17T19:25:06.3074530' AS DateTime2), NULL, NULL, NULL, NULL, 300, 0) -GO -SET IDENTITY_INSERT [dbo].[Clients] OFF -GO -SET IDENTITY_INSERT [dbo].[ClientGrantTypes] ON -GO -IF NOT EXISTS ( SELECT * FROM [dbo].[ClientGrantTypes] WHERE [Id] = 1) INSERT [dbo].[ClientGrantTypes] ([Id], [GrantType], [ClientId]) VALUES (1, N'password', 1) -GO --- INSERT [dbo].[ClientGrantTypes] ([Id], [GrantType], [ClientId]) VALUES (2, N'client_credentials', 9) --- GO --- INSERT [dbo].[ClientGrantTypes] ([Id], [GrantType], [ClientId]) VALUES (3, N'client_credentials', 11) --- GO --- INSERT [dbo].[ClientGrantTypes] ([Id], [GrantType], [ClientId]) VALUES (4, N'password', 8) --- GO --- INSERT [dbo].[ClientGrantTypes] ([Id], [GrantType], [ClientId]) VALUES (5, N'password', 12) --- GO --- INSERT [dbo].[ClientGrantTypes] ([Id], [GrantType], [ClientId]) VALUES (6, N'client_credentials', 13) --- GO --- INSERT [dbo].[ClientGrantTypes] ([Id], [GrantType], [ClientId]) VALUES (7, N'client_credentials', 7) --- GO --- INSERT [dbo].[ClientGrantTypes] ([Id], [GrantType], [ClientId]) VALUES (8, N'password', 14) --- GO --- INSERT [dbo].[ClientGrantTypes] ([Id], [GrantType], [ClientId]) VALUES (9, N'password', 20) --- GO --- INSERT [dbo].[ClientGrantTypes] ([Id], [GrantType], [ClientId]) VALUES (10, N'client_credentials', 19) --- GO --- INSERT [dbo].[ClientGrantTypes] ([Id], [GrantType], [ClientId]) VALUES (11, N'password', 10) --- GO --- INSERT [dbo].[ClientGrantTypes] ([Id], [GrantType], [ClientId]) VALUES (12, N'client_credentials', 15) --- GO --- INSERT [dbo].[ClientGrantTypes] ([Id], [GrantType], [ClientId]) VALUES (13, N'client_credentials', 5) --- GO --- INSERT [dbo].[ClientGrantTypes] ([Id], [GrantType], [ClientId]) VALUES (14, N'password', 16) --- GO --- INSERT [dbo].[ClientGrantTypes] ([Id], [GrantType], [ClientId]) VALUES (15, N'password', 4) --- GO --- INSERT [dbo].[ClientGrantTypes] ([Id], [GrantType], [ClientId]) VALUES (16, N'password', 6) --- GO --- INSERT [dbo].[ClientGrantTypes] ([Id], [GrantType], [ClientId]) VALUES (17, N'client_credentials', 17) --- GO --- INSERT [dbo].[ClientGrantTypes] ([Id], [GrantType], [ClientId]) VALUES (18, N'password', 18) --- GO --- INSERT [dbo].[ClientGrantTypes] ([Id], [GrantType], [ClientId]) VALUES (19, N'password', 2) --- GO --- INSERT [dbo].[ClientGrantTypes] ([Id], [GrantType], [ClientId]) VALUES (20, N'client_credentials', 3) --- GO -SET IDENTITY_INSERT [dbo].[ClientGrantTypes] OFF -GO -SET IDENTITY_INSERT [dbo].[ClientScopes] ON -GO --- INSERT [dbo].[ClientScopes] ([Id], [Scope], [ClientId]) VALUES (1, N'openid', 4) -GO --- INSERT [dbo].[ClientScopes] ([Id], [Scope], [ClientId]) VALUES (2, N'api2.read_only', 8) -GO --- INSERT [dbo].[ClientScopes] ([Id], [Scope], [ClientId]) VALUES (3, N'api1', 8) -GO --- INSERT [dbo].[ClientScopes] ([Id], [Scope], [ClientId]) VALUES (4, N'email', 8) -GO --- INSERT [dbo].[ClientScopes] ([Id], [Scope], [ClientId]) VALUES (5, N'profile', 8) -GO --- INSERT [dbo].[ClientScopes] ([Id], [Scope], [ClientId]) VALUES (6, N'openid', 8) -GO --- INSERT [dbo].[ClientScopes] ([Id], [Scope], [ClientId]) VALUES (7, N'api1', 3) -GO --- INSERT [dbo].[ClientScopes] ([Id], [Scope], [ClientId]) VALUES (8, N'api2.read_only', 3) -GO --- INSERT [dbo].[ClientScopes] ([Id], [Scope], [ClientId]) VALUES (9, N'profile', 19) -GO --- INSERT [dbo].[ClientScopes] ([Id], [Scope], [ClientId]) VALUES (10, N'api2.read_only', 9) -GO --- INSERT [dbo].[ClientScopes] ([Id], [Scope], [ClientId]) VALUES (11, N'api1', 9) -GO --- INSERT [dbo].[ClientScopes] ([Id], [Scope], [ClientId]) VALUES (12, N'email', 9) -GO --- INSERT [dbo].[ClientScopes] ([Id], [Scope], [ClientId]) VALUES (13, N'profile', 9) -GO --- INSERT [dbo].[ClientScopes] ([Id], [Scope], [ClientId]) VALUES (14, N'email', 2) -GO --- INSERT [dbo].[ClientScopes] ([Id], [Scope], [ClientId]) VALUES (15, N'openid', 9) -GO --- INSERT [dbo].[ClientScopes] ([Id], [Scope], [ClientId]) VALUES (16, N'api2.read_only', 20) -GO --- INSERT [dbo].[ClientScopes] ([Id], [Scope], [ClientId]) VALUES (17, N'api2.read_only', 10) -GO --- INSERT [dbo].[ClientScopes] ([Id], [Scope], [ClientId]) VALUES (18, N'api1', 10) -GO --- INSERT [dbo].[ClientScopes] ([Id], [Scope], [ClientId]) VALUES (19, N'email', 10) -GO --- INSERT [dbo].[ClientScopes] ([Id], [Scope], [ClientId]) VALUES (20, N'openid', 19) -GO --- INSERT [dbo].[ClientScopes] ([Id], [Scope], [ClientId]) VALUES (21, N'email', 3) -GO --- INSERT [dbo].[ClientScopes] ([Id], [Scope], [ClientId]) VALUES (22, N'openid', 7) -GO --- INSERT [dbo].[ClientScopes] ([Id], [Scope], [ClientId]) VALUES (23, N'profile', 4) -GO --- INSERT [dbo].[ClientScopes] ([Id], [Scope], [ClientId]) VALUES (24, N'api2.read_only', 2) -GO --- INSERT [dbo].[ClientScopes] ([Id], [Scope], [ClientId]) VALUES (25, N'api2.read_only', 5) -GO --- INSERT [dbo].[ClientScopes] ([Id], [Scope], [ClientId]) VALUES (26, N'api1', 5) -GO --- INSERT [dbo].[ClientScopes] ([Id], [Scope], [ClientId]) VALUES (27, N'email', 4) -GO --- INSERT [dbo].[ClientScopes] ([Id], [Scope], [ClientId]) VALUES (28, N'email', 5) -GO --- INSERT [dbo].[ClientScopes] ([Id], [Scope], [ClientId]) VALUES (29, N'profile', 5) -GO --- INSERT [dbo].[ClientScopes] ([Id], [Scope], [ClientId]) VALUES (30, N'openid', 5) -GO --- INSERT [dbo].[ClientScopes] ([Id], [Scope], [ClientId]) VALUES (31, N'api1', 4) -GO --- INSERT [dbo].[ClientScopes] ([Id], [Scope], [ClientId]) VALUES (32, N'api2.read_only', 6) -GO --- INSERT [dbo].[ClientScopes] ([Id], [Scope], [ClientId]) VALUES (33, N'profile', 3) -GO --- INSERT [dbo].[ClientScopes] ([Id], [Scope], [ClientId]) VALUES (34, N'api1', 6) -GO --- INSERT [dbo].[ClientScopes] ([Id], [Scope], [ClientId]) VALUES (35, N'email', 6) -GO --- INSERT [dbo].[ClientScopes] ([Id], [Scope], [ClientId]) VALUES (36, N'profile', 6) -GO --- INSERT [dbo].[ClientScopes] ([Id], [Scope], [ClientId]) VALUES (37, N'openid', 6) -GO --- INSERT [dbo].[ClientScopes] ([Id], [Scope], [ClientId]) VALUES (38, N'api1', 2) -GO --- INSERT [dbo].[ClientScopes] ([Id], [Scope], [ClientId]) VALUES (39, N'openid', 3) -GO --- INSERT [dbo].[ClientScopes] ([Id], [Scope], [ClientId]) VALUES (40, N'api2.read_only', 7) -GO --- INSERT [dbo].[ClientScopes] ([Id], [Scope], [ClientId]) VALUES (41, N'api1', 7) -GO --- INSERT [dbo].[ClientScopes] ([Id], [Scope], [ClientId]) VALUES (42, N'email', 7) -GO --- INSERT [dbo].[ClientScopes] ([Id], [Scope], [ClientId]) VALUES (43, N'profile', 7) -GO --- INSERT [dbo].[ClientScopes] ([Id], [Scope], [ClientId]) VALUES (44, N'api2.read_only', 4) -GO --- INSERT [dbo].[ClientScopes] ([Id], [Scope], [ClientId]) VALUES (45, N'profile', 10) -GO --- INSERT [dbo].[ClientScopes] ([Id], [Scope], [ClientId]) VALUES (46, N'api1', 11) -GO --- INSERT [dbo].[ClientScopes] ([Id], [Scope], [ClientId]) VALUES (47, N'email', 19) -GO --- INSERT [dbo].[ClientScopes] ([Id], [Scope], [ClientId]) VALUES (48, N'openid', 20) -GO --- INSERT [dbo].[ClientScopes] ([Id], [Scope], [ClientId]) VALUES (49, N'api2.read_only', 16) -GO --- INSERT [dbo].[ClientScopes] ([Id], [Scope], [ClientId]) VALUES (50, N'api1', 16) -GO --- INSERT [dbo].[ClientScopes] ([Id], [Scope], [ClientId]) VALUES (51, N'email', 16) -GO --- INSERT [dbo].[ClientScopes] ([Id], [Scope], [ClientId]) VALUES (52, N'profile', 16) -GO --- INSERT [dbo].[ClientScopes] ([Id], [Scope], [ClientId]) VALUES (53, N'openid', 16) -GO --- INSERT [dbo].[ClientScopes] ([Id], [Scope], [ClientId]) VALUES (54, N'profile', 20) -GO --- INSERT [dbo].[ClientScopes] ([Id], [Scope], [ClientId]) VALUES (55, N'api2.read_only', 17) -GO --- INSERT [dbo].[ClientScopes] ([Id], [Scope], [ClientId]) VALUES (56, N'api1', 17) -GO --- INSERT [dbo].[ClientScopes] ([Id], [Scope], [ClientId]) VALUES (57, N'email', 17) -GO --- INSERT [dbo].[ClientScopes] ([Id], [Scope], [ClientId]) VALUES (58, N'profile', 17) -GO --- INSERT [dbo].[ClientScopes] ([Id], [Scope], [ClientId]) VALUES (59, N'openid', 15) -GO --- INSERT [dbo].[ClientScopes] ([Id], [Scope], [ClientId]) VALUES (60, N'openid', 17) -GO --- INSERT [dbo].[ClientScopes] ([Id], [Scope], [ClientId]) VALUES (61, N'api2.read_only', 18) -GO --- INSERT [dbo].[ClientScopes] ([Id], [Scope], [ClientId]) VALUES (62, N'api1', 18) -GO --- INSERT [dbo].[ClientScopes] ([Id], [Scope], [ClientId]) VALUES (63, N'email', 18) -GO --- INSERT [dbo].[ClientScopes] ([Id], [Scope], [ClientId]) VALUES (64, N'profile', 18) -GO --- INSERT [dbo].[ClientScopes] ([Id], [Scope], [ClientId]) VALUES (65, N'openid', 18) -GO --- INSERT [dbo].[ClientScopes] ([Id], [Scope], [ClientId]) VALUES (66, N'api1', 20) -GO -IF NOT EXISTS ( SELECT * FROM [dbo].[ClientScopes] WHERE [Id] = 1) INSERT [dbo].[ClientScopes] ([Id], [Scope], [ClientId]) VALUES (1, N'profile', 1) -GO -IF NOT EXISTS ( SELECT * FROM [dbo].[ClientScopes] WHERE [Id] = 2) INSERT [dbo].[ClientScopes] ([Id], [Scope], [ClientId]) VALUES (2, N'openid', 1) -GO -IF NOT EXISTS ( SELECT * FROM [dbo].[ClientScopes] WHERE [Id] = 3) INSERT [dbo].[ClientScopes] ([Id], [Scope], [ClientId]) VALUES (3, N'identity-management', 1) -GO -IF NOT EXISTS ( SELECT * FROM [dbo].[ClientScopes] WHERE [Id] = 4) INSERT [dbo].[ClientScopes] ([Id], [Scope], [ClientId]) VALUES (4, N'task-management', 1) -GO -IF NOT EXISTS ( SELECT * FROM [dbo].[ClientScopes] WHERE [Id] = 5) INSERT [dbo].[ClientScopes] ([Id], [Scope], [ClientId]) VALUES (5, N'habitica-provider', 1) -GO --- INSERT [dbo].[ClientScopes] ([Id], [Scope], [ClientId]) VALUES (72, N'email', 20) -GO --- INSERT [dbo].[ClientScopes] ([Id], [Scope], [ClientId]) VALUES (73, N'openid', 10) -GO --- INSERT [dbo].[ClientScopes] ([Id], [Scope], [ClientId]) VALUES (74, N'profile', 15) -GO --- INSERT [dbo].[ClientScopes] ([Id], [Scope], [ClientId]) VALUES (75, N'api1', 15) -GO --- INSERT [dbo].[ClientScopes] ([Id], [Scope], [ClientId]) VALUES (76, N'api2.read_only', 11) -GO --- INSERT [dbo].[ClientScopes] ([Id], [Scope], [ClientId]) VALUES (77, N'openid', 2) -GO --- INSERT [dbo].[ClientScopes] ([Id], [Scope], [ClientId]) VALUES (78, N'email', 11) -GO --- INSERT [dbo].[ClientScopes] ([Id], [Scope], [ClientId]) VALUES (79, N'profile', 11) -GO --- INSERT [dbo].[ClientScopes] ([Id], [Scope], [ClientId]) VALUES (80, N'openid', 11) -GO --- INSERT [dbo].[ClientScopes] ([Id], [Scope], [ClientId]) VALUES (81, N'api1', 19) -GO --- INSERT [dbo].[ClientScopes] ([Id], [Scope], [ClientId]) VALUES (82, N'api2.read_only', 12) -GO --- INSERT [dbo].[ClientScopes] ([Id], [Scope], [ClientId]) VALUES (83, N'api1', 12) -GO --- INSERT [dbo].[ClientScopes] ([Id], [Scope], [ClientId]) VALUES (84, N'email', 12) -GO --- INSERT [dbo].[ClientScopes] ([Id], [Scope], [ClientId]) VALUES (85, N'profile', 12) -GO --- INSERT [dbo].[ClientScopes] ([Id], [Scope], [ClientId]) VALUES (86, N'openid', 12) -GO --- INSERT [dbo].[ClientScopes] ([Id], [Scope], [ClientId]) VALUES (87, N'api2.read_only', 19) -GO --- INSERT [dbo].[ClientScopes] ([Id], [Scope], [ClientId]) VALUES (88, N'api2.read_only', 13) -GO --- INSERT [dbo].[ClientScopes] ([Id], [Scope], [ClientId]) VALUES (89, N'api1', 13) -GO --- INSERT [dbo].[ClientScopes] ([Id], [Scope], [ClientId]) VALUES (90, N'email', 13) -GO --- INSERT [dbo].[ClientScopes] ([Id], [Scope], [ClientId]) VALUES (91, N'profile', 13) -GO --- INSERT [dbo].[ClientScopes] ([Id], [Scope], [ClientId]) VALUES (92, N'openid', 13) -GO --- INSERT [dbo].[ClientScopes] ([Id], [Scope], [ClientId]) VALUES (93, N'api2.read_only', 14) -GO --- INSERT [dbo].[ClientScopes] ([Id], [Scope], [ClientId]) VALUES (94, N'api1', 14) -GO --- INSERT [dbo].[ClientScopes] ([Id], [Scope], [ClientId]) VALUES (95, N'email', 14) -GO --- INSERT [dbo].[ClientScopes] ([Id], [Scope], [ClientId]) VALUES (96, N'profile', 14) -GO --- INSERT [dbo].[ClientScopes] ([Id], [Scope], [ClientId]) VALUES (97, N'openid', 14) -GO --- INSERT [dbo].[ClientScopes] ([Id], [Scope], [ClientId]) VALUES (98, N'api2.read_only', 15) -GO --- INSERT [dbo].[ClientScopes] ([Id], [Scope], [ClientId]) VALUES (99, N'email', 15) -GO --- INSERT [dbo].[ClientScopes] ([Id], [Scope], [ClientId]) VALUES (100, N'profile', 2) -GO -SET IDENTITY_INSERT [dbo].[ClientScopes] OFF -GO -SET IDENTITY_INSERT [dbo].[ClientSecrets] ON -GO -IF NOT EXISTS ( SELECT * FROM [dbo].[ClientSecrets] WHERE [Id] = 1) INSERT [dbo].[ClientSecrets] ([Id], [Description], [Value], [Expiration], [Type], [Created], [ClientId]) VALUES (1, N'User Management Client', N'UD6fn+ADIk5ieMKjcIBT75XFgaM4mxw7tQK+YXL6hc4=', CAST(N'2020-07-17T22:25:06.0026121' AS DateTime2), N'SharedSecret', CAST(N'2019-07-17T19:25:06.3078730' AS DateTime2), 1) -GO -SET IDENTITY_INSERT [dbo].[ClientSecrets] OFF -GO -SET IDENTITY_INSERT [dbo].[IdentityResources] ON -GO -IF NOT EXISTS ( SELECT * FROM [dbo].[IdentityResources] WHERE [Id] = 1) INSERT [dbo].[IdentityResources] ([Id], [Created], [Description], [DisplayName], [Emphasize], [Enabled], [Name], [NonEditable], [Required], [ShowInDiscoveryDocument]) VALUES (1, GETDATE(), NULL, N'Your user identifier', 0, 1, N'openid', 1, 1, 1) -GO -IF NOT EXISTS ( SELECT * FROM [dbo].[IdentityResources] WHERE [Id] = 2) INSERT [dbo].[IdentityResources] ([Id], [Created], [Description], [DisplayName], [Emphasize], [Enabled], [Name], [NonEditable], [Required], [ShowInDiscoveryDocument]) VALUES (2, GETDATE(), N'Your user profile information (first name, last name, etc.)', N'User profile', 1, 1, N'profile', 1, 0, 1) -GO -SET IDENTITY_INSERT [dbo].[IdentityResources] OFF -GO -SET IDENTITY_INSERT [dbo].[IdentityClaims] ON -GO -IF NOT EXISTS ( SELECT * FROM [dbo].[IdentityClaims] WHERE [Id] = 1) INSERT [dbo].[IdentityClaims] ([Id], [IdentityResourceId], [Type]) VALUES (1, 1, N'sub') -GO -IF NOT EXISTS ( SELECT * FROM [dbo].[IdentityClaims] WHERE [Id] = 2) INSERT [dbo].[IdentityClaims] ([Id], [IdentityResourceId], [Type]) VALUES (2, 2, N'name') -GO -IF NOT EXISTS ( SELECT * FROM [dbo].[IdentityClaims] WHERE [Id] = 3) INSERT [dbo].[IdentityClaims] ([Id], [IdentityResourceId], [Type]) VALUES (3, 2, N'family_name') -GO -IF NOT EXISTS ( SELECT * FROM [dbo].[IdentityClaims] WHERE [Id] = 4) INSERT [dbo].[IdentityClaims] ([Id], [IdentityResourceId], [Type]) VALUES (4, 2, N'given_name') -GO -IF NOT EXISTS ( SELECT * FROM [dbo].[IdentityClaims] WHERE [Id] = 5) INSERT [dbo].[IdentityClaims] ([Id], [IdentityResourceId], [Type]) VALUES (5, 2, N'middle_name') -GO -IF NOT EXISTS ( SELECT * FROM [dbo].[IdentityClaims] WHERE [Id] = 6) INSERT [dbo].[IdentityClaims] ([Id], [IdentityResourceId], [Type]) VALUES (6, 2, N'nickname') -GO -IF NOT EXISTS ( SELECT * FROM [dbo].[IdentityClaims] WHERE [Id] = 7) INSERT [dbo].[IdentityClaims] ([Id], [IdentityResourceId], [Type]) VALUES (7, 2, N'preferred_username') -GO -IF NOT EXISTS ( SELECT * FROM [dbo].[IdentityClaims] WHERE [Id] = 8) INSERT [dbo].[IdentityClaims] ([Id], [IdentityResourceId], [Type]) VALUES (8, 2, N'profile') -GO -IF NOT EXISTS ( SELECT * FROM [dbo].[IdentityClaims] WHERE [Id] = 9) INSERT [dbo].[IdentityClaims] ([Id], [IdentityResourceId], [Type]) VALUES (9, 2, N'picture') -GO -IF NOT EXISTS ( SELECT * FROM [dbo].[IdentityClaims] WHERE [Id] = 10) INSERT [dbo].[IdentityClaims] ([Id], [IdentityResourceId], [Type]) VALUES (10, 2, N'website') -GO -IF NOT EXISTS ( SELECT * FROM [dbo].[IdentityClaims] WHERE [Id] = 11) INSERT [dbo].[IdentityClaims] ([Id], [IdentityResourceId], [Type]) VALUES (11, 2, N'gender') -GO -IF NOT EXISTS ( SELECT * FROM [dbo].[IdentityClaims] WHERE [Id] = 12) INSERT [dbo].[IdentityClaims] ([Id], [IdentityResourceId], [Type]) VALUES (12, 2, N'birthdate') -GO -IF NOT EXISTS ( SELECT * FROM [dbo].[IdentityClaims] WHERE [Id] = 13) INSERT [dbo].[IdentityClaims] ([Id], [IdentityResourceId], [Type]) VALUES (13, 2, N'zoneinfo') -GO -IF NOT EXISTS ( SELECT * FROM [dbo].[IdentityClaims] WHERE [Id] = 14) INSERT [dbo].[IdentityClaims] ([Id], [IdentityResourceId], [Type]) VALUES (14, 2, N'locale') -GO -IF NOT EXISTS ( SELECT * FROM [dbo].[IdentityClaims] WHERE [Id] = 15) INSERT [dbo].[IdentityClaims] ([Id], [IdentityResourceId], [Type]) VALUES (15, 2, N'updated_at') -GO -SET IDENTITY_INSERT [dbo].[IdentityClaims] OFF -GO -SET IDENTITY_INSERT [dbo].[ApiResources] ON -GO -IF NOT EXISTS ( SELECT * FROM [dbo].[ApiResources] WHERE [Id] = 1) INSERT [dbo].[ApiResources] ([Id], [Created], [Description], [DisplayName], [Enabled], [Name], [NonEditable]) VALUES (1, GETDATE(), N'Identity Management Service', N'Identity Management Service API', 1, N'identity-api', 1) -GO -IF NOT EXISTS ( SELECT * FROM [dbo].[ApiResources] WHERE [Id] = 2) INSERT [dbo].[ApiResources] ([Id], [Created], [Description], [DisplayName], [Enabled], [Name], [NonEditable]) VALUES (2, GETDATE(), N'Task Management Service', N'Task Management Service API', 1, N'task-api', 1) -GO -IF NOT EXISTS ( SELECT * FROM [dbo].[ApiResources] WHERE [Id] = 3) INSERT [dbo].[ApiResources] ([Id], [Created], [Description], [DisplayName], [Enabled], [Name], [NonEditable]) VALUES (3, GETDATE(), N'Habitica Task Provider Service', N'Habitica Task Provider Service API', 1, N'habitica-api', 1) -GO -SET IDENTITY_INSERT [dbo].[ApiResources] OFF -GO -SET IDENTITY_INSERT [dbo].[ApiSecrets] ON -GO -IF NOT EXISTS ( SELECT * FROM [dbo].[ApiSecrets] WHERE [Id] = 1) INSERT [dbo].[ApiSecrets] ([Id], [ApiResourceId], [Description], [Created], [Expiration], [Type], [Value]) VALUES (1, 1, NULL, GETDATE(), '2058-06-23 07:30:20', N'SharedSecret', N'IlM2emwvAOUundGVXqrYSbgWsSgBdFiUBEFNm+zkZLw=') -GO -IF NOT EXISTS ( SELECT * FROM [dbo].[ApiSecrets] WHERE [Id] = 2) INSERT [dbo].[ApiSecrets] ([Id], [ApiResourceId], [Description], [Created], [Expiration], [Type], [Value]) VALUES (2, 2, NULL, GETDATE(), '2058-06-23 07:30:20', N'SharedSecret', N'SwU06eRABG2C0MK+UuJGdLL064+6wIvtojzDZX+aE7o=') -GO -IF NOT EXISTS ( SELECT * FROM [dbo].[ApiSecrets] WHERE [Id] = 3) INSERT [dbo].[ApiSecrets] ([Id], [ApiResourceId], [Description], [Created], [Expiration], [Type], [Value]) VALUES (3, 3, NULL, GETDATE(), '2058-06-23 07:30:20', N'SharedSecret', N'26O1szHj4CXM1nc/5Pi/K/l7AT751uN9/24QGNiZb70=') -GO -SET IDENTITY_INSERT [dbo].[ApiSecrets] OFF -GO -SET IDENTITY_INSERT [dbo].[ApiScopes] ON -GO -IF NOT EXISTS ( SELECT * FROM [dbo].[ApiScopes] WHERE [Id] = 1) INSERT [dbo].[ApiScopes] ([Id], [ApiResourceId], [Description], [DisplayName], [Emphasize], [Name], [Required], [ShowInDiscoveryDocument]) VALUES (1, 1, N'Identity Management Service Default Scope', N'Identity Management Service Default Scope', 0, N'identity-management', 0, 1) -GO -IF NOT EXISTS ( SELECT * FROM [dbo].[ApiScopes] WHERE [Id] = 2) INSERT [dbo].[ApiScopes] ([Id], [ApiResourceId], [Description], [DisplayName], [Emphasize], [Name], [Required], [ShowInDiscoveryDocument]) VALUES (2, 2, N'Task Management Service Default Scope', N'Task Management Service Default Scope', 0, N'task-management', 0, 1) -GO -IF NOT EXISTS ( SELECT * FROM [dbo].[ApiScopes] WHERE [Id] = 3) INSERT [dbo].[ApiScopes] ([Id], [ApiResourceId], [Description], [DisplayName], [Emphasize], [Name], [Required], [ShowInDiscoveryDocument]) VALUES (3, 3, N'Habitica Task Provider Service Default Scope', N'Habitica Task Provider Service Default Scope', 0, N'habitica-provider', 0, 1) -GO -SET IDENTITY_INSERT [dbo].[ApiScopes] OFF -GO +DO +$do$ +BEGIN + +IF (SELECT count(*) FROM "Clients" WHERE "Id" = 1) = 0 THEN INSERT INTO "Clients" ("Id", "AbsoluteRefreshTokenLifetime", "AccessTokenLifetime", "AccessTokenType", "AllowAccessTokensViaBrowser", "AllowOfflineAccess", "AllowPlainTextPkce", "AllowRememberConsent", "AlwaysIncludeUserClaimsInIdToken", "AlwaysSendClientClaims", "AuthorizationCodeLifetime", "BackChannelLogoutSessionRequired", "BackChannelLogoutUri", "ClientClaimsPrefix", "ClientId", "ClientName", "ClientUri", "ConsentLifetime", "Created", "Description", "DeviceCodeLifetime", "EnableLocalLogin", "Enabled", "FrontChannelLogoutSessionRequired", "FrontChannelLogoutUri", "IdentityTokenLifetime", "IncludeJwtId", "LogoUri", "NonEditable", "PairWiseSubjectSalt", "ProtocolType", "RefreshTokenExpiration", "RefreshTokenUsage", "RequireClientSecret", "RequireConsent", "RequirePkce", "SlidingRefreshTokenLifetime", "UpdateAccessTokenClaimsOnRefresh") OVERRIDING SYSTEM VALUE VALUES (1, 2592000, 3600,0, false, true, false, true, false, true, 300, true, NULL, NULL, N'PresentationLayer', N'Presentation layer', NULL, NULL, current_date, N'Presentation Layer OICD Client', 3600, true, true, true, NULL, 300, false, NULL, true, NULL, N'oidc', 1, 1, true, true, false, 1296000, true); END IF; + +PERFORM setval('"Clients_Id_seq"', (SELECT MAX("Id") FROM "Clients")+1); + +IF (SELECT count(*) FROM "ClientGrantTypes" WHERE "Id" = 1) = 0 THEN INSERT INTO "ClientGrantTypes" ("Id", "ClientId", "GrantType") OVERRIDING SYSTEM VALUE VALUES (1, 1, N'password'); END IF; + +PERFORM setval('"ClientGrantTypes_Id_seq"', (SELECT MAX("Id") FROM "ClientGrantTypes")+1); + +IF (SELECT count(*) FROM "ClientScopes" WHERE "Id" = 1) = 0 THEN INSERT INTO "ClientScopes" ("Id", "ClientId", "Scope") OVERRIDING SYSTEM VALUE VALUES (1, 1, N'profile'); END IF; +IF (SELECT count(*) FROM "ClientScopes" WHERE "Id" = 2) = 0 THEN INSERT INTO "ClientScopes" ("Id", "ClientId", "Scope") OVERRIDING SYSTEM VALUE VALUES (2, 1, N'openid'); END IF; +IF (SELECT count(*) FROM "ClientScopes" WHERE "Id" = 3) = 0 THEN INSERT INTO "ClientScopes" ("Id", "ClientId", "Scope") OVERRIDING SYSTEM VALUE VALUES (3, 1, N'identity-management'); END IF; +IF (SELECT count(*) FROM "ClientScopes" WHERE "Id" = 4) = 0 THEN INSERT INTO "ClientScopes" ("Id", "ClientId", "Scope") OVERRIDING SYSTEM VALUE VALUES (4, 1, N'task-management'); END IF; +IF (SELECT count(*) FROM "ClientScopes" WHERE "Id" = 5) = 0 THEN INSERT INTO "ClientScopes" ("Id", "ClientId", "Scope") OVERRIDING SYSTEM VALUE VALUES (5, 1, N'habitica-provider'); END IF; + +PERFORM setval('"ClientScopes_Id_seq"', (SELECT MAX("Id") FROM "ClientScopes")+1); + +IF (SELECT count(*) FROM "ClientSecrets" WHERE "Id" = 1) = 0 THEN INSERT INTO "ClientSecrets" ("Id", "ClientId", "Created", "Description", "Expiration", "Type", "Value") OVERRIDING SYSTEM VALUE VALUES (1, 1, current_date, N'User Management Client', NULL, N'SharedSecret', N'UD6fn+ADIk5ieMKjcIBT75XFgaM4mxw7tQK+YXL6hc4='); END IF; + +PERFORM setval('"ClientSecrets_Id_seq"', (SELECT MAX("Id") FROM "ClientSecrets")+1); + +IF (SELECT count(*) FROM "IdentityResources" WHERE "Id" = 1) = 0 THEN INSERT INTO "IdentityResources" ("Id", "Created", "Description", "DisplayName", "Emphasize", "Enabled", "Name", "NonEditable", "Required", "ShowInDiscoveryDocument") OVERRIDING SYSTEM VALUE VALUES (1, current_date, NULL, N'Your user identifier', false, true, N'openid', true, true, true); END IF; +IF (SELECT count(*) FROM "IdentityResources" WHERE "Id" = 2) = 0 THEN INSERT INTO "IdentityResources" ("Id", "Created", "Description", "DisplayName", "Emphasize", "Enabled", "Name", "NonEditable", "Required", "ShowInDiscoveryDocument") OVERRIDING SYSTEM VALUE VALUES (2, current_date, N'Your user profile information (first name, last name, etc.)', N'User profile', true, true, N'profile', true, false, true); END IF; + +PERFORM setval('"IdentityResources_Id_seq"', (SELECT MAX("Id") FROM "IdentityResources")+1); + +IF (SELECT count(*) FROM "IdentityClaims" WHERE "Id" = 1) = 0 THEN INSERT INTO "IdentityClaims" ("Id", "IdentityResourceId", "Type") OVERRIDING SYSTEM VALUE VALUES (1, 1, N'sub'); END IF; +IF (SELECT count(*) FROM "IdentityClaims" WHERE "Id" = 2) = 0 THEN INSERT INTO "IdentityClaims" ("Id", "IdentityResourceId", "Type") OVERRIDING SYSTEM VALUE VALUES (2, 2, N'name'); END IF; +IF (SELECT count(*) FROM "IdentityClaims" WHERE "Id" = 3) = 0 THEN INSERT INTO "IdentityClaims" ("Id", "IdentityResourceId", "Type") OVERRIDING SYSTEM VALUE VALUES (3, 2, N'family_name'); END IF; +IF (SELECT count(*) FROM "IdentityClaims" WHERE "Id" = 4) = 0 THEN INSERT INTO "IdentityClaims" ("Id", "IdentityResourceId", "Type") OVERRIDING SYSTEM VALUE VALUES (4, 2, N'given_name'); END IF; +IF (SELECT count(*) FROM "IdentityClaims" WHERE "Id" = 5) = 0 THEN INSERT INTO "IdentityClaims" ("Id", "IdentityResourceId", "Type") OVERRIDING SYSTEM VALUE VALUES (5, 2, N'middle_name'); END IF; +IF (SELECT count(*) FROM "IdentityClaims" WHERE "Id" = 6) = 0 THEN INSERT INTO "IdentityClaims" ("Id", "IdentityResourceId", "Type") OVERRIDING SYSTEM VALUE VALUES (6, 2, N'nickname'); END IF; +IF (SELECT count(*) FROM "IdentityClaims" WHERE "Id" = 7) = 0 THEN INSERT INTO "IdentityClaims" ("Id", "IdentityResourceId", "Type") OVERRIDING SYSTEM VALUE VALUES (7, 2, N'preferred_username'); END IF; +IF (SELECT count(*) FROM "IdentityClaims" WHERE "Id" = 8) = 0 THEN INSERT INTO "IdentityClaims" ("Id", "IdentityResourceId", "Type") OVERRIDING SYSTEM VALUE VALUES (8, 2, N'profile'); END IF; +IF (SELECT count(*) FROM "IdentityClaims" WHERE "Id" = 9) = 0 THEN INSERT INTO "IdentityClaims" ("Id", "IdentityResourceId", "Type") OVERRIDING SYSTEM VALUE VALUES (9, 2, N'picture'); END IF; +IF (SELECT count(*) FROM "IdentityClaims" WHERE "Id" = 10) = 0 THEN INSERT INTO "IdentityClaims" ("Id", "IdentityResourceId", "Type") OVERRIDING SYSTEM VALUE VALUES (10, 2, N'website'); END IF; +IF (SELECT count(*) FROM "IdentityClaims" WHERE "Id" = 11) = 0 THEN INSERT INTO "IdentityClaims" ("Id", "IdentityResourceId", "Type") OVERRIDING SYSTEM VALUE VALUES (11, 2, N'gender'); END IF; +IF (SELECT count(*) FROM "IdentityClaims" WHERE "Id" = 12) = 0 THEN INSERT INTO "IdentityClaims" ("Id", "IdentityResourceId", "Type") OVERRIDING SYSTEM VALUE VALUES (12, 2, N'birthdate'); END IF; +IF (SELECT count(*) FROM "IdentityClaims" WHERE "Id" = 13) = 0 THEN INSERT INTO "IdentityClaims" ("Id", "IdentityResourceId", "Type") OVERRIDING SYSTEM VALUE VALUES (13, 2, N'zoneinfo'); END IF; +IF (SELECT count(*) FROM "IdentityClaims" WHERE "Id" = 14) = 0 THEN INSERT INTO "IdentityClaims" ("Id", "IdentityResourceId", "Type") OVERRIDING SYSTEM VALUE VALUES (14, 2, N'locale'); END IF; +IF (SELECT count(*) FROM "IdentityClaims" WHERE "Id" = 15) = 0 THEN INSERT INTO "IdentityClaims" ("Id", "IdentityResourceId", "Type") OVERRIDING SYSTEM VALUE VALUES (15, 2, N'updated_at'); END IF; + +PERFORM setval('"IdentityClaims_Id_seq"', (SELECT MAX("Id") FROM "IdentityClaims")+1); + +IF (SELECT count(*) FROM "ApiResources" WHERE "Id" = 1) = 0 THEN INSERT INTO "ApiResources" ("Id", "Created", "Description", "DisplayName", "Enabled", "Name", "NonEditable") OVERRIDING SYSTEM VALUE VALUES (1, current_date, N'Identity Management Service', N'Identity Management Service API', true, N'identity-api', true); END IF; +IF (SELECT count(*) FROM "ApiResources" WHERE "Id" = 2) = 0 THEN INSERT INTO "ApiResources" ("Id", "Created", "Description", "DisplayName", "Enabled", "Name", "NonEditable") OVERRIDING SYSTEM VALUE VALUES (2, current_date, N'Task Management Service', N'Task Management Service API', true, N'task-api', true); END IF; +IF (SELECT count(*) FROM "ApiResources" WHERE "Id" = 3) = 0 THEN INSERT INTO "ApiResources" ("Id", "Created", "Description", "DisplayName", "Enabled", "Name", "NonEditable") OVERRIDING SYSTEM VALUE VALUES (3, current_date, N'Habitica Task Provider Service', N'Habitica Task Provider Service API', true, N'habitica-api', true); END IF; + +PERFORM setval('"ApiResources_Id_seq"', (SELECT MAX("Id") FROM "ApiResources")+1); + +IF (SELECT count(*) FROM "ApiScopes" WHERE "Id" = 1) = 0 THEN INSERT INTO "ApiScopes" ("Id", "ApiResourceId", "Description", "DisplayName", "Emphasize", "Name", "Required", "ShowInDiscoveryDocument") OVERRIDING SYSTEM VALUE VALUES (1, 1, N'Identity Management Service Default Scope', N'Identity Management Service Default Scope', false, N'identity-management', false, true); END IF; +IF (SELECT count(*) FROM "ApiScopes" WHERE "Id" = 2) = 0 THEN INSERT INTO "ApiScopes" ("Id", "ApiResourceId", "Description", "DisplayName", "Emphasize", "Name", "Required", "ShowInDiscoveryDocument") OVERRIDING SYSTEM VALUE VALUES (2, 2, N'Task Management Service Default Scope', N'Task Management Service Default Scope', false, N'task-management', false, true); END IF; +IF (SELECT count(*) FROM "ApiScopes" WHERE "Id" = 3) = 0 THEN INSERT INTO "ApiScopes" ("Id", "ApiResourceId", "Description", "DisplayName", "Emphasize", "Name", "Required", "ShowInDiscoveryDocument") OVERRIDING SYSTEM VALUE VALUES (3, 3, N'Habitica Task Provider Service Default Scope', N'Habitica Task Provider Service Default Scope', false, N'habitica-provider', false, true); END IF; + +PERFORM setval('"ApiScopes_Id_seq"', (SELECT MAX("Id") FROM "ApiScopes")+1); + +IF (SELECT count(*) FROM "ApiSecrets" WHERE "Id" = 1) = 0 THEN INSERT INTO "ApiSecrets" ("Id", "ApiResourceId", "Description", "Created", "Expiration", "Type", "Value") OVERRIDING SYSTEM VALUE VALUES (1, 1, NULL, current_date, NULL, N'SharedSecret', N'IlM2emwvAOUundGVXqrYSbgWsSgBdFiUBEFNm+zkZLw='); END IF; +IF (SELECT count(*) FROM "ApiSecrets" WHERE "Id" = 2) = 0 THEN INSERT INTO "ApiSecrets" ("Id", "ApiResourceId", "Description", "Created", "Expiration", "Type", "Value") OVERRIDING SYSTEM VALUE VALUES (2, 2, NULL, current_date, NULL, N'SharedSecret', N'SwU06eRABG2C0MK+UuJGdLL064+6wIvtojzDZX+aE7o='); END IF; +IF (SELECT count(*) FROM "ApiSecrets" WHERE "Id" = 3) = 0 THEN INSERT INTO "ApiSecrets" ("Id", "ApiResourceId", "Description", "Created", "Expiration", "Type", "Value") OVERRIDING SYSTEM VALUE VALUES (3, 3, NULL, current_date, NULL, N'SharedSecret', N'26O1szHj4CXM1nc/5Pi/K/l7AT751uN9/24QGNiZb70='); END IF; + +PERFORM setval('"ApiSecrets_Id_seq"', (SELECT MAX("Id") FROM "ApiSecrets")+1); + +END; +$do$; From a4a9d903d9bebb77dba9b8dd4282917a8f7ee158 Mon Sep 17 00:00:00 2001 From: Tigran TIKSN Torosyan Date: Sun, 20 Oct 2019 15:57:24 +0300 Subject: [PATCH 110/139] host updated --- Setup.ps1 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Setup.ps1 b/Setup.ps1 index 72b79df..093ceda 100644 --- a/Setup.ps1 +++ b/Setup.ps1 @@ -20,7 +20,7 @@ if ($IsLinux) { if ($IsWindows) { choco install kubernetes-cli - Add-HostEntry -Name mssql -Loopback -Force + Add-HostEntry -Name postgres -Loopback -Force Add-HostEntry -Name mongo -Loopback -Force } elseif ($IsFedora) { From 691f89113af2656a37debb9072f0a801128c1dfe Mon Sep 17 00:00:00 2001 From: Tigran TIKSN Torosyan Date: Sun, 20 Oct 2019 16:02:22 +0300 Subject: [PATCH 111/139] prepared secrets removed --- ClientSecrets.txt | 20 -------------------- 1 file changed, 20 deletions(-) delete mode 100644 ClientSecrets.txt diff --git a/ClientSecrets.txt b/ClientSecrets.txt deleted file mode 100644 index c09ccbb..0000000 --- a/ClientSecrets.txt +++ /dev/null @@ -1,20 +0,0 @@ -UserManagementClient HR7FsThALW0k6MD1Bo+PLOaJss2Bz7RiTsWIWlsIs+veTtrVf6HmBoY13NRORcWMhvRVr1G1m01pY2NyuNMSHDTUF7e1ua1FoqtGTPPgEwgA+9NmsgSaKLOMbBw+c06zIsCgei4N18xHEAylbk5aiVBacr3/rGkvOu4EKE2RBi5dkykzP5ja8yQGH6L49LlkMuLL5AGQs3ZWcEA/CK5/tgndSNslJ0m3f3+Y+IzGN0U0oPVqxSItzOCz3M9Ymup1h2mZGqzePwuYFGSC97rpkDn7Cmi5FPDmsHv6cUt6XuWVI3EjLR2YVmDq0rC+q9QlykuWXY+BvHJ4smkx487AHQ== -TaskManagementServiceClient tX/t1EnFYxtitAfOQkAoBabVpv/kAVUTZ/+rerNmcpIqtPo+vQDbBOh6+tt57S83imSLDifAObQq2W1KGuho+0J1pI5F6Uel+qEWagZ5mXnPc+9P22RraXtGFOSSkOr/Ev+YBEih8qAc5ROFqc6tsD/zeqb4GCDeCTsT/9RjE2m2FlgH4ZQxLoFPM/VQ5r+smGSknxZEB/neuvsNjfPLuNKqzpJ2ps6qwkwlqeUqjiN7ZmZwv3RTcg9eKCeZJKCNg3ojpRgsNfKV+dzJHl0UtCzYkSeMW/leV1uDGH2nEZ6rlyZqBugKTzF028aXiVOySXT7wZN5ASiAxU68qR117Q== -Client_2 5z4ehzeprUPNQvYYfzPHzQjRzgisUAoxlv7qQZlOpRP+7d5Yasx7oMa39FGD6KhN/oC02E5sQZcz7PE4v2yqfpziGZFVbmM7Vi5C9Vu5rq1VnEMYms3FkaxGJH3bQuBaDHW0oc8W948deIIgKkw7ej5E4iIokeTOHIjkD0nlYBNN6OjmBA3eP6Sz+iJLpWdgCqo/ll++MXqR5oRHMehGOBdu0kJjVXUxZqN9dJfBg3cghASepcm0j7ZtVR6Jlw28bcEK3dIl/LU1DjC8QLzjz2MMJq3kp5NNukOL9gBWqM+WwQfVt6Wk+4dPaZeZ9076iYW7fHBf18YuvSKPmQa03g== -Client_3 ZWElf7UOGL1oKyaUPfu0wvSRbHqbK1436UCm+oMUYYCaijE30s9Ee23+FEU4Q4gzCGCbCJk6QzoD7pV0Zx46U8mm+bPJffAlTPENnBcZ/qa4cvEieVnnYEb3M+M5zxNPxMB7kknUaYpwdrunLKYi6vDvvPQsF9pwvpls0kkM633evthWnWxc4wlmsQKePzOf1EnzSRMeIqzmCtOvZ5ZBZIs+yW7OzEyDktnrxWXX0n9lzf0AGaFpv5srb5KYrHtyJU13X3XF0Qj9b7c5M11GDjhUSZqZQUrp1ArSoly56+VeeJ8YYHIJoPv1AqnqMIs+5WFaRGLg2eQCjYtq8i+rRA== -Client_4 hNHbur0ursVKqZ+jPqH/o36UvftepoJ+n7oV0uefrsxJvSUZVdGAtrOU+rlANaZhjufsXXKw5d1OXRoCGdveq/vTWYB75U6tEwZIyqzJPWkUs0P/slBamNhIy/i2fZzXtU++bdsl5qmYP0lraBswhB+x7mWX3/iqeMGoMhpW9pZqcBRdCs+N782aZnMG7i+9F0bYBY82P9ZWE/QafbOOQkizAfgG03pQI/+Y/XiFpIqR6xvTffEGMzE+Bvbac3EaCyQqUu03tkTMiOGQnkFe0W9qiZKYu8RXrc7Hx8yDdbCNfvJTWlGcWjTWB/UPdpXv4DWGcOrfgVBf0qUfcO93SQ== -Client_5 EjADH08Kdh7OLl7Bs85HNznY55f8Bcat/KH0h6t96UVfvuPfcnWf1b5oobuBwJyRi27mmAffTAxqVSOtFu5yUUUZYvXraMTDOBHZlGMLLDsFY/w9llE9f3HWdB1S8b/P9VB2aF6mpSKpIl/1BrioXinnqLPyNbrz2+OEFPOncUZSCp4TlcTdXr3Zk3PySHi4LRX0a0kM3MCWgox7IpEvArEYo/walclkCUn1GaFGAZNqzObesgb9RS3efBI3YjwsqpHC2aV8npdMj2H/FsMfT4H5EFWqUU+rG13PPBm2LaYNyW8PhCfu7i5OkSOk/S9pvi2RPVLmglhBFr5HrGF+lQ== -Client_6 YbvyTVQPylkLIidbvysHHS1lfesl71QmRxbObWmmQczP/MLpC+IVrmI3MjC+JpkVD6EaR+STb3FmywU+QVzvZeBbi8JpHhFLUM6I7b0kaCB8uF7Ii/rnPI1QgkDc1m0GR8xPY5vXq/GPzvYVCoGzQmLkwon+J9nlc041GZvQbnlhgqXx1AWFpAxsObwD0jILnEDd9xTjByDyae9MopJVvmB9tIjbwm1dXx18ku4d4aEcKX1b83ZlfXuF/moVOQJ6Fnpchh2qMNnTgJj3ZnUy1YdNL3kV+svpFzcMVsQCRyUaAntzwFuEcvmjiHPebRYFUijiyAqJZRuucm7mndkV0A== -Client_7 OHPcZPm+FSzJvIBxclgLqSAHBJsffxuRnWDETeyd1R+NtzpqkbIMkxO2/k0J86lWZ8TFltV6sbhXS8aZ+sdALOdg5LsdoBhu+nCHaYHNh6q3buYn1z9JEgWBE0Xrc5lMdtJmqA7tOcasV5tk80g3isMb4ovgGFSnF9G1m43SgofXOvOvZ96cyTUfe4Cj5B+9SoiBz5ENa119v5E8N5052dQUjbhViCLkfxhWwZzTAzKy+FEEULL1yc+VMahNX5GY5aKsj1ZnaMFmnVB4t6rBqbtfij9LNIghHsTpwFd6lyCGvtv6J3TbS5CQnrNifRIk1Ifs7tRSTLAZinCSfahq6w== -Client_8 BTDx+M7GgkaDP6+7ltS/obLE68+NqUs0cirhnQNIzegmsq4yixlWDQWlapWjkBpEys/gubyaXVvkvYak5eRDO3LGleMmjRaYbt7K5z+2kOEQnNI0aBMri1RSTc6SsSggYi4i3Ps2Hj25R0vdz3YcLiyllEkRDtNemgmP1D9HBry2qYUQk7Tm2X6VeyDITrzeNh+h7B3eDlRbw0Hxp0r+cUGOJyXxC5p3v7rLfJKylkxNsJ4fphme15owtM9y9DIzlgrfOSaW7SqEKS1jE5LBqS30pPes3son71CKwFbKBMuHl+WH01wltsJzm3zrO8MIbwuifk87h7g/t0rWCy3Tug== -Client_9 JGLbfKw51tDO7TQ4Q047tIyCUUsohntMDyxIGxJPq5Wg4FeJX0ZcNTXSr2IGT3Xxe5VJidyIkZ3mj21/8bq9f0KfmGL2slRGJRsWVtcZRcC3VqB9BSK4F0+5otDZ3EN6FC8gZ7cT+slAA2PAcjvGzUmtyJoaQHof5oATPA+EbEjYm0Gn+d4Io1vWPAG++KUT89WGLBSoX9O1AIA3AL25u5cb59b6HtNrpCQ+QwR4Ye3a/0k5/kAzLztu8vld0aOeHYBqohDPGdQBG4jwaRvPPJ6SXAB0gL1W57iaiyzaDdKAoCaDDr7dC+Z0N+O4Q8Ufn7Vay3WjKZzDE7tYNI2oJg== -Client_10 DbVvyfVLLd+1URn/SNqeo/N67HeAQl3dd4m/+wOF1lnMENUC0/wqU4d7FSOJKlTpdBdkuaAxpspYklFrizLcMHrAMjcEnND3UJnvBCw5VEw11ofrIB24m2oLqkGqv8dVn+Woyfcd5dhHbWkHQaKeHz0FNrWq8A9dB5bN+fKPTJDSmWVHkIpVF/GupLKzsFnHbYoDpYgRqq7VS8FgUOzmuCDYNag8Vo6zrx7D+0xcqlY8BYxni6cHwO63cUXJ9ccFyOyS2nuxixb8UPVqTa5ieaBqI0pffyx40HW5heVI6bpXvjNgys/bi3l1ajuxnXJAVPikXtF8pUm/GQoF+AUxsw== -Client_11 ZjsSj3sCrtGPmNDqFPHHMgN5MOyji+jaGeqgscXVknREt9R2iuPEUknTzzmruzTNUtcCf9VED9pSOHWRYf0LuQZcpV0cUKcgtN2jz7yvL1210l/u0xKeAKf5JFJtM/FMyBYyThXXsQEv4sv3oD8eogkX3I6eHeXzvqS2IitVs4DsVwelfeBI3SFdv/FHp19n2oJJVVdiraswP5BwIY7V2i9KC0k4eSUoz/5tQV70rBZFT0epC14piqlcdT1P17yTh+TB/JwVLmFcIYVY9WxMO5N6K9JGLM/RIICg2wPn2fhC2rl5Mq96LyDmTerY0ZQ8Dzmq1avqTFsV8NwbdFNedA== -Client_12 R4wVG7PTCOT//LFg3uT4Tuxky8o9BE1YjV5jQtJfusyH2KJMu3mIOzDG1a847Hwx+I0vEIeUN0M/vY1UcMYRoEHk2AZCq5Jy25CZdy6dH6DiMUlFMKpF86BfDf7rNMtqtDVuUxR270z6vDT3+sAUoZ3tcj59zHCXn+Rl4p6UhqfEL8L5L8yMa0L8SnN1TvjgS2xg/sGM7ejF1rMvEAyuZjWNMsv+GnHRYAb7gIL8IVHshJcxM4jlOELZNFgYXVs2TeM96Bst4jD6j527kGxmyLViQ4x1fTKtp/qJJOYYuAOrxTKevjg1vqFmNqTqKqfVc2ujtRrPwNCxkEAho75K4g== -Client_13 15oPyzrICXwthOoPRo7CfVK0sXp1AuncBGHtLvcTG+McVMxQGtybqmImh5XksYoizcPP7wzPbNSwM8bY29uEGmgG8vHBcmJ2GAYYT3pT91LWymE0QyvXTOf4n+cVws+GoW0s3r6YYVphWdYGth1ZXDtzARF6UNY9L6YKyNJ6YFY3ka0NJhiUPmgG0+pV0ZXKnkKsocC+DFCW768YjpiI5viAziVvTDUi38Ooc33s6F4QQCqPzr6VeIVddjdpe6/Pfuzx1AJwWlEMicH8FZjTqQdRCE5u+Bc66lWfEtb+uWQU2fWQ+xNbn+XYg0X9mWPsicwwGHNgYYbUt+qs0Ed7Dg== -Client_14 0F3oPKNCrvP1aGiVddI8UPKziAnOofG0d2+8RCivz55ddHWgsCZIRx48Igv3zBECepm5Hb5yQC9rNMU0hmrLRZnKOABcnJ/LakHrkX7lvKteucmO9rHf6jRGNHxhFMGzcdxyLJMQpd757bJ9hq6whncZ1cygPE/n6k3MFmcjalZ/Nx+hc48XTRPrlQj+YmOFla4FRz70EjWNikFGRI921oNc/U+PDxLnAoi5taZH6IjpRoG5HiIXiyXqE+lN0QmEdL6FomQU9oWbHUW2O1yORqG5XP0NvbhgRXIqpPspmjB/NEHowUYj1VD7HQHdYVDIW81HlHULdrcGJF3y6lGJcg== -Client_15 ghQ3BhumhFuVh6wSn7eD4yFhSC3hBbtzvonhnekw6v5xqn7JKkmstUnr/+5fZBdPoXnRiAhckH1Yw0eRxOdyZJytoPQ5urnXtZPk9gbNFFpykvtvX2H2FRkAcGYCGvBieJpRscMiFue/+dN1eJp2i6/tHzLrAwQ7t4vbOElT1ZqigX1re2KXT3wTr2aOgJ1/iuS2FPu+dnWWFvk3R96dbCM40vYdCw9NVs+12FOerTfuW65lncGf5AoH1WVpXweedUNCVa6mYn/VaL4rCJ4i+GnCSewvOM5ime3rFTWq5PbIF2IPW1eJR/kvjzQCc9xs5N38phYbbjx04LzAukxJKw== -Client_16 hMdj8TwTnBE5AfIAqJpfJRF/MVetPd+sqCWaepvJjK3lZK87EOov0UDqbRUpbZTagJauOhvxfUfnt0gWeCF1cHRFG0TqJBUmUF8Wws/KgzuRwPoFGlKR8+doU1miGVkfdP2g41JQ71uBh+q72rp3HTMNhbcncFUisydcgtG8hDYG903SKp/pQdGeg5Nn1hgs8TUllZSh9wOofi8q822KxAKzteNtpfKTI0PmiO3Cut0PMJCblu+iZP9JKqtvv05jFL6QsyE1v0tCkXFQu28W5cNSGsPc7i4TEVDjI3tGI2T1gnMuMga82XBFWAV9UaiQMkToHaSKhyaQfKLQUpzQ+w== -Client_17 bQxbOPvos7yWQVKXlSmVv6dS8DZeBsBq+02dtWTrh9R0XJdx9m+VSpErh2I475Bn5uIo/6uZnWdM8D2uS/1Yqrp+IjiRJMk3vaalM39dMgu8Ns+Cw4co2r8wJQUy5/+T09yousxY1cIZ8UIF9Gro7r4x8RQu1uczVUh5Yf/DBdamEl+itXg+ZGAMadFEI+ZVRzZHAPXqZf31dWWE33PCVetsX+IKRjhF8o20IWwV7jJhIxrIewThvK1irEATuoTsShPm2MMESgH+Ag1nNkOQ4IYyIrtZ+trni6I1p5n4MjgIx9dZLxVuXdgYynn2eYZp0sy54JfJkk85/k0hz6NnBQ== -Client_18 z9Vebms2sHHExOJBL2DxERzL1c0/UqE/NYcgMMhNjjWxxKohGhj9mxtIG9LnUSDYDTsEA82Zxn0zHzjkFoCodzaskGq2z/cEzTqy9jbOWORnRyOMSIpoF/4s7frfGYSbn6ScOsG1Ij1E/zaT589GZMdUfM9cHC6rQ3hsieL8JbO1F1eSMh0isSXmR0lU1S8u5ogyipy1PoN18PZISZhaR9qC3tB4tDGqMcupdtTlV25JPaNZyZoX/9jTHEIm2miMiwBv0fdetTFWiFjRC8iukJmI/gv1AX0/at73pJjvg1diHerUdYV36odyAkFBRvMQJYuonttcl4qCL2YYZxCYZw== -Client_19 BAFu7t3aGhQQFIOD/jz9JOvnfwxH5XsFhmBSRh5fg3bZmzxA1wQzSnCUjsfZFItFMkIsf5CLIB6GaWh8iNT2sJAMqWL/vU3mtDWcslezLHHUDBPcMgPlTXseuW6ctsKcnd03zGooRnX0Rstb723H0jz2qHzBGn2MJ1zn4QPfSf1zABV6fGAHq8ae5+w4il0OVuYxpg5G2oNfqqUNQWRxFfzN6O9YTFbc7vy1IjKRVJz/2YocrqPvLCWRGtG7+mphLNLwaqFttgqQVbcSkLhRzlUIDWjZVWZZ3rvKxjGFIPSRU/Zgoer7kSKAjFjr3ZxtQEx7s+wBiNZrlozlou/YCg== From 3fe17bba4a80b4b954b8b7d82a45499e156d0166 Mon Sep 17 00:00:00 2001 From: Tigran TIKSN Torosyan Date: Sun, 20 Oct 2019 16:07:11 +0300 Subject: [PATCH 112/139] address fixed --- docker-compose/microservices.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/docker-compose/microservices.yml b/docker-compose/microservices.yml index 739185d..30aab1b 100644 --- a/docker-compose/microservices.yml +++ b/docker-compose/microservices.yml @@ -11,9 +11,9 @@ services: env_file: - variables.env environment: - - ConnectionStrings__Users=Server=postgres;Port=5432;Database=IdentityManagement;User Id=postgres;Password=IYmv5OcqEoANcO7s; - - ConnectionStrings__Configuration=Server=postgres;Port=5432;Database=IdentityManagement;User Id=postgres;Password=IYmv5OcqEoANcO7s; - - ConnectionStrings__Operational=Server=Server=postgres;Port=5432;Database=IdentityManagement;User Id=postgres;Password=IYmv5OcqEoANcO7s; + - ConnectionStrings__Users=Host=postgres;Port=5432;Database=IdentityManagement;User Id=postgres;Password=IYmv5OcqEoANcO7s; + - ConnectionStrings__Configuration=Host=postgres;Port=5432;Database=IdentityManagement;User Id=postgres;Password=IYmv5OcqEoANcO7s; + - ConnectionStrings__Operational=Host=postgres;Port=5432;Database=IdentityManagement;User Id=postgres;Password=IYmv5OcqEoANcO7s; - ApiResource__ApiName=identity-api - ApiResource__ApiSecret=Iu+LZ8RCoUcrv6XNFcg+eEyHPBYeeLyBfmkex++Apqvn/dnrSsZx1r/rw7gvJAY7s4V7Lleh9qozCehaI9pYqg== networks: From fab134f7dd35f31a6432f06c23e892d7d4e83f6e Mon Sep 17 00:00:00 2001 From: Tigran TIKSN Torosyan Date: Sun, 20 Oct 2019 16:14:16 +0300 Subject: [PATCH 113/139] fixed client --- Data.sql | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Data.sql b/Data.sql index c8eb166..d69e2d2 100644 --- a/Data.sql +++ b/Data.sql @@ -2,7 +2,7 @@ DO $do$ BEGIN -IF (SELECT count(*) FROM "Clients" WHERE "Id" = 1) = 0 THEN INSERT INTO "Clients" ("Id", "AbsoluteRefreshTokenLifetime", "AccessTokenLifetime", "AccessTokenType", "AllowAccessTokensViaBrowser", "AllowOfflineAccess", "AllowPlainTextPkce", "AllowRememberConsent", "AlwaysIncludeUserClaimsInIdToken", "AlwaysSendClientClaims", "AuthorizationCodeLifetime", "BackChannelLogoutSessionRequired", "BackChannelLogoutUri", "ClientClaimsPrefix", "ClientId", "ClientName", "ClientUri", "ConsentLifetime", "Created", "Description", "DeviceCodeLifetime", "EnableLocalLogin", "Enabled", "FrontChannelLogoutSessionRequired", "FrontChannelLogoutUri", "IdentityTokenLifetime", "IncludeJwtId", "LogoUri", "NonEditable", "PairWiseSubjectSalt", "ProtocolType", "RefreshTokenExpiration", "RefreshTokenUsage", "RequireClientSecret", "RequireConsent", "RequirePkce", "SlidingRefreshTokenLifetime", "UpdateAccessTokenClaimsOnRefresh") OVERRIDING SYSTEM VALUE VALUES (1, 2592000, 3600,0, false, true, false, true, false, true, 300, true, NULL, NULL, N'PresentationLayer', N'Presentation layer', NULL, NULL, current_date, N'Presentation Layer OICD Client', 3600, true, true, true, NULL, 300, false, NULL, true, NULL, N'oidc', 1, 1, true, true, false, 1296000, true); END IF; +IF (SELECT count(*) FROM "Clients" WHERE "Id" = 1) = 0 THEN INSERT INTO "Clients" ("Id", "AbsoluteRefreshTokenLifetime", "AccessTokenLifetime", "AccessTokenType", "AllowAccessTokensViaBrowser", "AllowOfflineAccess", "AllowPlainTextPkce", "AllowRememberConsent", "AlwaysIncludeUserClaimsInIdToken", "AlwaysSendClientClaims", "AuthorizationCodeLifetime", "BackChannelLogoutSessionRequired", "BackChannelLogoutUri", "ClientClaimsPrefix", "ClientId", "ClientName", "ClientUri", "ConsentLifetime", "Created", "Description", "DeviceCodeLifetime", "EnableLocalLogin", "Enabled", "FrontChannelLogoutSessionRequired", "FrontChannelLogoutUri", "IdentityTokenLifetime", "IncludeJwtId", "LogoUri", "NonEditable", "PairWiseSubjectSalt", "ProtocolType", "RefreshTokenExpiration", "RefreshTokenUsage", "RequireClientSecret", "RequireConsent", "RequirePkce", "SlidingRefreshTokenLifetime", "UpdateAccessTokenClaimsOnRefresh") OVERRIDING SYSTEM VALUE VALUES (1, 2592000, 3600,0, false, true, false, true, false, true, 300, true, NULL, NULL, N'UserManagementClient', N'User Management Client', NULL, NULL, current_date, N'User Management Client OICD Client', 3600, true, true, true, NULL, 300, false, NULL, true, NULL, N'oidc', 1, 1, true, true, false, 1296000, true); END IF; PERFORM setval('"Clients_Id_seq"', (SELECT MAX("Id") FROM "Clients")+1); From 3db558ec1cdadde8ce520a2bbaba015b3ad5f3cd Mon Sep 17 00:00:00 2001 From: Tigran TIKSN Torosyan Date: Sun, 20 Oct 2019 19:48:55 +0300 Subject: [PATCH 114/139] install proper module --- Setup.ps1 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Setup.ps1 b/Setup.ps1 index 093ceda..0e82eef 100644 --- a/Setup.ps1 +++ b/Setup.ps1 @@ -1,7 +1,7 @@ Install-Module -Name psake Install-Module -Name PsHosts Install-Module -Name PSKubectl -Install-Module -Name SqlServer +Install-Module -Name SimplySql dotnet tool install --global smite-cli dotnet tool update --global smite-cli From 1315bf0909c9309c3dddd5bd61926f3b52d370b0 Mon Sep 17 00:00:00 2001 From: Tigran TIKSN Torosyan Date: Sun, 27 Oct 2019 22:33:21 +0200 Subject: [PATCH 115/139] seq added --- docker-compose/dependencies.yml | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/docker-compose/dependencies.yml b/docker-compose/dependencies.yml index fa768c6..d3a2f55 100644 --- a/docker-compose/dependencies.yml +++ b/docker-compose/dependencies.yml @@ -44,7 +44,19 @@ services: - 5672:5672 - 15672:15672 networks: - - lionize + - lionize + + seq: + image: datalust/seq:latest + hostname: seq + domainname: seq + environment: + - ACCEPT_EULA=Y + ports: + - 80:80 + - 5341:5341 + networks: + - lionize networks: lionize: From 701d5592df8b928147c3d76ac0b7bf81a3d90b76 Mon Sep 17 00:00:00 2001 From: Tigran TIKSN Torosyan Date: Sun, 27 Oct 2019 22:42:41 +0200 Subject: [PATCH 116/139] add seq base address --- docker-compose/variables.env | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/docker-compose/variables.env b/docker-compose/variables.env index 251414f..46160eb 100644 --- a/docker-compose/variables.env +++ b/docker-compose/variables.env @@ -1,4 +1,5 @@ Cors__Origins__0=http://localhost:4200 Cors__Origins__1=http://localhost:8080 Services__Identity__BaseAddress=http://identity -ConnectionStrings__RabbitMQ=amqp://rabbit:EvtNt7PKZqNNT06T@rabbitmq \ No newline at end of file +ConnectionStrings__RabbitMQ=amqp://rabbit:EvtNt7PKZqNNT06T@ +Logs__Seq__BaseAddress=http://seq \ No newline at end of file From ee80e7baff7f2703222e175f7d3cc8bae350eb59 Mon Sep 17 00:00:00 2001 From: Tigran TIKSN Torosyan Date: Sun, 27 Oct 2019 23:40:35 +0200 Subject: [PATCH 117/139] restored domain --- docker-compose/variables.env | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docker-compose/variables.env b/docker-compose/variables.env index 46160eb..c27e7ca 100644 --- a/docker-compose/variables.env +++ b/docker-compose/variables.env @@ -1,5 +1,5 @@ Cors__Origins__0=http://localhost:4200 Cors__Origins__1=http://localhost:8080 Services__Identity__BaseAddress=http://identity -ConnectionStrings__RabbitMQ=amqp://rabbit:EvtNt7PKZqNNT06T@ +ConnectionStrings__RabbitMQ=amqp://rabbit:EvtNt7PKZqNNT06T@rabbitmq Logs__Seq__BaseAddress=http://seq \ No newline at end of file From a2591d43400a5176f3f6fa952ad5816420deba9c Mon Sep 17 00:00:00 2001 From: Tigran TIKSN Torosyan Date: Sun, 20 Oct 2019 20:26:32 +0300 Subject: [PATCH 118/139] fixed usage --- Kubernetes/DeploymentTasks.ps1 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Kubernetes/DeploymentTasks.ps1 b/Kubernetes/DeploymentTasks.ps1 index 23349f6..d7be33b 100644 --- a/Kubernetes/DeploymentTasks.ps1 +++ b/Kubernetes/DeploymentTasks.ps1 @@ -14,5 +14,5 @@ Task DeployConfigMap Task DeployDependencies -depends SelectEnvironment Task SelectEnvironment { - Exec { kubectl config set-context $EnvironmentName } + Exec { kubectl config use-context $EnvironmentName } } From 41cc98ea89908b413d9a9b58ef878931659dc784 Mon Sep 17 00:00:00 2001 From: Tigran TIKSN Torosyan Date: Sun, 20 Oct 2019 20:26:42 +0300 Subject: [PATCH 119/139] import before usage --- Kubernetes/DeploymentTasks.ps1 | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Kubernetes/DeploymentTasks.ps1 b/Kubernetes/DeploymentTasks.ps1 index d7be33b..426721f 100644 --- a/Kubernetes/DeploymentTasks.ps1 +++ b/Kubernetes/DeploymentTasks.ps1 @@ -1,4 +1,6 @@ Properties { + Import-Module -Name PSKubectl + $config = Get-KubeConfig $envCount = $config.Contexts.Where({$_.Name -eq $EnvironmentName}).Count From ed638d1e476b5025ca9676f3bcf5106b35668a1a Mon Sep 17 00:00:00 2001 From: Tigran TIKSN Torosyan Date: Sat, 2 Nov 2019 10:35:39 +0200 Subject: [PATCH 120/139] create namespaces --- Kubernetes/DeploymentTasks.ps1 | 6 +++++- Kubernetes/Namespaces.yml | 4 ++++ 2 files changed, 9 insertions(+), 1 deletion(-) create mode 100644 Kubernetes/Namespaces.yml diff --git a/Kubernetes/DeploymentTasks.ps1 b/Kubernetes/DeploymentTasks.ps1 index 426721f..ab9148e 100644 --- a/Kubernetes/DeploymentTasks.ps1 +++ b/Kubernetes/DeploymentTasks.ps1 @@ -13,7 +13,11 @@ Task DeployMicroservices -depends DeployDependencies, DeployConfigMap Task DeployConfigMap -Task DeployDependencies -depends SelectEnvironment +Task DeployDependencies -depends CreateNamespaces + +Task CreateNamespaces -depends SelectEnvironment { + Exec { kubectl apply -f ./Namespaces.yml } +} Task SelectEnvironment { Exec { kubectl config use-context $EnvironmentName } diff --git a/Kubernetes/Namespaces.yml b/Kubernetes/Namespaces.yml new file mode 100644 index 0000000..d124258 --- /dev/null +++ b/Kubernetes/Namespaces.yml @@ -0,0 +1,4 @@ +apiVersion: v1 +kind: Namespace +metadata: + name: lionize-development From 7acd3b484389ad8725b43f8dc2dffecc40075aa3 Mon Sep 17 00:00:00 2001 From: Tigran TIKSN Torosyan Date: Sat, 2 Nov 2019 10:43:54 +0200 Subject: [PATCH 121/139] labels added to namespace --- Kubernetes/Namespaces.yml | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/Kubernetes/Namespaces.yml b/Kubernetes/Namespaces.yml index d124258..460190a 100644 --- a/Kubernetes/Namespaces.yml +++ b/Kubernetes/Namespaces.yml @@ -1,4 +1,7 @@ apiVersion: v1 kind: Namespace metadata: - name: lionize-development + name: lionize-development + labels: + app: lionize + confinement: development \ No newline at end of file From 243b373067ce2976104000dca5c9d61c0198d55c Mon Sep 17 00:00:00 2001 From: Tigran TIKSN Torosyan Date: Sat, 2 Nov 2019 13:28:34 +0200 Subject: [PATCH 122/139] pass namespace --- Kubernetes/Deploy.ps1 | 6 ++++-- Kubernetes/DeploymentTasks.ps1 | 15 ++++++++++++++- 2 files changed, 18 insertions(+), 3 deletions(-) diff --git a/Kubernetes/Deploy.ps1 b/Kubernetes/Deploy.ps1 index 319ee3c..c5fe648 100644 --- a/Kubernetes/Deploy.ps1 +++ b/Kubernetes/Deploy.ps1 @@ -1,6 +1,8 @@ param( [Parameter(Mandatory=$true)] - [string]$EnvironmentName + [string]$EnvironmentName, + [Parameter(Mandatory=$true)] + [string]$NamespaceName ) -Invoke-psake -buildFile ./DeploymentTasks.ps1 -taskList DeployToEnvironment -parameters @{ EnvironmentName = $EnvironmentName } +Invoke-psake -buildFile ./DeploymentTasks.ps1 -taskList DeployToEnvironment -parameters @{ EnvironmentName = $EnvironmentName; NamespaceName = $NamespaceName } diff --git a/Kubernetes/DeploymentTasks.ps1 b/Kubernetes/DeploymentTasks.ps1 index ab9148e..2e9d0f6 100644 --- a/Kubernetes/DeploymentTasks.ps1 +++ b/Kubernetes/DeploymentTasks.ps1 @@ -13,7 +13,20 @@ Task DeployMicroservices -depends DeployDependencies, DeployConfigMap Task DeployConfigMap -Task DeployDependencies -depends CreateNamespaces +Task DeployDependencies -depends SelectNamespace + +Task SelectNamespace -depends CreateNamespaces{ + Import-Module -Name PSKubectl + + $ns = Get-KubeNamespace -Name $NamespaceName + + Assert ( $ns -ne $null ) "Namespace '$NamespaceName' does not exist." + Assert ( $ns.Status.Phase -eq 'Active' ) "Namespace '$NamespaceName' is not active." + + $Script:NamespaceName = $ns.Name + + Exec { kubectl config use-context $EnvironmentName --namespace $Script:NamespaceName } +} Task CreateNamespaces -depends SelectEnvironment { Exec { kubectl apply -f ./Namespaces.yml } From f290d04873c70ac945422d621f565a5a6129f61f Mon Sep 17 00:00:00 2001 From: Tigran TIKSN Torosyan Date: Sat, 2 Nov 2019 16:19:09 +0200 Subject: [PATCH 123/139] create mongodb --- Kubernetes/DeploymentTasks.ps1 | 7 +++-- Kubernetes/mongo-service.yml | 15 ++++++++++ Kubernetes/mongo-statefulset.yml | 50 ++++++++++++++++++++++++++++++++ 3 files changed, 70 insertions(+), 2 deletions(-) create mode 100644 Kubernetes/mongo-service.yml create mode 100644 Kubernetes/mongo-statefulset.yml diff --git a/Kubernetes/DeploymentTasks.ps1 b/Kubernetes/DeploymentTasks.ps1 index 2e9d0f6..e86aa74 100644 --- a/Kubernetes/DeploymentTasks.ps1 +++ b/Kubernetes/DeploymentTasks.ps1 @@ -9,11 +9,14 @@ Properties { Task DeployToEnvironment -depends DeployMicroservices -Task DeployMicroservices -depends DeployDependencies, DeployConfigMap +Task DeployMicroservices -depends DeployMongoDB, DeployConfigMap Task DeployConfigMap -Task DeployDependencies -depends SelectNamespace +Task DeployMongoDB -depends SelectNamespace { + Exec { kubectl apply -f ./mongo-service.yml --namespace $Script:NamespaceName } + Exec { kubectl apply -f ./mongo-statefulset.yml --namespace $Script:NamespaceName } +} Task SelectNamespace -depends CreateNamespaces{ Import-Module -Name PSKubectl diff --git a/Kubernetes/mongo-service.yml b/Kubernetes/mongo-service.yml new file mode 100644 index 0000000..c34c832 --- /dev/null +++ b/Kubernetes/mongo-service.yml @@ -0,0 +1,15 @@ +--- +apiVersion: v1 +kind: Service +metadata: + name: mongo + labels: + name: mongo +spec: + ports: + - port: 27017 + targetPort: 27017 + clusterIP: None + selector: + role: mongo +... \ No newline at end of file diff --git a/Kubernetes/mongo-statefulset.yml b/Kubernetes/mongo-statefulset.yml new file mode 100644 index 0000000..ebedf47 --- /dev/null +++ b/Kubernetes/mongo-statefulset.yml @@ -0,0 +1,50 @@ +--- +apiVersion: apps/v1 +kind: StatefulSet +metadata: + name: mongo +spec: + serviceName: "mongo" + replicas: 1 + selector: + matchLabels: + app: mongo + template: + metadata: + labels: + role: mongo + app: mongo + spec: + terminationGracePeriodSeconds: 10 + containers: + - name: mongo + image: mongo + command: + - mongod + - "--replSet" + - rs0 + - "--smallfiles" + - "--noprealloc" + ports: + - containerPort: 27017 + volumeMounts: + - name: mongo-persistent-storage + mountPath: /data/db + - name: mongo-sidecar + image: cvallance/mongo-k8s-sidecar + env: + - name: MONGO_SIDECAR_POD_LABELS + value: "role=mongo,environment=test" + volumeClaimTemplates: + - metadata: + name: mongo-persistent-storage + annotations: + volume.beta.kubernetes.io/storage-class: "standard" + spec: + accessModes: + - ReadWriteOnce + storageClassName: "standard" + resources: + requests: + storage: 1Gi +... From 97a82e4ce1f60e9395adb8f3f62d7fb40c2cae15 Mon Sep 17 00:00:00 2001 From: Tigran TIKSN Torosyan Date: Sat, 2 Nov 2019 16:36:14 +0200 Subject: [PATCH 124/139] removed unsupported parameters --- Kubernetes/mongo-statefulset.yml | 2 -- 1 file changed, 2 deletions(-) diff --git a/Kubernetes/mongo-statefulset.yml b/Kubernetes/mongo-statefulset.yml index ebedf47..e14fb00 100644 --- a/Kubernetes/mongo-statefulset.yml +++ b/Kubernetes/mongo-statefulset.yml @@ -23,8 +23,6 @@ spec: - mongod - "--replSet" - rs0 - - "--smallfiles" - - "--noprealloc" ports: - containerPort: 27017 volumeMounts: From 897c55e18dfbecc86ffdd466e6706bc1d332cfb7 Mon Sep 17 00:00:00 2001 From: Tigran TIKSN Torosyan Date: Sat, 2 Nov 2019 16:41:22 +0200 Subject: [PATCH 125/139] removed space --- Kubernetes/mongo-statefulset.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Kubernetes/mongo-statefulset.yml b/Kubernetes/mongo-statefulset.yml index e14fb00..b04a265 100644 --- a/Kubernetes/mongo-statefulset.yml +++ b/Kubernetes/mongo-statefulset.yml @@ -39,7 +39,7 @@ spec: annotations: volume.beta.kubernetes.io/storage-class: "standard" spec: - accessModes: + accessModes: - ReadWriteOnce storageClassName: "standard" resources: From d546d4a4c4cbadb74c47751eb03ba5309ffc18ae Mon Sep 17 00:00:00 2001 From: Tigran TIKSN Torosyan Date: Sat, 2 Nov 2019 17:03:58 +0200 Subject: [PATCH 126/139] updated task tree --- Kubernetes/DeploymentTasks.ps1 | 16 +++++++++++++--- 1 file changed, 13 insertions(+), 3 deletions(-) diff --git a/Kubernetes/DeploymentTasks.ps1 b/Kubernetes/DeploymentTasks.ps1 index e86aa74..3719361 100644 --- a/Kubernetes/DeploymentTasks.ps1 +++ b/Kubernetes/DeploymentTasks.ps1 @@ -7,11 +7,21 @@ Properties { Assert ( $envCount -gt 0 ) "Environment '$EnvironmentName' is not configured yet." } -Task DeployToEnvironment -depends DeployMicroservices +Task DeployToEnvironment -depends DeployIdentityManagementService, DeployTaskManagementService, DeployHabiticaTaskProviderService -Task DeployMicroservices -depends DeployMongoDB, DeployConfigMap +Task DeployIdentityManagementService -depends DeployRabbitMQ, DeployPostgres, DeployMicroserviceConfigMap -Task DeployConfigMap +Task DeployTaskManagementService -depends DeployRabbitMQ, DeployMongoDB, DeployMicroserviceConfigMap + +Task DeployHabiticaTaskProviderService -depends DeployRabbitMQ, DeployMongoDB, DeployRedis, DeployMicroserviceConfigMap + +Task DeployMicroserviceConfigMap + +Task DeployRabbitMQ -depends SelectNamespace + +Task DeployPostgres -depends SelectNamespace + +Task DeployRedis -depends SelectNamespace Task DeployMongoDB -depends SelectNamespace { Exec { kubectl apply -f ./mongo-service.yml --namespace $Script:NamespaceName } From 6addf1ec4edb7cb3c417bf51e61c5c0440c3f955 Mon Sep 17 00:00:00 2001 From: Tigran TIKSN Torosyan Date: Sat, 2 Nov 2019 17:15:55 +0200 Subject: [PATCH 127/139] deploy redis --- Kubernetes/DeploymentTasks.ps1 | 5 ++++- Kubernetes/redis-deployment.yml | 31 +++++++++++++++++++++++++++++++ Kubernetes/redis-service.yml | 18 ++++++++++++++++++ 3 files changed, 53 insertions(+), 1 deletion(-) create mode 100644 Kubernetes/redis-deployment.yml create mode 100644 Kubernetes/redis-service.yml diff --git a/Kubernetes/DeploymentTasks.ps1 b/Kubernetes/DeploymentTasks.ps1 index 3719361..adc0d31 100644 --- a/Kubernetes/DeploymentTasks.ps1 +++ b/Kubernetes/DeploymentTasks.ps1 @@ -21,7 +21,10 @@ Task DeployRabbitMQ -depends SelectNamespace Task DeployPostgres -depends SelectNamespace -Task DeployRedis -depends SelectNamespace +Task DeployRedis -depends SelectNamespace { + Exec { kubectl apply -f ./redis-deployment.yml --namespace $Script:NamespaceName } + Exec { kubectl apply -f ./redis-service.yml --namespace $Script:NamespaceName } +} Task DeployMongoDB -depends SelectNamespace { Exec { kubectl apply -f ./mongo-service.yml --namespace $Script:NamespaceName } diff --git a/Kubernetes/redis-deployment.yml b/Kubernetes/redis-deployment.yml new file mode 100644 index 0000000..667396f --- /dev/null +++ b/Kubernetes/redis-deployment.yml @@ -0,0 +1,31 @@ +--- +apiVersion: apps/v1 +kind: Deployment +metadata: + name: redis-master + labels: + app: redis +spec: + selector: + matchLabels: + app: redis + role: master + tier: backend + replicas: 1 + template: + metadata: + labels: + app: redis + role: master + tier: backend + spec: + containers: + - name: master + image: redis + resources: + requests: + cpu: 100m + memory: 100Mi + ports: + - containerPort: 6379 +... diff --git a/Kubernetes/redis-service.yml b/Kubernetes/redis-service.yml new file mode 100644 index 0000000..9082b0f --- /dev/null +++ b/Kubernetes/redis-service.yml @@ -0,0 +1,18 @@ +--- +apiVersion: v1 +kind: Service +metadata: + name: redis-master + labels: + app: redis + role: master + tier: backend +spec: + ports: + - port: 6379 + targetPort: 6379 + selector: + app: redis + role: master + tier: backend +... From 91913a293d9c7996f94b83d02f132f13b36e9faf Mon Sep 17 00:00:00 2001 From: Tigran TIKSN Torosyan Date: Sat, 2 Nov 2019 17:17:40 +0200 Subject: [PATCH 128/139] space removed --- Kubernetes/redis-service.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Kubernetes/redis-service.yml b/Kubernetes/redis-service.yml index 9082b0f..0468490 100644 --- a/Kubernetes/redis-service.yml +++ b/Kubernetes/redis-service.yml @@ -1,4 +1,4 @@ ---- +--- apiVersion: v1 kind: Service metadata: From 24cc25562cdcc7aae06f4891d2b5b6c89521517d Mon Sep 17 00:00:00 2001 From: Tigran TIKSN Torosyan Date: Sun, 10 Nov 2019 19:58:21 +0200 Subject: [PATCH 129/139] init helm --- Kubernetes/DeploymentTasks.ps1 | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/Kubernetes/DeploymentTasks.ps1 b/Kubernetes/DeploymentTasks.ps1 index adc0d31..a84bd27 100644 --- a/Kubernetes/DeploymentTasks.ps1 +++ b/Kubernetes/DeploymentTasks.ps1 @@ -17,10 +17,14 @@ Task DeployHabiticaTaskProviderService -depends DeployRabbitMQ, DeployMongoDB, D Task DeployMicroserviceConfigMap -Task DeployRabbitMQ -depends SelectNamespace +Task DeployRabbitMQ -depends SelectNamespace, InitHelm Task DeployPostgres -depends SelectNamespace +Task InitHelm { + Exec { helm init --history-max 200 } +} + Task DeployRedis -depends SelectNamespace { Exec { kubectl apply -f ./redis-deployment.yml --namespace $Script:NamespaceName } Exec { kubectl apply -f ./redis-service.yml --namespace $Script:NamespaceName } From c5da40462827c8a5e4b4b0e5afc699fad58291a2 Mon Sep 17 00:00:00 2001 From: Tigran TIKSN Torosyan Date: Sun, 10 Nov 2019 20:35:22 +0200 Subject: [PATCH 130/139] rabbitmq deployment --- Kubernetes/DeploymentTasks.ps1 | 9 +++---- Kubernetes/rabbitmq-PVC.yml | 13 ++++++++++ Kubernetes/rabbitmq-deployment.yml | 41 ++++++++++++++++++++++++++++++ 3 files changed, 58 insertions(+), 5 deletions(-) create mode 100644 Kubernetes/rabbitmq-PVC.yml create mode 100644 Kubernetes/rabbitmq-deployment.yml diff --git a/Kubernetes/DeploymentTasks.ps1 b/Kubernetes/DeploymentTasks.ps1 index a84bd27..f00571a 100644 --- a/Kubernetes/DeploymentTasks.ps1 +++ b/Kubernetes/DeploymentTasks.ps1 @@ -17,14 +17,13 @@ Task DeployHabiticaTaskProviderService -depends DeployRabbitMQ, DeployMongoDB, D Task DeployMicroserviceConfigMap -Task DeployRabbitMQ -depends SelectNamespace, InitHelm +Task DeployRabbitMQ -depends SelectNamespace { + Exec { kubectl apply -f ./rabbitmq-PVC.yml --namespace $Script:NamespaceName } + Exec { kubectl apply -f ./rabbitmq-deployment.yml --namespace $Script:NamespaceName } +} Task DeployPostgres -depends SelectNamespace -Task InitHelm { - Exec { helm init --history-max 200 } -} - Task DeployRedis -depends SelectNamespace { Exec { kubectl apply -f ./redis-deployment.yml --namespace $Script:NamespaceName } Exec { kubectl apply -f ./redis-service.yml --namespace $Script:NamespaceName } diff --git a/Kubernetes/rabbitmq-PVC.yml b/Kubernetes/rabbitmq-PVC.yml new file mode 100644 index 0000000..81ca814 --- /dev/null +++ b/Kubernetes/rabbitmq-PVC.yml @@ -0,0 +1,13 @@ +apiVersion: v1 +kind: PersistentVolumeClaim +metadata: + labels: + app: rabbit-mq-data + name: rabbit-mq-data +spec: + accessModes: + - ReadWriteOnce + storageClassName: "standard" + resources: + requests: + storage: 1Gi \ No newline at end of file diff --git a/Kubernetes/rabbitmq-deployment.yml b/Kubernetes/rabbitmq-deployment.yml new file mode 100644 index 0000000..ea62405 --- /dev/null +++ b/Kubernetes/rabbitmq-deployment.yml @@ -0,0 +1,41 @@ +apiVersion: apps/v1 +kind: Deployment +metadata: + labels: + app: rabbit-mq + name: rabbit-mq +spec: + replicas: 1 + selector: + matchLabels: + app: rabbit-mq + template: + metadata: + labels: + app: rabbit-mq + spec: + containers: + - image: rabbitmq:3.8.1-management + name: rabbit-mq + ports: + - containerPort: 15671 + - containerPort: 5671 + volumeMounts: + - name: rabbit-mq-data + mountPath: /etc/rabbitmq + readOnly: false + - name: mq-secret + mountPath: /etc/rabbitmq/certfiles + #readOnly: true + volumes: + - name: mq-secret + secret: + defaultMode: 420 + secretName: rabbit-mq-secrets + - configMap: + defaultMode: 420 + items: + - key: rabbitmq.config + path: rabbitmq.config + name: mq-config + name: rabbit-mq-data \ No newline at end of file From 8e599589aaed91673cda42f2004e824cc74a21a0 Mon Sep 17 00:00:00 2001 From: Tigran TIKSN Torosyan Date: Sun, 10 Nov 2019 20:52:36 +0200 Subject: [PATCH 131/139] removed volume mapping --- Kubernetes/rabbitmq-deployment.yml | 29 +++++------------------------ 1 file changed, 5 insertions(+), 24 deletions(-) diff --git a/Kubernetes/rabbitmq-deployment.yml b/Kubernetes/rabbitmq-deployment.yml index ea62405..ea81770 100644 --- a/Kubernetes/rabbitmq-deployment.yml +++ b/Kubernetes/rabbitmq-deployment.yml @@ -15,27 +15,8 @@ spec: app: rabbit-mq spec: containers: - - image: rabbitmq:3.8.1-management - name: rabbit-mq - ports: - - containerPort: 15671 - - containerPort: 5671 - volumeMounts: - - name: rabbit-mq-data - mountPath: /etc/rabbitmq - readOnly: false - - name: mq-secret - mountPath: /etc/rabbitmq/certfiles - #readOnly: true - volumes: - - name: mq-secret - secret: - defaultMode: 420 - secretName: rabbit-mq-secrets - - configMap: - defaultMode: 420 - items: - - key: rabbitmq.config - path: rabbitmq.config - name: mq-config - name: rabbit-mq-data \ No newline at end of file + - image: rabbitmq:3.8.1-management + name: rabbit-mq + ports: + - containerPort: 15671 + - containerPort: 5671 From 4ed990f02d51ba4c30847406c952c9a92ad4505f Mon Sep 17 00:00:00 2001 From: Tigran TIKSN Torosyan Date: Tue, 24 Dec 2019 11:34:33 +0200 Subject: [PATCH 132/139] Update Data.sql --- Data.sql | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Data.sql b/Data.sql index d69e2d2..2ff2525 100644 --- a/Data.sql +++ b/Data.sql @@ -15,6 +15,7 @@ IF (SELECT count(*) FROM "ClientScopes" WHERE "Id" = 2) = 0 THEN INSERT INTO "Cl IF (SELECT count(*) FROM "ClientScopes" WHERE "Id" = 3) = 0 THEN INSERT INTO "ClientScopes" ("Id", "ClientId", "Scope") OVERRIDING SYSTEM VALUE VALUES (3, 1, N'identity-management'); END IF; IF (SELECT count(*) FROM "ClientScopes" WHERE "Id" = 4) = 0 THEN INSERT INTO "ClientScopes" ("Id", "ClientId", "Scope") OVERRIDING SYSTEM VALUE VALUES (4, 1, N'task-management'); END IF; IF (SELECT count(*) FROM "ClientScopes" WHERE "Id" = 5) = 0 THEN INSERT INTO "ClientScopes" ("Id", "ClientId", "Scope") OVERRIDING SYSTEM VALUE VALUES (5, 1, N'habitica-provider'); END IF; +IF (SELECT count(*) FROM "ClientScopes" WHERE "Id" = 6) = 0 THEN INSERT INTO "ClientScopes" ("Id", "ClientId", "Scope") OVERRIDING SYSTEM VALUE VALUES (6, 1, N'settings-service'); END IF; PERFORM setval('"ClientScopes_Id_seq"', (SELECT MAX("Id") FROM "ClientScopes")+1); @@ -48,18 +49,21 @@ PERFORM setval('"IdentityClaims_Id_seq"', (SELECT MAX("Id") FROM "IdentityClaims IF (SELECT count(*) FROM "ApiResources" WHERE "Id" = 1) = 0 THEN INSERT INTO "ApiResources" ("Id", "Created", "Description", "DisplayName", "Enabled", "Name", "NonEditable") OVERRIDING SYSTEM VALUE VALUES (1, current_date, N'Identity Management Service', N'Identity Management Service API', true, N'identity-api', true); END IF; IF (SELECT count(*) FROM "ApiResources" WHERE "Id" = 2) = 0 THEN INSERT INTO "ApiResources" ("Id", "Created", "Description", "DisplayName", "Enabled", "Name", "NonEditable") OVERRIDING SYSTEM VALUE VALUES (2, current_date, N'Task Management Service', N'Task Management Service API', true, N'task-api', true); END IF; IF (SELECT count(*) FROM "ApiResources" WHERE "Id" = 3) = 0 THEN INSERT INTO "ApiResources" ("Id", "Created", "Description", "DisplayName", "Enabled", "Name", "NonEditable") OVERRIDING SYSTEM VALUE VALUES (3, current_date, N'Habitica Task Provider Service', N'Habitica Task Provider Service API', true, N'habitica-api', true); END IF; +IF (SELECT count(*) FROM "ApiResources" WHERE "Id" = 4) = 0 THEN INSERT INTO "ApiResources" ("Id", "Created", "Description", "DisplayName", "Enabled", "Name", "NonEditable") OVERRIDING SYSTEM VALUE VALUES (4, current_date, N'Settings Service', N'Settings Service API', true, N'settings-api', true); END IF; PERFORM setval('"ApiResources_Id_seq"', (SELECT MAX("Id") FROM "ApiResources")+1); IF (SELECT count(*) FROM "ApiScopes" WHERE "Id" = 1) = 0 THEN INSERT INTO "ApiScopes" ("Id", "ApiResourceId", "Description", "DisplayName", "Emphasize", "Name", "Required", "ShowInDiscoveryDocument") OVERRIDING SYSTEM VALUE VALUES (1, 1, N'Identity Management Service Default Scope', N'Identity Management Service Default Scope', false, N'identity-management', false, true); END IF; IF (SELECT count(*) FROM "ApiScopes" WHERE "Id" = 2) = 0 THEN INSERT INTO "ApiScopes" ("Id", "ApiResourceId", "Description", "DisplayName", "Emphasize", "Name", "Required", "ShowInDiscoveryDocument") OVERRIDING SYSTEM VALUE VALUES (2, 2, N'Task Management Service Default Scope', N'Task Management Service Default Scope', false, N'task-management', false, true); END IF; IF (SELECT count(*) FROM "ApiScopes" WHERE "Id" = 3) = 0 THEN INSERT INTO "ApiScopes" ("Id", "ApiResourceId", "Description", "DisplayName", "Emphasize", "Name", "Required", "ShowInDiscoveryDocument") OVERRIDING SYSTEM VALUE VALUES (3, 3, N'Habitica Task Provider Service Default Scope', N'Habitica Task Provider Service Default Scope', false, N'habitica-provider', false, true); END IF; +IF (SELECT count(*) FROM "ApiScopes" WHERE "Id" = 4) = 0 THEN INSERT INTO "ApiScopes" ("Id", "ApiResourceId", "Description", "DisplayName", "Emphasize", "Name", "Required", "ShowInDiscoveryDocument") OVERRIDING SYSTEM VALUE VALUES (4, 4, N'Settings Service Default Scope', N'Settings Service Default Scope', false, N'settings-service', false, true); END IF; PERFORM setval('"ApiScopes_Id_seq"', (SELECT MAX("Id") FROM "ApiScopes")+1); IF (SELECT count(*) FROM "ApiSecrets" WHERE "Id" = 1) = 0 THEN INSERT INTO "ApiSecrets" ("Id", "ApiResourceId", "Description", "Created", "Expiration", "Type", "Value") OVERRIDING SYSTEM VALUE VALUES (1, 1, NULL, current_date, NULL, N'SharedSecret', N'IlM2emwvAOUundGVXqrYSbgWsSgBdFiUBEFNm+zkZLw='); END IF; IF (SELECT count(*) FROM "ApiSecrets" WHERE "Id" = 2) = 0 THEN INSERT INTO "ApiSecrets" ("Id", "ApiResourceId", "Description", "Created", "Expiration", "Type", "Value") OVERRIDING SYSTEM VALUE VALUES (2, 2, NULL, current_date, NULL, N'SharedSecret', N'SwU06eRABG2C0MK+UuJGdLL064+6wIvtojzDZX+aE7o='); END IF; IF (SELECT count(*) FROM "ApiSecrets" WHERE "Id" = 3) = 0 THEN INSERT INTO "ApiSecrets" ("Id", "ApiResourceId", "Description", "Created", "Expiration", "Type", "Value") OVERRIDING SYSTEM VALUE VALUES (3, 3, NULL, current_date, NULL, N'SharedSecret', N'26O1szHj4CXM1nc/5Pi/K/l7AT751uN9/24QGNiZb70='); END IF; +IF (SELECT count(*) FROM "ApiSecrets" WHERE "Id" = 4) = 0 THEN INSERT INTO "ApiSecrets" ("Id", "ApiResourceId", "Description", "Created", "Expiration", "Type", "Value") OVERRIDING SYSTEM VALUE VALUES (4, 4, NULL, current_date, NULL, N'SharedSecret', N'26O1szHj4CXM1nc/5Pi/K/l7AT751uN9/24QGNiZb70='); END IF; PERFORM setval('"ApiSecrets_Id_seq"', (SELECT MAX("Id") FROM "ApiSecrets")+1); From d337bddf43bc822b3df45e1edb461bc3d85e5f95 Mon Sep 17 00:00:00 2001 From: Tigran TIKSN Torosyan Date: Tue, 24 Dec 2019 11:34:43 +0200 Subject: [PATCH 133/139] Update microservices.yml --- docker-compose/microservices.yml | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/docker-compose/microservices.yml b/docker-compose/microservices.yml index 30aab1b..ea1dc77 100644 --- a/docker-compose/microservices.yml +++ b/docker-compose/microservices.yml @@ -53,6 +53,21 @@ services: networks: - lionize + settings: + image: tiksn/lionize-settings-service:latest + hostname: settings + domainname: settings + ports: + - "8087:8080" + env_file: + - variables.env + environment: + - ConnectionStrings__Mongo=mongodb://root:Xq5xrtzEKj44ueyd@mongo:27017/SettingsService?authSource=admin + - ApiResource__ApiName=settings-api + - ApiResource__ApiSecret=43xoIIj2QFyvFNevScaPvOFUWNQa4unVwT75TOlG5cmwFyAwcI+BFW4mpkeN52jXSAHbUya58gCTkl5K/PNyaQ== + networks: + - lionize + web-ui: image: ashotnazaryan45/lionize-web-ui:latest ports: From 09bb72c4da0da8b7221f39288667847d785c4a60 Mon Sep 17 00:00:00 2001 From: Tigran TIKSN Torosyan Date: Tue, 24 Dec 2019 12:46:17 +0200 Subject: [PATCH 134/139] Create ExportSampleData.ps1 --- ExportSampleData.ps1 | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 ExportSampleData.ps1 diff --git a/ExportSampleData.ps1 b/ExportSampleData.ps1 new file mode 100644 index 0000000..bfed1f9 --- /dev/null +++ b/ExportSampleData.ps1 @@ -0,0 +1,13 @@ +Import-Module -Name Mdbc + +Connect-Mdbc -ConnectionString 'mongodb://root:Xq5xrtzEKj44ueyd@localhost:27017' + +$db = Get-MdbcDatabase -Name 'Settings' + +$collection = Get-MdbcCollection -Name 'DefaultSettings' -Database $db + +Get-MdbcData | Export-MdbcData -Path SampleDefaultSettings.json + +$collection = Get-MdbcCollection -Name 'UserSettings' -Database $db + +Get-MdbcData | Export-MdbcData -Path SampleUserSettings.json \ No newline at end of file From 3844d8ab9138b1b4cfd3c13cdb31a391e2a53855 Mon Sep 17 00:00:00 2001 From: Tigran TIKSN Torosyan Date: Tue, 24 Dec 2019 12:46:20 +0200 Subject: [PATCH 135/139] Create ImportSampleData.ps1 --- ImportSampleData.ps1 | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 ImportSampleData.ps1 diff --git a/ImportSampleData.ps1 b/ImportSampleData.ps1 new file mode 100644 index 0000000..08de84b --- /dev/null +++ b/ImportSampleData.ps1 @@ -0,0 +1,13 @@ +Import-Module -Name Mdbc + +Connect-Mdbc -ConnectionString 'mongodb://root:Xq5xrtzEKj44ueyd@localhost:27017' + +$db = Get-MdbcDatabase -Name 'SettingsService' + +$collection = Get-MdbcCollection -Name 'DefaultSettings' -Database $db + +Import-MdbcData -Path SampleDefaultSettings.json | Set-MdbcData -Collection $collection -Add + +$collection = Get-MdbcCollection -Name 'UserSettings' -Database $db + +Import-MdbcData -Path SampleUserSettings.json | Set-MdbcData -Collection $collection -Add From 9b4d735f9c55702b181c43826526d442e7afc204 Mon Sep 17 00:00:00 2001 From: Tigran TIKSN Torosyan Date: Tue, 24 Dec 2019 12:46:23 +0200 Subject: [PATCH 136/139] Create SampleDefaultSettings.json --- SampleDefaultSettings.json | 2 ++ 1 file changed, 2 insertions(+) create mode 100644 SampleDefaultSettings.json diff --git a/SampleDefaultSettings.json b/SampleDefaultSettings.json new file mode 100644 index 0000000..0ec0dae --- /dev/null +++ b/SampleDefaultSettings.json @@ -0,0 +1,2 @@ +{ "_id" : "750922732", "path" : ["MainPagePagination"], "data" : { "PageSize" : 25 } } +{ "_id" : "180134001", "path" : ["SettingsPagePagination"], "data" : { } } From f190d98118b8781203f16feb7ceeb0a3b86c5aba Mon Sep 17 00:00:00 2001 From: Tigran TIKSN Torosyan Date: Tue, 24 Dec 2019 12:46:26 +0200 Subject: [PATCH 137/139] Create SampleUserSettings.json --- SampleUserSettings.json | 1 + 1 file changed, 1 insertion(+) create mode 100644 SampleUserSettings.json diff --git a/SampleUserSettings.json b/SampleUserSettings.json new file mode 100644 index 0000000..a31201a --- /dev/null +++ b/SampleUserSettings.json @@ -0,0 +1 @@ +{ "_id" : { "settingId" : "750922732", "userId" : "7b803e2d-ee0e-4213-a025-9db732bcbb2e" }, "data" : { "PageSize" : 50 } } From ee3e1a3df97bf7928620e81fcc96c6ce750642ac Mon Sep 17 00:00:00 2001 From: Tigran TIKSN Torosyan Date: Tue, 24 Dec 2019 22:17:28 +0200 Subject: [PATCH 138/139] Update run-in-docker.ps1 --- run-in-docker.ps1 | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/run-in-docker.ps1 b/run-in-docker.ps1 index 61518c3..c97fad3 100644 --- a/run-in-docker.ps1 +++ b/run-in-docker.ps1 @@ -1 +1,8 @@ -Invoke-psake -buildFile .\docker-compose-tasks.ps1 -taskList Setup -nologo +[CmdletBinding()] +param ( + [Parameter()] + [switch] + $SkipPulling +) + +Invoke-psake -buildFile .\docker-compose-tasks.ps1 -taskList Setup -nologo -parameters @{"SkipPulling" = $SkipPulling.IsPresent } From b17936d169a9a6cd223be3c172f780e4bcad2548 Mon Sep 17 00:00:00 2001 From: Tigran TIKSN Torosyan Date: Tue, 24 Dec 2019 22:19:13 +0200 Subject: [PATCH 139/139] Update docker-compose-tasks.ps1 --- docker-compose-tasks.ps1 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docker-compose-tasks.ps1 b/docker-compose-tasks.ps1 index 6c7b545..4ae83d9 100644 --- a/docker-compose-tasks.ps1 +++ b/docker-compose-tasks.ps1 @@ -14,7 +14,7 @@ Task Status { Exec { docker-compose -f (Resolve-Path "docker-compose/dependencies.yml").Path -f (Resolve-Path "docker-compose/microservices.yml").Path ps } } -Task Pull { +Task Pull -precondition { -not $SkipPulling } { Exec { docker-compose -f (Resolve-Path "docker-compose/dependencies.yml").Path -f (Resolve-Path "docker-compose/microservices.yml").Path pull } }