AI quality fixes

This commit is contained in:
Matej Bačo
2026-02-09 17:10:00 +01:00
parent 3dc69ba62a
commit a263afeff1
2 changed files with 3 additions and 3 deletions
+1 -1
View File
@@ -1527,7 +1527,7 @@ Http::get('/v1/account/sessions/oauth2/:provider/redirect')
foreach ($rules as $rule) {
$allowedHostnames = $redirectValidator->getAllowedHostnames();
$allowedHostnames[] = $rule['domain'];
$allowedHostnames[] = $rule->getAttribute('domain', '');
$redirectValidator->setAllowedHostnames($allowedHostnames);
}
}
@@ -5204,7 +5204,7 @@ class ProjectsConsoleClientTest extends Scope
'failure' => 'https://domain-without-rule.com'
]),
'error' => '',
'errorDescription' => '',
'error_description' => '',
], followRedirects: false);
$this->assertEquals(400, $response['headers']['status-code']);
$this->assertStringContainsString('project_invalid_success_url', $response['body']);
@@ -5234,7 +5234,7 @@ class ProjectsConsoleClientTest extends Scope
'failure' => 'https://' . $domain
]),
'error' => '',
'errorDescription' => '',
'error_deescription' => '',
], followRedirects: false);
$this->assertEquals(301, $response['headers']['status-code']);
$this->assertStringContainsString('https://' . $domain, $response['headers']['location']);