Begin work on WebAuthn

This commit is contained in:
Bradley Schofield
2024-06-17 15:27:42 +09:00
parent f91a8a9135
commit a86ba4df47
14 changed files with 1669 additions and 97 deletions
+6
View File
@@ -99,6 +99,12 @@ App::init()
}
break;
case 'webauthn':
if (($auths['webauthn'] ?? true) === false) {
throw new Exception(Exception::USER_AUTH_METHOD_UNSUPPORTED, 'Webauthn authentication is disabled for this project');
}
break;
default:
throw new Exception(Exception::USER_AUTH_METHOD_UNSUPPORTED, 'Unsupported authentication route');
}