Fixes #35. Make clientToken optional during legacy Minecraft auth flow

This commit is contained in:
ErickSkrauch
2024-11-24 10:25:22 +01:00
parent d921616360
commit 625250b367
2 changed files with 15 additions and 3 deletions

View File

@@ -107,6 +107,16 @@ class AuthorizationCest {
]);
}
public function withoutClientToken(FunctionalTester $I): void {
$I->sendPOST('/api/authserver/authentication/authenticate', [
'username' => 'admin',
'password' => 'password_0',
]);
$I->canSeeResponseCodeIs(200);
$clientToken = $I->grabDataFromResponseByJsonPath('$.clientToken')[0];
$I->assertNotEmpty($clientToken);
}
public function tooLongClientToken(FunctionalTester $I) {
$I->wantTo('send non uuid clientToken with more then 255 characters length');
$I->sendPOST('/api/authserver/authentication/authenticate', [