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:
1 parent
f7819904b9
commit
add64ff180
10 files changed
+32
-160
No files matched your search
@@ -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);
|
||||
|
||||
@@ -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"]
|
||||
|
||||
@@ -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();
|
||||
|
||||
Reference in new issue
Block a user