Skip to content

Commit e702581

Browse files
committed
Name client solarbuildingenvelopes instead of testlab-solar-facades
1 parent 71dc5fe commit e702581

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

backend/src/Data/DbSeeder.cs

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -91,22 +91,22 @@ AppSettings appSettings
9191
)
9292
{
9393
var manager = services.GetRequiredService<IOpenIddictApplicationManager>();
94-
if (await manager.FindByClientIdAsync("testlab-solar-facades").ConfigureAwait(false) is null)
94+
if (await manager.FindByClientIdAsync("solarbuildingenvelopes").ConfigureAwait(false) is null)
9595
{
96-
logger.LogDebug("Creating application client 'testlab-solar-facades'");
96+
logger.LogDebug("Creating application client 'solarbuildingenvelopes'");
9797
// TODO Do not hardcode URL or at least port in development environment.
9898
var host = environment.IsProduction() ? "https://solarbuildingenvelopes.com" : "https://local.solarbuildingenvelopes.com:5051";
9999
await manager.CreateAsync(
100100
new OpenIddictApplicationDescriptor
101101
{
102-
ClientId = "testlab-solar-facades",
102+
ClientId = "solarbuildingenvelopes",
103103
// The secret is used in tests, see `IntegrationTests#RequestAuthToken` and in the database frontned, see `AUTH_CLIENT_SECRET` in `/frontend/.env.*`.
104104
ClientSecret = appSettings.TestlabSolarFacadesOpenIdConnectClientSecret,
105105
ConsentType = environment.IsEnvironment("test") ? OpenIddictConstants.ConsentTypes.Systematic : OpenIddictConstants.ConsentTypes.Explicit,
106-
DisplayName = "Testlab-Solar-Facades client application",
106+
DisplayName = "Solarbuildingenvelopes client application",
107107
DisplayNames =
108108
{
109-
[CultureInfo.GetCultureInfo("de-DE")] = "Testlab-Solar-Facades-Klient-Anwendung"
109+
[CultureInfo.GetCultureInfo("de-DE")] = "Solarbuildingenvelopes-Klient-Anwendung"
110110
},
111111
PostLogoutRedirectUris =
112112
{

backend/test/Integration/IntegrationTests.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ await httpClient.RequestPasswordTokenAsync(
6969
new PasswordTokenRequest
7070
{
7171
Address = "http://localhost/connect/token",
72-
ClientId = "testlab-solar-facades",
72+
ClientId = "solarbuildingenvelopes",
7373
ClientSecret = "secret",
7474
Scope = "api:read api:write api:user:manage",
7575
UserName = emailAddress,

0 commit comments

Comments
 (0)