Skip to content

Commit 541d7be

Browse files
committed
ACP2E-2755: Issue with rest api after enable 2FA Duo
1 parent fb93d2a commit 541d7be

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

TwoFactorAuth/Model/Provider/Engine/DuoSecurity.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -208,7 +208,7 @@ public function getRequestSignature(UserInterface $user): string
208208
$duoSignature = $this->signValues(
209209
$this->getSecretKey(),
210210
$values,
211-
static::AUTH_PREFIX,
211+
static::DUO_PREFIX,
212212
static::DUO_EXPIRE,
213213
$time
214214
);
@@ -236,8 +236,8 @@ public function verify(UserInterface $user, DataObject $request): bool
236236
}
237237
[$authSig, $appSig] = $signatures;
238238

239-
$authUser = $this->parseValues($this->getSecretKey(), $authSig, static::AUTH_PREFIX, $time);
240239
$appUser = $this->parseValues($this->getApplicationKey(), $appSig, static::APP_PREFIX, $time);
240+
$authUser = $this->parseValues($this->getSecretKey(), $authSig, static::DUO_PREFIX, $time);
241241

242242
return (($authUser === $appUser) && ($appUser === $user->getUserName()));
243243
}

0 commit comments

Comments
 (0)