We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent ababba5 commit b53187cCopy full SHA for b53187c
Source/Kernel/Setup/Authentication/AuthenticationService.cs
@@ -87,11 +87,14 @@ public async Task EnsureDefaultClientCredentials()
87
88
logger.CreatingDefaultClientCredentials(defaultClientId);
89
90
+ // Hash the secret to match how other application secrets are stored
91
+ var hashedSecret = _passwordHasher.HashPassword(null!, defaultClientSecret);
92
+
93
var application = new Application
94
{
95
Id = Guid.NewGuid().ToString(),
96
ClientId = defaultClientId,
- ClientSecret = defaultClientSecret,
97
+ ClientSecret = hashedSecret,
98
Type = "confidential",
99
ConsentType = "implicit",
100
Permissions =
0 commit comments