You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/Controller/AuthProcess.php
+10-3Lines changed: 10 additions & 3 deletions
Original file line number
Diff line number
Diff line change
@@ -137,6 +137,7 @@ public function main(Request $request): Response
137
137
138
138
if ($publicKey === false || sizeof($oneToken) === 0) {
139
139
thrownewException(
140
+
// phpcs:ignore Generic.Files.LineLength.TooLong
140
141
"User attempted to authenticate with an unknown credential ID. This should already have been prevented by the browser!",
141
142
);
142
143
}
@@ -167,11 +168,15 @@ public function main(Request $request): Response
167
168
* the lower security level. (level upgrades are of course OK.)
168
169
*/
169
170
if ($oneToken[5] > $authObject->getPresenceLevel()) {
171
+
// phpcs:ignore Generic.Files.LineLength.TooLong
170
172
thrownewException("Token was initially registered with higher identification guarantees than now authenticated with (was: " . $oneToken[5] . " now " . $authObject->getPresenceLevel() . "!");
171
173
}
172
174
173
175
// no matter what: if we are passwordless it MUST be presence-verified
174
-
if ($state['FIDO2PasswordlessAuthMode'] === true && $oneToken[5] !== WebAuthnAbstractEvent::PRESENCE_LEVEL_VERIFIED) {
0 commit comments