Browse Source
Change the `default pfx password` in `README` file.
pull/18567/head
maliming
2 years ago
No known key found for this signature in database
GPG Key ID: A646B9CB645ECEA4
1 changed files with
9 additions and
0 deletions
-
framework/src/Volo.Abp.Cli.Core/Volo/Abp/Cli/ProjectBuilding/Templates/RandomizeAuthServerPassPhraseStep.cs
|
|
|
@ -12,6 +12,8 @@ public class RandomizeAuthServerPassPhraseStep : ProjectBuildPipelineStep |
|
|
|
private const string LocalhostPfx = "localhost.pfx -p 00000000-0000-0000-0000-000000000000"; |
|
|
|
private const string DotnetDevCerts = "openiddict.pfx -p 00000000-0000-0000-0000-000000000000"; |
|
|
|
private const string ProductionEncryptionAndSigningCertificate = "AddProductionEncryptionAndSigningCertificate(\"openiddict.pfx\", \"00000000-0000-0000-0000-000000000000\");"; |
|
|
|
private const string ReadmeCallout = "`00000000-0000-0000-0000-000000000000`"; |
|
|
|
|
|
|
|
private readonly static string RandomPassword = Guid.NewGuid().ToString("D"); |
|
|
|
public readonly static string RandomOpenIddictPassword = Guid.NewGuid().ToString("D"); |
|
|
|
|
|
|
|
@ -59,6 +61,13 @@ public class RandomizeAuthServerPassPhraseStep : ProjectBuildPipelineStep |
|
|
|
RandomOpenIddictPassword)); |
|
|
|
} |
|
|
|
|
|
|
|
if (lines[i].Contains(ReadmeCallout)) |
|
|
|
{ |
|
|
|
lines[i] = lines[i].Replace(ReadmeCallout, |
|
|
|
ReadmeCallout.Replace(DefaultPassword, |
|
|
|
RandomOpenIddictPassword)); |
|
|
|
} |
|
|
|
|
|
|
|
if (lines[i].Contains(ProductionEncryptionAndSigningCertificate)) |
|
|
|
{ |
|
|
|
lines[i] = lines[i].Replace(ProductionEncryptionAndSigningCertificate, |
|
|
|
|