Alternative implementation of passing totp to the legacy Minecraft authorization protocol to not break the yggdrasil's protocol [deploy]

This commit is contained in:
ErickSkrauch
2021-03-08 22:21:10 +01:00
parent 9a3534ea2b
commit 7a80c44cab
3 changed files with 65 additions and 26 deletions

View File

@@ -95,8 +95,7 @@ class AuthorizationCest {
public function byEmailWithEnabledTwoFactorAuthAndCorrectToken(FunctionalTester $I) {
$I->sendPOST('/api/authserver/authentication/authenticate', [
'username' => 'otp@gmail.com',
'password' => 'password_0',
'totp' => TOTP::create('BBBB')->now(),
'password' => 'password_0:' . TOTP::create('BBBB')->now(),
'clientToken' => Uuid::uuid4()->toString(),
]);
$I->canSeeResponseCodeIs(200);