refactor(auth): remove obsolete project restriction APIs

- Remove legacy project restriction schema and helpers
- Install Python test extras in CI
- Update the quality report status
This commit is contained in:
Gabriel20xx committed 2026-10-20 19:32:45 +00:00
1 parent f7819904b9
commit add64ff180
10 files changed
+32 -160

No files matched your search

+1 -5
View File
@@ -3,11 +3,7 @@ import assert from 'node:assert/strict';
import { existsSync, readFileSync } from 'node:fs';
import { hashPassword, passwordHashNeedsUpgrade, verifyAndUpgradePasswordAsync, verifyPassword } from '../src/auth.js';
import { verifyTotp, verifyTotpStep } from '../src/totp.js';
import {
EXAMPLE_INTERNAL_SECRETS,
MIN_INTERNAL_SECRET_LENGTH,
internalSecretMatches,
} from '../src/coreconfig.js';
import { EXAMPLE_INTERNAL_SECRETS, MIN_INTERNAL_SECRET_LENGTH, internalSecretMatches } from '../src/coreconfig.js';
// The Go, Node and Python auth helpers load the same fixtures; see "description" in the file.
const contractUrl = new URL('../../../contract/auth-contract.json', import.meta.url);
+1
View File
@@ -22,6 +22,7 @@ dependencies = [
# consumer does) satisfies this from its own requirements regardless.
[project.optional-dependencies]
fastapi = ["fastapi>=0.100", "pydantic>=2"]
test = ["httpx2>=2"]
[tool.setuptools.packages.find]
where = ["src"]
+2 -2
View File
@@ -36,12 +36,12 @@ describe('ProfileDialog password changes', () => {
await submit();
expect(onSave).not.toHaveBeenCalled();
expect(screen.getByText('Enter your current password to change it.')).toBeTruthy();
expect(screen.getByText('Enter your current password to change your email or password.')).toBeTruthy();
await fill('currentPassword', 'old-password');
await submit();
expect(onSave).not.toHaveBeenCalled();
expect(screen.getByText('Enter a current authenticator code to change your password.')).toBeTruthy();
expect(screen.getByText('Enter a current authenticator code to change your email or password.')).toBeTruthy();
await fill('totpToken', '123456');
await submit();