Skip to content

Commit 8aa4076

Browse files
authored
FIX Local installer is authserver selector (#2219)
* fix local repo installer - identityserver needs settings * temp certificate folder creation --------- Co-authored-by: József Varga <plastic@sensenet.com>
1 parent f2e58b6 commit 8aa4076

2 files changed

Lines changed: 15 additions & 2 deletions

File tree

deployment/scripts/create-devcert.ps1

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,11 @@ if ($Uninstall) {
3535
## Variables section #
3636
#############################
3737
$dummyContainerName = -join ((65..90) + (97..122) | Get-Random -Count 10 | % {[char]$_})
38-
$tempCertPath = "./temp/certificates/$($CertName)"
38+
$tempCertFolder = "./temp/certificates"
39+
$tempCertPath = "$($tempCertFolder)/$($CertName)"
40+
if (-not (Test-Path $tempCertFolder)) {
41+
New-Item -ItemType Directory -Path $tempCertFolder
42+
}
3943

4044
Write-Output " "
4145
Write-Output "###############################"

deployment/scripts/install-sensenet-app.ps1

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,10 @@ Param (
4040

4141
# Identity server
4242
[Parameter(Mandatory=$False)]
43+
[string]$AuthServerType="IdentityServer",
44+
[Parameter(Mandatory=$False)]
45+
[string]$JwtCookie="true",
46+
[Parameter(Mandatory=$False)]
4347
[string]$IdentityContainerName="$($ProjectName)-snis",
4448
[Parameter(Mandatory=$False)]
4549
[string]$IdentityPublicHost="https://$($ProjectName)-is.$($Domain)",
@@ -59,6 +63,8 @@ Param (
5963
[string]$SqlUser="",
6064
[Parameter(Mandatory=$False)]
6165
[string]$SqlPsw="",
66+
[Parameter(Mandatory=$False)]
67+
[string]$HealthCheckUser="qwerty",
6268

6369
# Search service parameters
6470
[Parameter(Mandatory=$False)]
@@ -168,8 +174,11 @@ $params = "run", "-it", "-d", "eol",
168174
"-e", "ASPNETCORE_ENVIRONMENT=$AppEnvironment", "eol",
169175
"-e", "sensenet__Container__Name=$($SensenetContainerName)", "eol",
170176
"-e", "sensenet__identityManagement__UserProfilesEnabled=false", "eol",
177+
"-e", "sensenet__authentication__authServerType=$($AuthServerType)", "eol",
171178
"-e", "sensenet__authentication__authority=$($IdentityPublicHost)", "eol",
172-
"-e", "sensenet__authentication__repositoryUrl=$($SensenetPublicHost)", "eol"
179+
"-e", "sensenet__authentication__repositoryUrl=$($SensenetPublicHost)", "eol",
180+
"-e", "sensenet__authentication__AddJwtCookie=$($JwtCookie)", "eol",
181+
"-e", "sensenet__apikeys__healthcheckeruser=$($HealthCheckUser)", "eol"
173182

174183
if ($SnType -eq "InSql") {
175184
$params += "-e", "ConnectionStrings__SnCrMsSql=Persist Security Info=False;Initial Catalog=$($SqlDbName);Data Source=$($DataSource);User ID=$($SqlUser);Password=$($SqlPsw);TrustServerCertificate=true", "eol"

0 commit comments

Comments
 (0)