commit
cf25e28c28
156 files changed
+38669
No files matched your search
@@ -0,0 +1,44 @@
|
||||
# Current compatibility status — 0.3.0
|
||||
|
||||
Target: 2FAuth 8.0.3, source commit `3516c776a1fcbd83d234efc007e3a49807d6ed91`.
|
||||
|
||||
This supersedes the implementation-status statements in the original 0.1.0 audit. The static PHP source inventories remain valid. This project is still **not a verified complete replacement**.
|
||||
|
||||
## Evidence
|
||||
|
||||
The reference really runs PHP 8.4.27 and locked Laravel 13.29.0 dependencies. All 42 PHP migrations succeeded on disposable SQLite. `sqlite-reference-schema.sql` records the resulting application DDL, without fixture rows or deployment secrets.
|
||||
|
||||
The differential runner exercises separate synthetic instances with both a native Rust database and a copy of the real migrated PHP database. The fixtures preserve the ordinary user at id 1 and add an administrator and recipient. It raises the generic API fixture throttle to 1000 on both sides to fit the expanded sequence; ordinary deployment defaults are covered separately by limiter tests. No production configuration or database was accessed.
|
||||
|
||||
The core raw suites comprise 99 HTTP comparisons: 4 public probes, 12 account/authentication calls, 23 extended account/group/validation calls, and 60 administration/sharing/role-switch calls. Three additional CORS probes bring the core total to 102. Version 0.3.0 adds 29 OAuth and 9 device/default-web probes: 140 comparisons per database mode, of which 129 are exact. Count is not route or configuration coverage. Additional checks assert absent borrowed secrets, RFC HOTP output and counter state, per-user group independence, share counts, encryption transitions and denied operations.
|
||||
|
||||
Exact comparisons retain random CSRF values, health-render milliseconds and SVG QR bytes as differences. Supplemental checks require plain CSRF tokens followed by successful login; compare the health page excluding only its numeric rendering time; and render both SVGs and decode them using the PHP QR reader, requiring the same expected otpauth URI. These are explicit semantic checks, not indiscriminate exclusions.
|
||||
|
||||
`tools/passport_interop.py` additionally tests actual PHP-created RSA bearer tokens and encrypted browser cookies against Rust, Rust-created PATs against PHP's League ResourceServer, expiry/signature/revocation/CSRF rejection, PHP-browser upgrade at the HTML bootstrap, cookie clearing and logout. Test keys are generated for disposable fixtures.
|
||||
|
||||
Rust tests exercise actual WebAuthn signatures and credential migration, not acceptance stubs: PHP-encrypted P-256 PEM, RSA/Ed25519 PEM imports, fresh P-256/Ed25519 registration, origin/handle/signature checks, expiry, replay, device management and password/token recovery. Local fake SSO providers exercise PKCE/state/OIDC verification. Local SMTP tests cover delivery and TLS downgrade rejection.
|
||||
|
||||
See `VERIFICATION.md` and the final `reference-results.*.json` files for executed results and binary/case hashes. The earlier `reference-results.json` is retained as a baseline from the old binary.
|
||||
|
||||
## Additions in 0.3.0
|
||||
|
||||
Real PHP session fixtures cover eight process-level combinations: file/database × JSON/PHP serialization × encrypted/plain storage. They exercise original session CSRF, Passport refresh, HTML bootstrap import, native API use, source-store destruction, logout token rotation and replay through the actual HTML import path.
|
||||
|
||||
The device grant uses the pinned `oauth_device_codes` schema, 10-minute device codes, 8-character user codes and the original 5-second polling interval. Its default browser view remains broken like the source binding.
|
||||
|
||||
The OAuth wire test uses a PHP-issued encrypted authorization code with S256 PKCE, verifies the Rust JWT signature in PHP, decrypts and re-encrypts Rust refresh tokens in PHP, and checks exchange/replay plus client-credential wildcard scopes. OAuth error contracts are compared separately rather than inferred from successful exchanges. Optional consent stores approval challenges server-side and binds them to one browser session; prompt=login markers are single-use and expire.
|
||||
|
||||
Existing SQLite databases are checked read-only for required columns/types, primary and non-partial unique keys, and foreign-key delete actions against the pinned migration DDL. Laravel sessions are required only when the database session driver is configured. Other engine support requires the driver/value/SQL work documented in database-portability.md.
|
||||
|
||||
## Remaining gaps before a complete-replacement claim
|
||||
|
||||
- **Database engines:** only SQLite is implemented. PostgreSQL, MySQL and SQL Server remain unsupported. `prepare-sqlite` validates an already migrated pinned schema; it does not reproduce all historic Laravel migration paths.
|
||||
- **Other Laravel session modes:** file and SQLite database stores, JSON/PHP scalar-array serialization, SESSION_ENCRYPT and remember-me import/revocation are implemented and tested. Redis, cookie, Memcached and other backends remain unsupported. Non-ASCII APP_NAME slug defaults, separate session connections and every cookie/multi-process configuration are not certified.
|
||||
- **OAuth surface:** authorization-code/PKCE, refresh rotation, client credentials, device authorization/polling and the Defuse encrypted format are implemented alongside bearer/PAT/cookies. The pinned source has disabled JSON management routes and a broken consent view binding. Defaults preserve those observed defects; explicit opt-ins enable repaired management and authorization-code consent. Device browser consent retains the original broken view binding; this build does not add a repaired device UI. Other package grant modes and every authorization/configuration edge case are not certified.
|
||||
- **Validation/localization/configuration:** selected error/status contracts have been compared and corrected. All request validation combinations, translations, guard ordering, proxy chains, cookie settings and the complete environment matrix have not been exhaustively compared. Some date and user-agent formatting is approximate. OAuth/device limiting is checked at 60/minute; all interactions with the PHP unnamed login quota and authenticated-user key switching are not certified.
|
||||
- **Icons/QR:** SVG encoding differs by QR library while decoded content is checked. SVG sanitization intentionally strips unsupported/executable content; uncommon safe SVG features may change. Remote fetching, proxies, retries, DNS edge cases and checksum-specific QR error messages are not fully identical.
|
||||
- **Mail:** SMTP, TLS/STARTTLS, sendmail and log are implemented. Every Laravel cloud transport and exact HTML mail layout is not reproduced. Notifications are localized but were not checked through real production mail/providers.
|
||||
- **Operational surface:** Rust diagnostics identify the actual native runtime; Laravel cache/optimization commands have native equivalents because no PHP template/config cache exists. The complete Artisan command/scheduler/queue operational interface is not reproduced.
|
||||
- **Acceptance:** no full real-browser UI acceptance, production cutover, physical authenticator matrix or actual GitHub/OpenID provider acceptance was performed. Docker/hosted CI were not executed here.
|
||||
|
||||
Keep the PHP deployment available until the remaining requirements relevant to that deployment are implemented and tested. Successful limited fixtures are not a certification of all original functionality.
|
||||
@@ -0,0 +1,116 @@
|
||||
> Historical 0.1.0 implementation audit. For current implementation status and real PHP reference results, read [CURRENT.md](CURRENT.md) and [VERIFICATION.md](VERIFICATION.md). The source inventories below remain pinned to the same upstream commit.
|
||||
|
||||
# Compatibility audit
|
||||
|
||||
Source pinned to **3516c776a1fcbd83d234efc007e3a49807d6ed91** (2FAuth upstream). All source paths below are relative to `upstream/`.
|
||||
|
||||
`routes.json` inventories 91 application method/path declarations, including expanded apiResource methods, inherited route middleware, constraints and source lines. GET also accepts HEAD. Kernel global/group/alias/priority declarations are included verbatim. This is static source evidence, not Laravel's effective route list: alias expansion, priority sorting, duplicate removal, package routes, CORS preflight and framework fallback behavior still require a booted reference. The API prefix is `/api/v1`; `settingName` is globally `[a-zA-Z]+` (`app/Providers/RouteServiceProvider.php`). API unknown-route text is literally `unknowkn endpoint`.
|
||||
|
||||
`database.json` records all 42 ordered migration sources and hashes, including data backfills. It deliberately does not claim to be a materialized SQL schema. `environment.json` maps 170 literal configuration environment names to source locations without reading deployment values; dynamic preference names are listed separately. Regenerate from the repository root:
|
||||
|
||||
```sh
|
||||
python rust-server/tools/inventory.py
|
||||
```
|
||||
|
||||
## Drop-in requirements and blockers
|
||||
|
||||
| Area | Required behavior and evidence | Unverified work before a drop-in claim |
|
||||
|---|---|---|
|
||||
| Existing databases | SQLite, MySQL, PostgreSQL and SQL Server configured in `config/database.php`. Users, options, accounts, groups, icons, sharing, per-user assignment/order, authentication/OTP logs, sessions/cache, OAuth and WebAuthn tables are migration-backed. | Apply real migrations against fixture databases for each supported driver, compare types/defaults/nullability/indices/foreign keys and preserve migration history. Static declarations are not sufficient. |
|
||||
| Schema evolution | 2026 group assignment/order migrations backfill legacy values then drop `twofaccounts.group_id` and `order_column`. Passport 13 migration changes clients to owner morphs/redirect_uris/grant_types and drops oauth_personal_access_clients. WebAuthn 2022 migration uses a helper defined after `down()`. | Inspect full helper source and data transformations, exercise upgrades and use current table shapes. Do not recreate the original 2019 account schema as the current schema. |
|
||||
| Encryption | `config/app.php` selects AES-256-CBC, APP_KEY and APP_PREVIOUS_KEYS. `app/Models/Traits/CanEncryptField.php` invokes Laravel Crypt encryptString/decryptString conditionally on `useEncryption`; account model applies it to fields and pads secrets as Base32. | Implement and test Laravel ciphertext envelope/MAC, key parsing/rotation and actual encrypted fixtures. Returning stored ciphertext as an OTP secret is not compatible. Preserve key and option state. |
|
||||
| Authentication | `config/auth.php`: web-guard session, api-guard Passport, reverse-proxy-guard custom remote-user provider. `CustomCreateFreshApiToken` mints the first-party `laravel_token` for authenticated responses. `PreventRequestForgery` enables XSRF cookie with no exclusions. | Verify encrypted/signed cookies, session persistence, CSRF exchange (419), JWT/PAT validation/revocation/scopes, password hashing, reset and recovery brokers and remember-me flows. An arbitrary bearer-token lookup is not Passport compatibility. |
|
||||
| Authorization and sharing | `app/Policies/{TwoFAccount,Group,User}Policy.php`, sharing middleware and model scoping enforce owner/shared recipient/admin rules. New shares/assignments/orders are per-user. | Exercise cross-user negative tests, ownership transfer, all-user scope, admin-only paths, disabling sharing, SSO-only/demo/proxy modes and settings gates. |
|
||||
| Middleware | `Kernel.php`, middleware sources and RouteServiceProvider implement trim/empty-to-null, forced JSON Accept, throttling, bindings, language, maintenance/CORS/proxy handling and priority. KickOutInactiveUser returns 418 and updates last_seen_at; bearer/proxy users bypass its inactivity tracking. | Verify actual ordering/status/envelopes/cookies. Preserve `rejectIfReverseProxy`, `rejectIfSsoOnlyAndNotForAdmin`, forceLogout and admin policy behaviors. |
|
||||
| Frontend | `resources/views/landing.blade.php` injects appSettings/appConfig/urls/defaultPreferences/lockedPreferences/appVersion/isDemoApp/isTestingApp/appLocales, CSRF meta and optional CSP nonce. `SinglePageController` computes visitor-safe settings and subdirectory paths. Existing `public/build/manifest.json` and assets are present. | Reuse existing build plus public assets and reproduce bootstrap shape/CSP/base URLs; an unrelated minimal page is not the existing UI. Source rebuild needs sibling `../2FAuth-Components/packages/{formcontrols,stores,styles,ui}` referenced by package.json. |
|
||||
| Frontend HTTP contract | `resources/js/services/httpClientFactory.js` uses credentials, JSON, X-Requested-With, web root vs `/api/v1`, retries 419 via refresh-csrf, handles 418/407/401/422/404 distinctly. | Browser login, refresh, page reload, account/group/share/icon workflows and translated validation payloads must be tested. |
|
||||
| OTP and imports | `app/Models/TwoFAccount.php` supports HOTP/TOTP/Steam, next-password payloads, URI parsing/exports; API controllers/resources/requests and service classes define wire format and validation. | Verify SHA algorithms/digits/period, HOTP increment atomicity, Steam, QR image decode/encode, encrypted import/export variants and field/error envelopes against real source fixtures. |
|
||||
| Integrations/operations | WebAuthn, Socialite OpenID/GitHub, proxy auth, mail notifications/reset, logo fetch, content policy, scheduled log cleanup, cache/optimization and CLI installation are upstream functionality. | A route that returns an explicit unsupported error is honest partial coverage, not parity. All enabled deployment features need implementation and integration tests. |
|
||||
|
||||
## Differential HTTP harness
|
||||
|
||||
The stdlib-only `tools/differential_http.py` compares two **separate disposable instances with equivalent fixture data**, reporting only case numbers, status codes, comparison booleans or sanitized exception class names. It never prints response bodies, header values, environment values or URLs. Redirect following and retries are disabled. Body limit is 4 MiB. TLS verification remains enabled. Credentials are supplied by environment variable names referenced by a case file, separately for each instance. Cookies are retained only with the explicit `--sessions --allow-side-effects` flags, in separate in-memory jars per instance; they are never written to disk.
|
||||
|
||||
```sh
|
||||
python rust-server/tools/differential_http.py \
|
||||
--reference http://127.0.0.1:8000 \
|
||||
--candidate http://127.0.0.1:8080
|
||||
```
|
||||
|
||||
The four original default probes are GET `/up`, `/manifest.json`, `/api/v1/user/name`, and an unknown API path. Three additional defaults check CORS preflight, a cross-origin unauthenticated GET and the same GET without an Origin header. They can create framework sessions/rate-limit counters; no live production instance should be used. `/up` may differ in the framework-rendered HTML even if status is equivalent; exact body comparison intentionally exposes that difference.
|
||||
|
||||
All nondefault paths, authenticated requests and mutations outside the built-in safe probes are skipped unless `--allow-side-effects` is supplied. GET alone does not establish safety: upstream logout, optimize, clear-cache, HOTP and activity tracking can mutate state. The illustrative `cases.example.json` includes a public synthetic OTP secret and a real account-creation mutation. Use it only with disposable fixtures and explicit opt-in:
|
||||
|
||||
```sh
|
||||
python rust-server/tools/differential_http.py \
|
||||
--reference http://127.0.0.1:8000 \
|
||||
--candidate http://127.0.0.1:8080 \
|
||||
--cases rust-server/compatibility/cases.example.json --allow-side-effects
|
||||
```
|
||||
|
||||
Cases support `json`, `headers_env.reference`/`headers_env.candidate`, `ignore_json_pointers` and `compare_headers`. Stateful sequences additionally support `capture_json` (capture name to JSON pointer), `{{capture_name}}` references in later paths/JSON, and `headers_from_cookies` (header name to cookie name, URL-decoded). Captures and cookie values remain separate per instance and are never printed. Missing captures/cookies fail the case. `expected_status` makes matching error responses fail when the scenario expected success. A whole JSON placeholder preserves its type; an embedded placeholder becomes text. Bodies are compared exactly after JSON parsing and replacing each configured base URL with `<BASE>`; explicit JSON pointers can exclude nondeterministic fields. Raw OTPs, timestamps, IDs, localized messages and random HTML CSP/CSRF values can differ. Do not indiscriminately mask these differences. Establish a known clock and matched database IDs/fixtures. Selected headers compare exactly in memory; Set-Cookie parity and browser token exchanges need separate stateful tests.
|
||||
|
||||
Exit code is 1 for any executed difference or transport failure, 0 when all executed comparisons match. Skips are reported and are never counted as evidence of coverage. A successful default run is seven transport/probe comparisons, not 91 route coverage and not a drop-in certification.
|
||||
|
||||
## Verification performed
|
||||
|
||||
The inventory generator and harness syntax/help were checked. The harness was exercised against local deterministic stub servers for matching responses, divergent statuses, redirects, skipped mutation cases and sanitized error reporting. A later isolated Laravel 13.29.0 / PHP 8.4.27 reference boot applied all 42 SQLite migrations and ran four default, twelve basic stateful and 23 extended comparisons against the preexisting release binary. See `reference-results.json` for exact sanitized comparisons, binary hash and limitations. This does not certify the current edited Rust source or production compatibility.
|
||||
|
||||
## Pinned frontend reuse implemented
|
||||
|
||||
`src/frontend.rs` now serves the unmodified upstream Vue build plus allowlisted public image/CSS/robots assets. `public/UPSTREAM-LICENSE` and `UPSTREAM-NOTICE.txt` retain the upstream provenance/license. `frontend-assets.json` records SHA-256 values for every copied public file. PHP is not copied or served. Three targeted frontend tests passed: malicious inline data escaping, visitor redaction, and actual session/cookie/CSP/static-file bootstrap. The module exposes `routes() -> Router<AppState>` and includes the explicit SPA paths from the upstream Vue router, the root alias, static files and manifest. Unknown API paths do not become HTML.
|
||||
|
||||
The HTML bootstrap uses the upstream global names and Vite manifest, default/locked user preferences, locales and visitor-safe settings (all nonvisitor option values become null). Inline JSON escapes HTML delimiters and Unicode line separators; title/theme/attribute values are separately HTML-escaped. A generated nonce protects both scripts under CSP. The HTML handler calls the actual native-session `auth::refresh_csrf`, includes its CSRF token in the meta tag and preserves its session/XSRF cookies. It does not invent a separate frontend authentication token. The copied Axios client reads XSRF-TOKEN and submits its same-origin X-XSRF-TOKEN header; login returns the expected user payload and rotates cookies. The upstream authGuard restores current-user state from GET `/api/v1/user` and then fetches accounts/groups.
|
||||
|
||||
`RUST_PUBLIC_DIR` can relocate the public asset directory; it defaults to the crate's `public` directory. `APP_NAME`, default/locked preference variables and `CONTENT_SECURITY_POLICY` affect the bootstrap. Native sessions default to Secure cookies; HTTP localhost development requires the explicit `RUST_COOKIE_SECURE=false` setting from the auth module. Nonempty APP_SUBDIRECTORY fails with 503 because mounting only the HTML subpath would leave auth/API/assets inconsistent. Proxy and SSO provider capabilities are not advertised by the experimental bootstrap because those authentication methods are unimplemented. Interface links can still reach unimplemented backend features; displaying the original UI does not establish drop-in backend compatibility.
|
||||
|
||||
|
||||
## Stateful comparison sequence
|
||||
|
||||
`cases.stateful.json` exercises CSRF cookie acquisition, password login, current user, HOTP creation, two OTP generations, counter readback, deletion/readback, logout and rejection after logout. Provision `compat@example.invalid` with the public synthetic password in that file on both **disposable** instances, with equivalent nonadministrator fixture users and matching options. Run with:
|
||||
|
||||
```sh
|
||||
python rust-server/tools/differential_http.py \
|
||||
--reference http://127.0.0.1:8000 --candidate http://127.0.0.1:8080 \
|
||||
--cases rust-server/compatibility/cases.stateful.json \
|
||||
--sessions --allow-side-effects
|
||||
```
|
||||
|
||||
The sequence is a starting fixture, not recorded evidence of parity. Random CSRF response bodies and protocol differences intentionally remain visible; only explicitly listed account IDs are ignored in JSON comparisons while per-side IDs drive subsequent requests. It compares state effects through later API reads, not direct database snapshots. It does not establish database schema, cookie cryptography, token persistence, concurrency or browser parity. Timestamps remain unmasked; a clock control is still needed for time-sensitive responses.
|
||||
|
||||
`python rust-server/tests/differential_harness.py` verifies typed/escaped JSON captures, separate cookies/IDs, URL-decoded CSRF header replay, mutation readback and expected-status failure against local deterministic stub servers. These are harness regression tests, not PHP-versus-Rust evidence.
|
||||
|
||||
The recorded reference run matched 8/12 complete stateful responses. Both HOTP values and counter readback matched; CSRF/login/error bodies still differ. All 12 expected statuses matched. Default probes matched 0/4 complete responses, including PHP 200 versus Rust 404 on the deprecated-name route. These are limited case results, not route coverage percentages.
|
||||
|
||||
|
||||
`cases.extended.json` adds group create/read/delete, administrator denial, disabled-sharing denial, QR encode and invalid decode, import/invalid-account validation and feature flags. The recorded baseline matched 11/23 complete responses; unimplemented routes and validation differences remain visible.
|
||||
|
||||
For a reproducible local run, install the pinned `upstream/composer.lock` dependencies with PHP 8.4+ and all extensions in `composer.json`, then run:
|
||||
|
||||
```sh
|
||||
python tools/run_reference.py --php /path/to/php \
|
||||
--source ../upstream --candidate-binary target/release/twofauth-rs \
|
||||
--output compatibility/reference-results.local.json
|
||||
```
|
||||
|
||||
The runner creates a new temporary reference application and two fresh SQLite databases, executes all upstream migrations, creates Passport fixture keys and public synthetic regular/admin/recipient users, then launches both servers and runs 99 core comparisons across the four suites plus three CORS transport probes (102 total). It destroys the fixture directory afterward. Source `vendor` must already contain Composer dependencies; it never installs software or changes the source database/configuration. Generated source config/route caches, environment files and existing session/cache state are excluded. Only PHP runtime environment variables are inherited, so deployment configuration/secrets are not reused. Export `PHPRC` if your PHP runtime needs a custom extension configuration, including for child PHP processes. The result includes the candidate binary SHA-256. Exit 1 means actual compatibility differences; exit 2 means setup failed. No production service is involved.
|
||||
|
||||
|
||||
Use `--candidate-db laravel-copy` to test against a SQLite backup of the real migrated PHP fixture schema. In that mode the runner preserves the PHP user/password record and invokes `prepare-sqlite` to add the Rust authentication sidecars. Use `--candidate-db native` (the default) for the independent development schema. Both modes use new disposable databases; neither accepts a deployment database path.
|
||||
|
||||
`sqlite-reference-schema.sql` records the actual SQLite DDL produced by all 42 migrations (22 application tables, 34 explicit indexes), without fixture rows. The DDL was replayed successfully into an empty SQLite database. It documents this driver only; MySQL, PostgreSQL and SQL Server still require real materialization and comparison.
|
||||
|
||||
|
||||
`cases.admin-sharing.json` adds administrator settings/user mutations and multi-user sharing checks. The runner creates a regular user, an administrator and a recipient on both servers, preserving the original regular-user scenarios. It exercises custom setting CRUD, actual encryption on/off with account readback, last-administrator protections, user creation/promotion/demotion, empty PAT revocation, explicit/all-user sharing, secret suppression, export denial, deterministic HOTP, visible counts, independent per-user groups, revocation and self-transfer validation. Role switches explicitly refresh CSRF cookies before login. JSON assertions independently check missing secrets, RFC HOTP, counts and owner group independence. The fixture sets THROTTLE_API=1000 to accommodate the bulk sequence; default rate-limit equivalence is a separate test requirement.
|
||||
|
||||
Add `--semantic-checks` to preserve every exact comparison and separately check three nondeterministic representations: health HTML equality after changing only the numeric render duration, textual CSRF token shape plus successful subsequent login, and both rendered QR payloads. QR checks require Node `sharp` and use the reference PHP `Zxing\QrReader` to decode each SVG after rasterization. Both decoded provisioning URIs must match each other and the known synthetic fixture. Render/decode failures are reported explicitly. Raw QR bytes, random CSRF strings and health render times remain visible as exact differences; semantic results never replace them.
|
||||
|
||||
Static `headers` are supported for synthetic protocol probes; header values are never printed. `expected_headers`, `expected_json`, `absent_json_pointers` and `expect_text_token` add assertions independently of response equality. The three CORS probes compare status and allow-origin/method/header behavior, assert wildcard origins without credentials and assert the source wildcard header is retained even when Origin is absent. The original 99 core case count is retained separately from these three added transport checks.
|
||||
|
||||
## Historical 0.2.0 reference evidence
|
||||
|
||||
The 0.2.0 run, retained in `VERIFICATION-0.2.0.md`, used independent native and copied Laravel SQLite fixture schemas. It executed 102 comparisons per schema (99 core cases plus three CORS probes), with 91 exact responses each. The filenames `reference-results.native.json` and `reference-results.laravel.json` now hold the latest release results; see `VERIFICATION.md` for their current counts and hash. All statuses, content types, selected/expected headers and independent scenario assertions matched. CORS preflight, actual cross-origin requests and requests without Origin matched exactly.
|
||||
|
||||
The eleven remaining exact body differences per schema are nine independently generated CSRF strings, one health render duration and one QR image encoding. Separate checks passed for health equality after changing only the render-duration number, valid textual CSRF tokens followed by successful login, and both rendered QR images decoding to the same expected synthetic provisioning URI. Raw differences remain recorded. No cases were skipped and no transport/capture errors occurred. These finite fixtures do not certify every route, integration, deployment configuration or supported database driver.
|
||||
|
||||
`reference-results.json` preserves the earlier baseline and upstream-suite/DNS limitations; it is not the final release report. Both final reports carry the candidate SHA-256, harness/case hashes and explicit fixture configuration.
|
||||
@@ -0,0 +1,40 @@
|
||||
# Verification record — 2026-10-27, version 0.2.0
|
||||
|
||||
Target: upstream 2FAuth 8.0.3, commit `3516c776a1fcbd83d234efc007e3a49807d6ed91`.
|
||||
|
||||
Tested included Linux x86_64 GNU executable SHA-256:
|
||||
|
||||
`878d842c502f35dc1ec078a023dafe9dc23604fda0d01aa0703089bf116ba152`
|
||||
|
||||
| Check | Executed result | Scope and limits |
|
||||
|---|---|---|
|
||||
| Rust tests, `cargo test --locked --all-targets` | **101 passed, 0 failed** | Includes actual WebAuthn crypto/recovery, sharing, imports, mail, OAuth/OIDC, authentication, settings/encryption, middleware and subdirectory tests. Count is not total route/configuration coverage. |
|
||||
| Formatting | Passed | `cargo fmt --all -- --check`; source formatted after final changes. |
|
||||
| Strict Clippy | Passed | `cargo clippy --locked --all-targets -- -D warnings`. |
|
||||
| Release build | Passed | Linux x86_64 GNU; bundled binary requires glibc 2.39 and libgcc_s. Vendored OpenSSL, optimized non-LTO release. |
|
||||
| Release HTTP/CLI smoke | Passed | Fresh DB, refusal to re-init, test-user provisioning, HTML/CSP/cookies, login/CSRF, CRUD/secrets, independent HOTP calculations, permissions, logout and process shutdown. |
|
||||
| Relocated executable/assets | Passed | Copied binary/public to an unrelated folder, ran from a different CWD, HTML and PNG assets loaded without RUST_PUBLIC_DIR. |
|
||||
| Direct startup of a copied Laravel DB | Passed | No prepare command required; original application DDL, migration rows and user/password rows unchanged; only rust_-prefixed metadata tables added. |
|
||||
| Real PHP reference | Runs | PHP 8.4.27, locked Laravel 13.29.0; all 42 upstream migrations applied. DDL retained in sqlite-reference-schema.sql. |
|
||||
| Native Rust database HTTP comparisons | **102 executed**, all statuses/checks match | 91 exact responses; 11 expected dynamic/encoding body differences as detailed below. |
|
||||
| Copied Laravel database HTTP comparisons | **102 executed**, all statuses/checks match | Same results on real migrated tables and PHP password hashes. |
|
||||
| Default CORS HTTP comparisons | 3 exact matches in each mode | Preflight, request with Origin, request without Origin; wildcard/default no-credentials policy. |
|
||||
| Supplemental semantic checks | Passed on both modes | Health differs only by render milliseconds; plain CSRF token followed by successful login; both SVG QR codes rendered and decoded with PHP's reader into the exact same fixture URI. |
|
||||
| Real Passport interoperability | **11 checks passed** | PHP bearer/cookie accepted by Rust; Rust PAT accepted by actual PHP League ResourceServer; CSRF, tampering and revocation rejected; PHP browser upgraded, legacy cookie cleared, logout prevents subsequent use. |
|
||||
| Python harness regression tests | **5 passed** | Stateful cookies, headers, captures, normalization, mismatches and sanitized failures. |
|
||||
| Independent crypto | 6 fixtures passed PHP OpenSSL and Laravel Encrypter | AES-128/256-CBC/HMAC, empty/ASCII/Unicode; both independent Python generation and actual PHP decryptString verification. |
|
||||
| Upstream PHPUnit reference suite | 1,518 tests, 4,573 assertions; 5 errors, 2 failures | All seven remaining failures involve unavailable real DNS before mocked icon HTTP. This is a reference-environment result, not a claim Rust passed the PHP test suite. |
|
||||
| Docker / hosted CI / real browser acceptance | Not executed | Files provided; Docker tool/daemon unavailable. No physical authenticator or real external SSO provider acceptance was performed. |
|
||||
| Production migration/cutover | Not performed | Only disposable synthetic data and copied fixtures were used. |
|
||||
|
||||
## Raw differential accounting
|
||||
|
||||
Each database mode executes 7 default/CORS probes, 12 basic stateful calls, 23 extended calls and 60 admin/sharing calls. Native and copied-Laravel modes each produce **91/102 exact matches**. All 102 statuses, content types, selected headers, expected statuses, explicit JSON assertions and CSRF shape checks pass. There are no skipped probes, transport errors or unexpected rate-limit responses.
|
||||
|
||||
The eleven remaining raw body differences are nine random CSRF tokens, one health render-time number and one SVG QR representation. They remain visible in the raw reports. Their relevant behavior is independently checked; QR pixels or random strings were not simply discarded to claim equality.
|
||||
|
||||
The synthetic fixture API quota is raised to 1000 on both instances so the expanded sequence fits one run. Default/API/import limits, expiry, concurrency, trusted proxies and spoofing are separately tested. Raw comparisons and all provenance/case hashes are retained in `reference-results.native.json` and `reference-results.laravel.json`. The old `reference-results.json` is preserved as a baseline.
|
||||
|
||||
## What this does not establish
|
||||
|
||||
**Full replacement has not been reached.** Other database drivers, full package OAuth endpoints, every Laravel session/remember-me mode, historic migration paths, configuration/localization edge cases and complete browser/provider acceptance still remain. See `CURRENT.md` for precise remaining scope.
|
||||
@@ -0,0 +1,43 @@
|
||||
# Verification record — 2026-10-28, version 0.3.0
|
||||
|
||||
Target: upstream 2FAuth 8.0.3, commit `3516c776a1fcbd83d234efc007e3a49807d6ed91`.
|
||||
|
||||
Historical 0.2.0 results, including its upstream PHPUnit run, are retained in `VERIFICATION-0.2.0.md`; they are not rerun claims for this binary.
|
||||
|
||||
## Executed checks
|
||||
|
||||
Included Linux x86_64 GNU executable SHA-256: `0e03e978721bf4fcfc65e18e4a98f47b26b71a151c792b380d18996ae467813d`.
|
||||
|
||||
| Check | Executed result |
|
||||
|---|---|
|
||||
| Rust: cargo test --locked --all-targets | **137 passed, 0 failed** |
|
||||
| Formatting and strict Clippy | Passed; cargo fmt --all -- --check; cargo clippy --locked --all-targets -- -D warnings |
|
||||
| Optimized release and CLI/HTTP smoke | Passed; Linux x86_64 GNU, glibc >=2.39; libc/libm/libgcc_s runtime dependencies |
|
||||
| Native SQLite HTTP comparison | **140 executed: 129 exact, 11 expected raw body differences** |
|
||||
| Copied migrated Laravel SQLite comparison | **140 executed: 129 exact, 11 expected raw body differences** |
|
||||
| Additional OAuth/device HTTP cases | **38 exact per database mode**; error/status/hint/cache/challenge and default web CSRF contracts |
|
||||
| Semantic health, CSRF/login and rendered QR checks | Passed in both database modes |
|
||||
| Actual PHP Passport interoperability | **11 checks passed in each database mode** |
|
||||
| PHP authorization-code/refresh/RSA wire checks | **5 passed**; actual PHP Defuse decrypt/encrypt and OpenSSL verification |
|
||||
| Laravel session process combinations | **8 passed**: file/database × JSON/PHP × plain/encrypted |
|
||||
| Device grant interoperability | **8 passed**: PHP-issued code, PHP approval, Rust tokens checked by actual PHP ResourceServer; pending/backoff, deny, expiry and replay |
|
||||
| Python comparison harness | **6 passed, 0 failed** |
|
||||
| Independent Python/PHP OpenSSL CBC fixtures | **6 passed** |
|
||||
|
||||
All 140 statuses, content types, selected headers, explicit JSON assertions and scenario checks match in both database modes. The 11 raw differences are confined to the original core sequence; all 38 new OAuth/device cases are exact. Both runs retain THROTTLE_API=1000 only for the large API fixture sequence. OAuth/default web quotas are not increased. Supplemental login/QR semantics run before the OAuth error burst so the PHP shared unnamed throttle does not invalidate their setup.
|
||||
|
||||
Full reports and provenance are in reference-results.native.json, reference-results.laravel.json, interop-results.json, passport-interop-results.json and device-interop.json. Actual PHP protocol observations are retained separately in oauth-php-reference.json, oauth-php-body-reference.json and oauth-device-php-reference.json.
|
||||
|
||||
## What this establishes
|
||||
|
||||
The original 102-case HTTP sequence runs against both a native Rust SQLite database and an actual migrated PHP database copied with SQLite backup. Eleven raw response body differences are retained: nine random CSRF tokens, the health render duration and SVG QR representation. Supplemental checks verify login after CSRF, health apart from its numeric rendering time, and both rendered QR images decoded with PHP into the expected fixture URI. No random-value or QR exclusions are used to claim byte equality.
|
||||
|
||||
Additional OAuth cases compare the actual errors, descriptions, hints, statuses and selected cache/challenge headers. The standard token endpoint accepts form and JSON payloads as Laravel does. Success, PKCE, cryptographic interoperability, refresh replay rejection and client-credential scopes are checked separately using actual PHP Defuse and OpenSSL.
|
||||
|
||||
Laravel session HTTP tests cover file/database × JSON/PHP scalar-array serialization × encrypted/plain storage. They verify encrypted XSRF, Passport refresh, source store destruction on HTML bootstrap, native requests after refresh, remember-token rotation, and replay through HTML import after logout. Unit tests also require import to rotate an anonymous native SID and logout to revoke both identities when stale cookies name different users.
|
||||
|
||||
## Limits
|
||||
|
||||
Full replacement has not been reached. Only SQLite is supported. Redis/cookie/other session drivers, the complete configuration/localization/middleware matrix, historical migration paths and full real-browser/provider acceptance remain unverified or unimplemented. Fixed optional OAuth management/consent behavior is explicitly opt-in because the pinned PHP source has broken/disabled routes. See `CURRENT.md` and `database-portability.md`.
|
||||
|
||||
Docker, physical authenticators, production cutover and live GitHub/OpenID providers were not tested in this pass. All process tests use disposable synthetic users, keys, databases and ports.
|
||||
@@ -0,0 +1,715 @@
|
||||
[
|
||||
{
|
||||
"id": "fresh-csrf",
|
||||
"path": "/refresh-csrf",
|
||||
"expected_status": 200,
|
||||
"expect_text_token": true
|
||||
},
|
||||
{
|
||||
"id": "login-admin",
|
||||
"path": "/user/login",
|
||||
"method": "POST",
|
||||
"expected_status": 200,
|
||||
"headers_from_cookies": {
|
||||
"X-XSRF-TOKEN": "XSRF-TOKEN"
|
||||
},
|
||||
"json": {
|
||||
"email": "admin@example.invalid",
|
||||
"password": "Synthetic-compat-password-4620"
|
||||
},
|
||||
"capture_json": {
|
||||
"admin_id": "/id"
|
||||
}
|
||||
},
|
||||
{
|
||||
"id": "last-admin-demote-denied",
|
||||
"path": "/api/v1/users/{{admin_id}}/promote",
|
||||
"method": "PATCH",
|
||||
"expected_status": 403,
|
||||
"headers_from_cookies": {
|
||||
"X-XSRF-TOKEN": "XSRF-TOKEN"
|
||||
},
|
||||
"json": {
|
||||
"is_admin": false
|
||||
}
|
||||
},
|
||||
{
|
||||
"id": "last-admin-delete-denied",
|
||||
"path": "/api/v1/users/{{admin_id}}",
|
||||
"method": "DELETE",
|
||||
"expected_status": 403,
|
||||
"headers_from_cookies": {
|
||||
"X-XSRF-TOKEN": "XSRF-TOKEN"
|
||||
}
|
||||
},
|
||||
{
|
||||
"id": "recipient-admin-read",
|
||||
"path": "/api/v1/users/3",
|
||||
"method": "GET",
|
||||
"expected_status": 200,
|
||||
"headers_from_cookies": {
|
||||
"X-XSRF-TOKEN": "XSRF-TOKEN"
|
||||
},
|
||||
"capture_json": {
|
||||
"recipient_id": "/info/id"
|
||||
},
|
||||
"ignore_json_pointers": [
|
||||
"/info/id",
|
||||
"/info/last_seen_at",
|
||||
"/info/created_at"
|
||||
]
|
||||
},
|
||||
{
|
||||
"id": "admin-create-user",
|
||||
"path": "/api/v1/users",
|
||||
"method": "POST",
|
||||
"expected_status": 201,
|
||||
"headers_from_cookies": {
|
||||
"X-XSRF-TOKEN": "XSRF-TOKEN"
|
||||
},
|
||||
"json": {
|
||||
"name": "Managed",
|
||||
"email": "managed@example.invalid",
|
||||
"password": "Synthetic-managed-password-4620",
|
||||
"password_confirmation": "Synthetic-managed-password-4620",
|
||||
"is_admin": false
|
||||
},
|
||||
"capture_json": {
|
||||
"managed_id": "/info/id"
|
||||
},
|
||||
"ignore_json_pointers": [
|
||||
"/info/id",
|
||||
"/info/last_seen_at",
|
||||
"/info/created_at"
|
||||
]
|
||||
},
|
||||
{
|
||||
"id": "promote-user",
|
||||
"path": "/api/v1/users/{{managed_id}}/promote",
|
||||
"method": "PATCH",
|
||||
"expected_status": 200,
|
||||
"headers_from_cookies": {
|
||||
"X-XSRF-TOKEN": "XSRF-TOKEN"
|
||||
},
|
||||
"json": {
|
||||
"is_admin": true
|
||||
},
|
||||
"ignore_json_pointers": [
|
||||
"/info/id",
|
||||
"/info/last_seen_at",
|
||||
"/info/created_at"
|
||||
]
|
||||
},
|
||||
{
|
||||
"id": "demote-user",
|
||||
"path": "/api/v1/users/{{managed_id}}/promote",
|
||||
"method": "PATCH",
|
||||
"expected_status": 200,
|
||||
"headers_from_cookies": {
|
||||
"X-XSRF-TOKEN": "XSRF-TOKEN"
|
||||
},
|
||||
"json": {
|
||||
"is_admin": false
|
||||
},
|
||||
"ignore_json_pointers": [
|
||||
"/info/id",
|
||||
"/info/last_seen_at",
|
||||
"/info/created_at"
|
||||
]
|
||||
},
|
||||
{
|
||||
"id": "revoke-empty-pats",
|
||||
"path": "/api/v1/users/{{managed_id}}/pats",
|
||||
"method": "DELETE",
|
||||
"expected_status": 204,
|
||||
"headers_from_cookies": {
|
||||
"X-XSRF-TOKEN": "XSRF-TOKEN"
|
||||
}
|
||||
},
|
||||
{
|
||||
"id": "delete-managed-user",
|
||||
"path": "/api/v1/users/{{managed_id}}",
|
||||
"method": "DELETE",
|
||||
"expected_status": 204,
|
||||
"headers_from_cookies": {
|
||||
"X-XSRF-TOKEN": "XSRF-TOKEN"
|
||||
}
|
||||
},
|
||||
{
|
||||
"id": "custom-setting-create",
|
||||
"path": "/api/v1/settings",
|
||||
"method": "POST",
|
||||
"expected_status": 201,
|
||||
"headers_from_cookies": {
|
||||
"X-XSRF-TOKEN": "XSRF-TOKEN"
|
||||
},
|
||||
"json": {
|
||||
"key": "compatCustom",
|
||||
"value": "first"
|
||||
}
|
||||
},
|
||||
{
|
||||
"id": "custom-setting-read",
|
||||
"path": "/api/v1/settings/compatCustom",
|
||||
"method": "GET",
|
||||
"expected_status": 200,
|
||||
"headers_from_cookies": {
|
||||
"X-XSRF-TOKEN": "XSRF-TOKEN"
|
||||
}
|
||||
},
|
||||
{
|
||||
"id": "custom-setting-update",
|
||||
"path": "/api/v1/settings/compatCustom",
|
||||
"method": "PUT",
|
||||
"expected_status": 200,
|
||||
"headers_from_cookies": {
|
||||
"X-XSRF-TOKEN": "XSRF-TOKEN"
|
||||
},
|
||||
"json": {
|
||||
"value": "second"
|
||||
}
|
||||
},
|
||||
{
|
||||
"id": "custom-setting-delete",
|
||||
"path": "/api/v1/settings/compatCustom",
|
||||
"method": "DELETE",
|
||||
"expected_status": 204,
|
||||
"headers_from_cookies": {
|
||||
"X-XSRF-TOKEN": "XSRF-TOKEN"
|
||||
}
|
||||
},
|
||||
{
|
||||
"id": "custom-setting-deleted",
|
||||
"path": "/api/v1/settings/compatCustom",
|
||||
"method": "GET",
|
||||
"expected_status": 404,
|
||||
"headers_from_cookies": {
|
||||
"X-XSRF-TOKEN": "XSRF-TOKEN"
|
||||
}
|
||||
},
|
||||
{
|
||||
"id": "owner-create-hotp",
|
||||
"path": "/api/v1/twofaccounts",
|
||||
"method": "POST",
|
||||
"expected_status": 201,
|
||||
"headers_from_cookies": {
|
||||
"X-XSRF-TOKEN": "XSRF-TOKEN"
|
||||
},
|
||||
"json": {
|
||||
"service": "compat-sharing",
|
||||
"account": "fixture@example.invalid",
|
||||
"otp_type": "hotp",
|
||||
"secret": "GEZDGNBVGY3TQOJQGEZDGNBVGY3TQOJQ",
|
||||
"digits": 6,
|
||||
"algorithm": "sha1",
|
||||
"counter": 0
|
||||
},
|
||||
"capture_json": {
|
||||
"shared_id": "/id"
|
||||
},
|
||||
"ignore_json_pointers": [
|
||||
"/id"
|
||||
]
|
||||
},
|
||||
{
|
||||
"id": "setting-useEncryption-True",
|
||||
"path": "/api/v1/settings/useEncryption",
|
||||
"method": "PUT",
|
||||
"expected_status": 200,
|
||||
"headers_from_cookies": {
|
||||
"X-XSRF-TOKEN": "XSRF-TOKEN"
|
||||
},
|
||||
"json": {
|
||||
"value": true
|
||||
}
|
||||
},
|
||||
{
|
||||
"id": "encrypted-account-read",
|
||||
"path": "/api/v1/twofaccounts/{{shared_id}}",
|
||||
"method": "GET",
|
||||
"expected_status": 200,
|
||||
"headers_from_cookies": {
|
||||
"X-XSRF-TOKEN": "XSRF-TOKEN"
|
||||
},
|
||||
"ignore_json_pointers": [
|
||||
"/id"
|
||||
]
|
||||
},
|
||||
{
|
||||
"id": "setting-useEncryption-False",
|
||||
"path": "/api/v1/settings/useEncryption",
|
||||
"method": "PUT",
|
||||
"expected_status": 200,
|
||||
"headers_from_cookies": {
|
||||
"X-XSRF-TOKEN": "XSRF-TOKEN"
|
||||
},
|
||||
"json": {
|
||||
"value": false
|
||||
}
|
||||
},
|
||||
{
|
||||
"id": "decrypted-account-read",
|
||||
"path": "/api/v1/twofaccounts/{{shared_id}}",
|
||||
"method": "GET",
|
||||
"expected_status": 200,
|
||||
"headers_from_cookies": {
|
||||
"X-XSRF-TOKEN": "XSRF-TOKEN"
|
||||
},
|
||||
"ignore_json_pointers": [
|
||||
"/id"
|
||||
]
|
||||
},
|
||||
{
|
||||
"id": "setting-enableSharing-True",
|
||||
"path": "/api/v1/settings/enableSharing",
|
||||
"method": "PUT",
|
||||
"expected_status": 200,
|
||||
"headers_from_cookies": {
|
||||
"X-XSRF-TOKEN": "XSRF-TOKEN"
|
||||
},
|
||||
"json": {
|
||||
"value": true
|
||||
}
|
||||
},
|
||||
{
|
||||
"id": "setting-enableAllUsersSharingScope-True",
|
||||
"path": "/api/v1/settings/enableAllUsersSharingScope",
|
||||
"method": "PUT",
|
||||
"expected_status": 200,
|
||||
"headers_from_cookies": {
|
||||
"X-XSRF-TOKEN": "XSRF-TOKEN"
|
||||
},
|
||||
"json": {
|
||||
"value": true
|
||||
}
|
||||
},
|
||||
{
|
||||
"id": "share-explicit-recipient",
|
||||
"path": "/api/v1/twofaccounts/{{shared_id}}/shares",
|
||||
"method": "POST",
|
||||
"expected_status": 201,
|
||||
"headers_from_cookies": {
|
||||
"X-XSRF-TOKEN": "XSRF-TOKEN"
|
||||
},
|
||||
"json": {
|
||||
"user_ids": [
|
||||
"{{recipient_id}}"
|
||||
]
|
||||
},
|
||||
"ignore_json_pointers": [
|
||||
"/twofaccount_id"
|
||||
]
|
||||
},
|
||||
{
|
||||
"id": "logout-owner",
|
||||
"path": "/user/logout",
|
||||
"method": "GET",
|
||||
"expected_status": 200,
|
||||
"headers_from_cookies": {
|
||||
"X-XSRF-TOKEN": "XSRF-TOKEN"
|
||||
}
|
||||
},
|
||||
{
|
||||
"id": "refresh-before-recipient",
|
||||
"path": "/refresh-csrf",
|
||||
"expected_status": 200,
|
||||
"expect_text_token": true
|
||||
},
|
||||
{
|
||||
"id": "login-recipient",
|
||||
"path": "/user/login",
|
||||
"method": "POST",
|
||||
"expected_status": 200,
|
||||
"headers_from_cookies": {
|
||||
"X-XSRF-TOKEN": "XSRF-TOKEN"
|
||||
},
|
||||
"json": {
|
||||
"email": "recipient@example.invalid",
|
||||
"password": "Synthetic-compat-password-4620"
|
||||
}
|
||||
},
|
||||
{
|
||||
"id": "recipient-read-secret-hidden",
|
||||
"path": "/api/v1/twofaccounts/{{shared_id}}",
|
||||
"method": "GET",
|
||||
"expected_status": 200,
|
||||
"headers_from_cookies": {
|
||||
"X-XSRF-TOKEN": "XSRF-TOKEN"
|
||||
},
|
||||
"ignore_json_pointers": [
|
||||
"/id"
|
||||
],
|
||||
"absent_json_pointers": [
|
||||
"/secret"
|
||||
]
|
||||
},
|
||||
{
|
||||
"id": "recipient-export-denied",
|
||||
"path": "/api/v1/twofaccounts/export?ids={{shared_id}}",
|
||||
"method": "GET",
|
||||
"expected_status": 403,
|
||||
"headers_from_cookies": {
|
||||
"X-XSRF-TOKEN": "XSRF-TOKEN"
|
||||
}
|
||||
},
|
||||
{
|
||||
"id": "recipient-hotp",
|
||||
"path": "/api/v1/twofaccounts/{{shared_id}}/otp",
|
||||
"method": "GET",
|
||||
"expected_status": 200,
|
||||
"headers_from_cookies": {
|
||||
"X-XSRF-TOKEN": "XSRF-TOKEN"
|
||||
},
|
||||
"expected_json": {
|
||||
"/password": "755224"
|
||||
}
|
||||
},
|
||||
{
|
||||
"id": "recipient-visible-count",
|
||||
"path": "/api/v1/twofaccounts/count",
|
||||
"method": "GET",
|
||||
"expected_status": 200,
|
||||
"headers_from_cookies": {
|
||||
"X-XSRF-TOKEN": "XSRF-TOKEN"
|
||||
},
|
||||
"expected_json": {
|
||||
"/owned": 0,
|
||||
"/shared": 1,
|
||||
"/total": 1
|
||||
}
|
||||
},
|
||||
{
|
||||
"id": "recipient-group-create",
|
||||
"path": "/api/v1/groups",
|
||||
"method": "POST",
|
||||
"expected_status": 201,
|
||||
"headers_from_cookies": {
|
||||
"X-XSRF-TOKEN": "XSRF-TOKEN"
|
||||
},
|
||||
"json": {
|
||||
"name": "Borrowed group",
|
||||
"show_in_chips": true
|
||||
},
|
||||
"capture_json": {
|
||||
"recipient_group": "/id"
|
||||
},
|
||||
"ignore_json_pointers": [
|
||||
"/id"
|
||||
]
|
||||
},
|
||||
{
|
||||
"id": "recipient-group-assign",
|
||||
"path": "/api/v1/groups/{{recipient_group}}/assign",
|
||||
"method": "POST",
|
||||
"expected_status": 200,
|
||||
"headers_from_cookies": {
|
||||
"X-XSRF-TOKEN": "XSRF-TOKEN"
|
||||
},
|
||||
"json": {
|
||||
"ids": [
|
||||
"{{shared_id}}"
|
||||
]
|
||||
},
|
||||
"ignore_json_pointers": [
|
||||
"/id"
|
||||
],
|
||||
"expected_json": {
|
||||
"/twofaccounts_count": 1
|
||||
}
|
||||
},
|
||||
{
|
||||
"id": "recipient-group-read",
|
||||
"path": "/api/v1/groups/{{recipient_group}}",
|
||||
"method": "GET",
|
||||
"expected_status": 200,
|
||||
"headers_from_cookies": {
|
||||
"X-XSRF-TOKEN": "XSRF-TOKEN"
|
||||
},
|
||||
"ignore_json_pointers": [
|
||||
"/id"
|
||||
],
|
||||
"expected_json": {
|
||||
"/twofaccounts_count": 0
|
||||
}
|
||||
},
|
||||
{
|
||||
"id": "recipient-group-index-count",
|
||||
"path": "/api/v1/groups",
|
||||
"method": "GET",
|
||||
"expected_status": 200,
|
||||
"headers_from_cookies": {
|
||||
"X-XSRF-TOKEN": "XSRF-TOKEN"
|
||||
},
|
||||
"ignore_json_pointers": [
|
||||
"/1/id"
|
||||
],
|
||||
"expected_json": {
|
||||
"/1/twofaccounts_count": 1
|
||||
}
|
||||
},
|
||||
{
|
||||
"id": "logout-recipient",
|
||||
"path": "/user/logout",
|
||||
"method": "GET",
|
||||
"expected_status": 200,
|
||||
"headers_from_cookies": {
|
||||
"X-XSRF-TOKEN": "XSRF-TOKEN"
|
||||
}
|
||||
},
|
||||
{
|
||||
"id": "refresh-before-admin",
|
||||
"path": "/refresh-csrf",
|
||||
"expected_status": 200,
|
||||
"expect_text_token": true
|
||||
},
|
||||
{
|
||||
"id": "login-admin",
|
||||
"path": "/user/login",
|
||||
"method": "POST",
|
||||
"expected_status": 200,
|
||||
"headers_from_cookies": {
|
||||
"X-XSRF-TOKEN": "XSRF-TOKEN"
|
||||
},
|
||||
"json": {
|
||||
"email": "admin@example.invalid",
|
||||
"password": "Synthetic-compat-password-4620"
|
||||
}
|
||||
},
|
||||
{
|
||||
"id": "owner-group-independence",
|
||||
"path": "/api/v1/twofaccounts/{{shared_id}}",
|
||||
"method": "GET",
|
||||
"expected_status": 200,
|
||||
"headers_from_cookies": {
|
||||
"X-XSRF-TOKEN": "XSRF-TOKEN"
|
||||
},
|
||||
"ignore_json_pointers": [
|
||||
"/id"
|
||||
],
|
||||
"expected_json": {
|
||||
"/group_id": null
|
||||
}
|
||||
},
|
||||
{
|
||||
"id": "owner-transfer-self-validation",
|
||||
"path": "/api/v1/twofaccounts/{{shared_id}}/owner",
|
||||
"method": "PATCH",
|
||||
"expected_status": 422,
|
||||
"headers_from_cookies": {
|
||||
"X-XSRF-TOKEN": "XSRF-TOKEN"
|
||||
},
|
||||
"json": {
|
||||
"new_owner_id": "{{admin_id}}",
|
||||
"confirm_password": "Synthetic-compat-password-4620"
|
||||
}
|
||||
},
|
||||
{
|
||||
"id": "revoke-explicit-share",
|
||||
"path": "/api/v1/twofaccounts/{{shared_id}}/shares/{{recipient_id}}",
|
||||
"method": "DELETE",
|
||||
"expected_status": 204,
|
||||
"headers_from_cookies": {
|
||||
"X-XSRF-TOKEN": "XSRF-TOKEN"
|
||||
}
|
||||
},
|
||||
{
|
||||
"id": "logout-owner",
|
||||
"path": "/user/logout",
|
||||
"method": "GET",
|
||||
"expected_status": 200,
|
||||
"headers_from_cookies": {
|
||||
"X-XSRF-TOKEN": "XSRF-TOKEN"
|
||||
}
|
||||
},
|
||||
{
|
||||
"id": "refresh-before-recipient",
|
||||
"path": "/refresh-csrf",
|
||||
"expected_status": 200,
|
||||
"expect_text_token": true
|
||||
},
|
||||
{
|
||||
"id": "login-recipient",
|
||||
"path": "/user/login",
|
||||
"method": "POST",
|
||||
"expected_status": 200,
|
||||
"headers_from_cookies": {
|
||||
"X-XSRF-TOKEN": "XSRF-TOKEN"
|
||||
},
|
||||
"json": {
|
||||
"email": "recipient@example.invalid",
|
||||
"password": "Synthetic-compat-password-4620"
|
||||
}
|
||||
},
|
||||
{
|
||||
"id": "recipient-after-revocation",
|
||||
"path": "/api/v1/twofaccounts/{{shared_id}}",
|
||||
"method": "GET",
|
||||
"expected_status": 403,
|
||||
"headers_from_cookies": {
|
||||
"X-XSRF-TOKEN": "XSRF-TOKEN"
|
||||
}
|
||||
},
|
||||
{
|
||||
"id": "logout-recipient",
|
||||
"path": "/user/logout",
|
||||
"method": "GET",
|
||||
"expected_status": 200,
|
||||
"headers_from_cookies": {
|
||||
"X-XSRF-TOKEN": "XSRF-TOKEN"
|
||||
}
|
||||
},
|
||||
{
|
||||
"id": "refresh-before-admin",
|
||||
"path": "/refresh-csrf",
|
||||
"expected_status": 200,
|
||||
"expect_text_token": true
|
||||
},
|
||||
{
|
||||
"id": "login-admin",
|
||||
"path": "/user/login",
|
||||
"method": "POST",
|
||||
"expected_status": 200,
|
||||
"headers_from_cookies": {
|
||||
"X-XSRF-TOKEN": "XSRF-TOKEN"
|
||||
},
|
||||
"json": {
|
||||
"email": "admin@example.invalid",
|
||||
"password": "Synthetic-compat-password-4620"
|
||||
}
|
||||
},
|
||||
{
|
||||
"id": "share-all-scope",
|
||||
"path": "/api/v1/twofaccounts/{{shared_id}}/shares/all",
|
||||
"method": "POST",
|
||||
"expected_status": 201,
|
||||
"headers_from_cookies": {
|
||||
"X-XSRF-TOKEN": "XSRF-TOKEN"
|
||||
},
|
||||
"json": {},
|
||||
"ignore_json_pointers": [
|
||||
"/twofaccount_id"
|
||||
]
|
||||
},
|
||||
{
|
||||
"id": "logout-owner",
|
||||
"path": "/user/logout",
|
||||
"method": "GET",
|
||||
"expected_status": 200,
|
||||
"headers_from_cookies": {
|
||||
"X-XSRF-TOKEN": "XSRF-TOKEN"
|
||||
}
|
||||
},
|
||||
{
|
||||
"id": "refresh-before-recipient",
|
||||
"path": "/refresh-csrf",
|
||||
"expected_status": 200,
|
||||
"expect_text_token": true
|
||||
},
|
||||
{
|
||||
"id": "login-recipient",
|
||||
"path": "/user/login",
|
||||
"method": "POST",
|
||||
"expected_status": 200,
|
||||
"headers_from_cookies": {
|
||||
"X-XSRF-TOKEN": "XSRF-TOKEN"
|
||||
},
|
||||
"json": {
|
||||
"email": "recipient@example.invalid",
|
||||
"password": "Synthetic-compat-password-4620"
|
||||
}
|
||||
},
|
||||
{
|
||||
"id": "recipient-all-scope-read",
|
||||
"path": "/api/v1/twofaccounts/{{shared_id}}",
|
||||
"method": "GET",
|
||||
"expected_status": 200,
|
||||
"headers_from_cookies": {
|
||||
"X-XSRF-TOKEN": "XSRF-TOKEN"
|
||||
},
|
||||
"ignore_json_pointers": [
|
||||
"/id"
|
||||
],
|
||||
"absent_json_pointers": [
|
||||
"/secret"
|
||||
]
|
||||
},
|
||||
{
|
||||
"id": "logout-recipient",
|
||||
"path": "/user/logout",
|
||||
"method": "GET",
|
||||
"expected_status": 200,
|
||||
"headers_from_cookies": {
|
||||
"X-XSRF-TOKEN": "XSRF-TOKEN"
|
||||
}
|
||||
},
|
||||
{
|
||||
"id": "refresh-before-admin",
|
||||
"path": "/refresh-csrf",
|
||||
"expected_status": 200,
|
||||
"expect_text_token": true
|
||||
},
|
||||
{
|
||||
"id": "login-admin",
|
||||
"path": "/user/login",
|
||||
"method": "POST",
|
||||
"expected_status": 200,
|
||||
"headers_from_cookies": {
|
||||
"X-XSRF-TOKEN": "XSRF-TOKEN"
|
||||
},
|
||||
"json": {
|
||||
"email": "admin@example.invalid",
|
||||
"password": "Synthetic-compat-password-4620"
|
||||
}
|
||||
},
|
||||
{
|
||||
"id": "revoke-all-shares",
|
||||
"path": "/api/v1/twofaccounts/{{shared_id}}/shares",
|
||||
"method": "DELETE",
|
||||
"expected_status": 204,
|
||||
"headers_from_cookies": {
|
||||
"X-XSRF-TOKEN": "XSRF-TOKEN"
|
||||
}
|
||||
},
|
||||
{
|
||||
"id": "delete-shared-account",
|
||||
"path": "/api/v1/twofaccounts/{{shared_id}}",
|
||||
"method": "DELETE",
|
||||
"expected_status": 204,
|
||||
"headers_from_cookies": {
|
||||
"X-XSRF-TOKEN": "XSRF-TOKEN"
|
||||
}
|
||||
},
|
||||
{
|
||||
"id": "setting-enableSharing-False",
|
||||
"path": "/api/v1/settings/enableSharing",
|
||||
"method": "PUT",
|
||||
"expected_status": 200,
|
||||
"headers_from_cookies": {
|
||||
"X-XSRF-TOKEN": "XSRF-TOKEN"
|
||||
},
|
||||
"json": {
|
||||
"value": false
|
||||
}
|
||||
},
|
||||
{
|
||||
"id": "setting-enableAllUsersSharingScope-False",
|
||||
"path": "/api/v1/settings/enableAllUsersSharingScope",
|
||||
"method": "PUT",
|
||||
"expected_status": 200,
|
||||
"headers_from_cookies": {
|
||||
"X-XSRF-TOKEN": "XSRF-TOKEN"
|
||||
},
|
||||
"json": {
|
||||
"value": false
|
||||
}
|
||||
},
|
||||
{
|
||||
"id": "logout-admin",
|
||||
"path": "/user/logout",
|
||||
"method": "GET",
|
||||
"expected_status": 200,
|
||||
"headers_from_cookies": {
|
||||
"X-XSRF-TOKEN": "XSRF-TOKEN"
|
||||
}
|
||||
}
|
||||
]
|
||||
@@ -0,0 +1,185 @@
|
||||
[
|
||||
{
|
||||
"id": "issuer-missing-client",
|
||||
"path": "/oauth/device/code",
|
||||
"method": "POST",
|
||||
"expected_status": 400,
|
||||
"expected_json": {
|
||||
"/error": "invalid_request",
|
||||
"/error_description": "The request is missing a required parameter, includes an invalid parameter value, includes a parameter more than once, or is otherwise malformed.",
|
||||
"/hint": "Check the `client_id` parameter"
|
||||
},
|
||||
"compare_headers": [
|
||||
"Cache-Control",
|
||||
"Pragma",
|
||||
"WWW-Authenticate"
|
||||
],
|
||||
"expected_headers": {
|
||||
"Cache-Control": "no-cache, private",
|
||||
"Pragma": null,
|
||||
"WWW-Authenticate": null
|
||||
},
|
||||
"form": {}
|
||||
},
|
||||
{
|
||||
"id": "issuer-unknown-client",
|
||||
"path": "/oauth/device/code",
|
||||
"method": "POST",
|
||||
"expected_status": 401,
|
||||
"expected_json": {
|
||||
"/error": "invalid_client",
|
||||
"/error_description": "Client authentication failed"
|
||||
},
|
||||
"compare_headers": [
|
||||
"Cache-Control",
|
||||
"Pragma",
|
||||
"WWW-Authenticate"
|
||||
],
|
||||
"expected_headers": {
|
||||
"Cache-Control": "no-cache, private",
|
||||
"Pragma": null,
|
||||
"WWW-Authenticate": null
|
||||
},
|
||||
"form": {
|
||||
"client_id": "unknown-device-client"
|
||||
}
|
||||
},
|
||||
{
|
||||
"id": "GET /oauth/device",
|
||||
"path": "/oauth/device",
|
||||
"method": "GET",
|
||||
"expected_status": 500,
|
||||
"expected_json": {
|
||||
"/message": "Server Error"
|
||||
},
|
||||
"compare_headers": [
|
||||
"Cache-Control",
|
||||
"Pragma",
|
||||
"WWW-Authenticate"
|
||||
],
|
||||
"expected_headers": {
|
||||
"Cache-Control": "no-cache, private",
|
||||
"Pragma": null,
|
||||
"WWW-Authenticate": null
|
||||
}
|
||||
},
|
||||
{
|
||||
"id": "GET /oauth/device/authorize",
|
||||
"path": "/oauth/device/authorize",
|
||||
"method": "GET",
|
||||
"expected_status": 401,
|
||||
"expected_json": {
|
||||
"/message": "Unauthenticated."
|
||||
},
|
||||
"compare_headers": [
|
||||
"Cache-Control",
|
||||
"Pragma",
|
||||
"WWW-Authenticate"
|
||||
],
|
||||
"expected_headers": {
|
||||
"Cache-Control": "no-cache, private",
|
||||
"Pragma": null,
|
||||
"WWW-Authenticate": null
|
||||
}
|
||||
},
|
||||
{
|
||||
"id": "POST /oauth/device/authorize",
|
||||
"path": "/oauth/device/authorize",
|
||||
"method": "POST",
|
||||
"expected_status": 419,
|
||||
"expected_json": {
|
||||
"/message": "CSRF token mismatch."
|
||||
},
|
||||
"compare_headers": [
|
||||
"Cache-Control",
|
||||
"Pragma",
|
||||
"WWW-Authenticate"
|
||||
],
|
||||
"expected_headers": {
|
||||
"Cache-Control": "no-cache, private",
|
||||
"Pragma": null,
|
||||
"WWW-Authenticate": null
|
||||
},
|
||||
"json": {}
|
||||
},
|
||||
{
|
||||
"id": "DELETE /oauth/device/authorize",
|
||||
"path": "/oauth/device/authorize",
|
||||
"method": "DELETE",
|
||||
"expected_status": 419,
|
||||
"expected_json": {
|
||||
"/message": "CSRF token mismatch."
|
||||
},
|
||||
"compare_headers": [
|
||||
"Cache-Control",
|
||||
"Pragma",
|
||||
"WWW-Authenticate"
|
||||
],
|
||||
"expected_headers": {
|
||||
"Cache-Control": "no-cache, private",
|
||||
"Pragma": null,
|
||||
"WWW-Authenticate": null
|
||||
},
|
||||
"json": {}
|
||||
},
|
||||
{
|
||||
"id": "POST /oauth/authorize",
|
||||
"path": "/oauth/authorize",
|
||||
"method": "POST",
|
||||
"expected_status": 419,
|
||||
"expected_json": {
|
||||
"/message": "CSRF token mismatch."
|
||||
},
|
||||
"compare_headers": [
|
||||
"Cache-Control",
|
||||
"Pragma",
|
||||
"WWW-Authenticate"
|
||||
],
|
||||
"expected_headers": {
|
||||
"Cache-Control": "no-cache, private",
|
||||
"Pragma": null,
|
||||
"WWW-Authenticate": null
|
||||
},
|
||||
"json": {}
|
||||
},
|
||||
{
|
||||
"id": "DELETE /oauth/authorize",
|
||||
"path": "/oauth/authorize",
|
||||
"method": "DELETE",
|
||||
"expected_status": 419,
|
||||
"expected_json": {
|
||||
"/message": "CSRF token mismatch."
|
||||
},
|
||||
"compare_headers": [
|
||||
"Cache-Control",
|
||||
"Pragma",
|
||||
"WWW-Authenticate"
|
||||
],
|
||||
"expected_headers": {
|
||||
"Cache-Control": "no-cache, private",
|
||||
"Pragma": null,
|
||||
"WWW-Authenticate": null
|
||||
},
|
||||
"json": {}
|
||||
},
|
||||
{
|
||||
"id": "POST /oauth/token/refresh",
|
||||
"path": "/oauth/token/refresh",
|
||||
"method": "POST",
|
||||
"expected_status": 419,
|
||||
"expected_json": {
|
||||
"/message": "CSRF token mismatch."
|
||||
},
|
||||
"compare_headers": [
|
||||
"Cache-Control",
|
||||
"Pragma",
|
||||
"WWW-Authenticate"
|
||||
],
|
||||
"expected_headers": {
|
||||
"Cache-Control": "no-cache, private",
|
||||
"Pragma": null,
|
||||
"WWW-Authenticate": null
|
||||
},
|
||||
"json": {}
|
||||
}
|
||||
]
|
||||
@@ -0,0 +1,8 @@
|
||||
[
|
||||
{"id":"health", "method":"GET", "path":"/up"},
|
||||
{"id":"authenticated-user", "method":"GET", "path":"/api/v1/user", "side_effects":true,
|
||||
"headers_env":{"reference":{"Authorization":"COMPAT_REFERENCE_AUTH"},"candidate":{"Authorization":"COMPAT_CANDIDATE_AUTH"}}},
|
||||
{"id":"create-account-fixture", "method":"POST", "path":"/api/v1/twofaccounts", "side_effects":true,
|
||||
"headers_env":{"reference":{"Authorization":"COMPAT_REFERENCE_AUTH"},"candidate":{"Authorization":"COMPAT_CANDIDATE_AUTH"}},
|
||||
"json":{"service":"compat-fixture","account":"fixture@example.invalid","otp_type":"totp","secret":"JBSWY3DPEHPK3PXP","digits":6,"algorithm":"sha1","period":30}}
|
||||
]
|
||||
@@ -0,0 +1,238 @@
|
||||
[
|
||||
{
|
||||
"id": "fresh-csrf",
|
||||
"method": "GET",
|
||||
"path": "/refresh-csrf",
|
||||
"expected_status": 200,
|
||||
"expect_text_token": true
|
||||
},
|
||||
{
|
||||
"id": "login",
|
||||
"method": "POST",
|
||||
"path": "/user/login",
|
||||
"expected_status": 200,
|
||||
"headers_from_cookies": {
|
||||
"X-XSRF-TOKEN": "XSRF-TOKEN"
|
||||
},
|
||||
"json": {
|
||||
"email": "compat@example.invalid",
|
||||
"password": "Synthetic-compat-password-4620"
|
||||
}
|
||||
},
|
||||
{
|
||||
"id": "current-user",
|
||||
"method": "GET",
|
||||
"path": "/api/v1/user",
|
||||
"expected_status": 200,
|
||||
"headers_from_cookies": {
|
||||
"X-XSRF-TOKEN": "XSRF-TOKEN"
|
||||
}
|
||||
},
|
||||
{
|
||||
"id": "create-hotp",
|
||||
"method": "POST",
|
||||
"path": "/api/v1/twofaccounts",
|
||||
"expected_status": 201,
|
||||
"headers_from_cookies": {
|
||||
"X-XSRF-TOKEN": "XSRF-TOKEN"
|
||||
},
|
||||
"json": {
|
||||
"service": "compat-fixture",
|
||||
"account": "fixture@example.invalid",
|
||||
"otp_type": "hotp",
|
||||
"secret": "GEZDGNBVGY3TQOJQGEZDGNBVGY3TQOJQ",
|
||||
"digits": 6,
|
||||
"algorithm": "sha1",
|
||||
"counter": 0
|
||||
},
|
||||
"capture_json": {
|
||||
"account_id": "/id"
|
||||
},
|
||||
"ignore_json_pointers": [
|
||||
"/id"
|
||||
]
|
||||
},
|
||||
{
|
||||
"id": "read-created",
|
||||
"method": "GET",
|
||||
"path": "/api/v1/twofaccounts/{{account_id}}",
|
||||
"expected_status": 200,
|
||||
"ignore_json_pointers": [
|
||||
"/id"
|
||||
],
|
||||
"headers_from_cookies": {
|
||||
"X-XSRF-TOKEN": "XSRF-TOKEN"
|
||||
}
|
||||
},
|
||||
{
|
||||
"id": "hotp-counter-zero",
|
||||
"method": "GET",
|
||||
"path": "/api/v1/twofaccounts/{{account_id}}/otp",
|
||||
"expected_status": 200,
|
||||
"headers_from_cookies": {
|
||||
"X-XSRF-TOKEN": "XSRF-TOKEN"
|
||||
}
|
||||
},
|
||||
{
|
||||
"id": "hotp-counter-one",
|
||||
"method": "GET",
|
||||
"path": "/api/v1/twofaccounts/{{account_id}}/otp",
|
||||
"expected_status": 200,
|
||||
"headers_from_cookies": {
|
||||
"X-XSRF-TOKEN": "XSRF-TOKEN"
|
||||
}
|
||||
},
|
||||
{
|
||||
"id": "read-counter-effect",
|
||||
"method": "GET",
|
||||
"path": "/api/v1/twofaccounts/{{account_id}}",
|
||||
"expected_status": 200,
|
||||
"ignore_json_pointers": [
|
||||
"/id"
|
||||
],
|
||||
"headers_from_cookies": {
|
||||
"X-XSRF-TOKEN": "XSRF-TOKEN"
|
||||
}
|
||||
},
|
||||
{
|
||||
"id": "group-create",
|
||||
"method": "POST",
|
||||
"path": "/api/v1/groups",
|
||||
"json": {
|
||||
"name": "Compat group"
|
||||
},
|
||||
"expected_status": 201,
|
||||
"capture_json": {
|
||||
"group_id": "/id"
|
||||
},
|
||||
"ignore_json_pointers": [
|
||||
"/id"
|
||||
],
|
||||
"headers_from_cookies": {
|
||||
"X-XSRF-TOKEN": "XSRF-TOKEN"
|
||||
}
|
||||
},
|
||||
{
|
||||
"id": "group-read",
|
||||
"path": "/api/v1/groups/{{group_id}}",
|
||||
"expected_status": 200,
|
||||
"ignore_json_pointers": [
|
||||
"/id"
|
||||
],
|
||||
"headers_from_cookies": {
|
||||
"X-XSRF-TOKEN": "XSRF-TOKEN"
|
||||
}
|
||||
},
|
||||
{
|
||||
"id": "group-delete",
|
||||
"method": "DELETE",
|
||||
"path": "/api/v1/groups/{{group_id}}",
|
||||
"expected_status": 204,
|
||||
"headers_from_cookies": {
|
||||
"X-XSRF-TOKEN": "XSRF-TOKEN"
|
||||
}
|
||||
},
|
||||
{
|
||||
"id": "settings-admin-denial",
|
||||
"path": "/api/v1/settings",
|
||||
"expected_status": 403,
|
||||
"headers_from_cookies": {
|
||||
"X-XSRF-TOKEN": "XSRF-TOKEN"
|
||||
}
|
||||
},
|
||||
{
|
||||
"id": "users-admin-denial",
|
||||
"path": "/api/v1/users",
|
||||
"expected_status": 403,
|
||||
"headers_from_cookies": {
|
||||
"X-XSRF-TOKEN": "XSRF-TOKEN"
|
||||
}
|
||||
},
|
||||
{
|
||||
"id": "sharing-disabled-denial",
|
||||
"path": "/api/v1/twofaccounts/{{account_id}}/shares",
|
||||
"expected_status": 403,
|
||||
"headers_from_cookies": {
|
||||
"X-XSRF-TOKEN": "XSRF-TOKEN"
|
||||
}
|
||||
},
|
||||
{
|
||||
"id": "qr-encode-account",
|
||||
"path": "/api/v1/twofaccounts/{{account_id}}/qrcode",
|
||||
"expected_status": 200,
|
||||
"headers_from_cookies": {
|
||||
"X-XSRF-TOKEN": "XSRF-TOKEN"
|
||||
}
|
||||
},
|
||||
{
|
||||
"id": "qr-decode-invalid",
|
||||
"method": "POST",
|
||||
"path": "/api/v1/qrcode/decode",
|
||||
"json": {},
|
||||
"expected_status": 422,
|
||||
"headers_from_cookies": {
|
||||
"X-XSRF-TOKEN": "XSRF-TOKEN"
|
||||
}
|
||||
},
|
||||
{
|
||||
"id": "migration-empty-validation",
|
||||
"method": "POST",
|
||||
"path": "/api/v1/twofaccounts/migration",
|
||||
"json": {},
|
||||
"expected_status": 422,
|
||||
"headers_from_cookies": {
|
||||
"X-XSRF-TOKEN": "XSRF-TOKEN"
|
||||
}
|
||||
},
|
||||
{
|
||||
"id": "invalid-account-validation",
|
||||
"method": "POST",
|
||||
"path": "/api/v1/twofaccounts",
|
||||
"json": {},
|
||||
"expected_status": 422,
|
||||
"headers_from_cookies": {
|
||||
"X-XSRF-TOKEN": "XSRF-TOKEN"
|
||||
}
|
||||
},
|
||||
{
|
||||
"id": "feature-flags",
|
||||
"path": "/api/v1/features",
|
||||
"expected_status": 200,
|
||||
"headers_from_cookies": {
|
||||
"X-XSRF-TOKEN": "XSRF-TOKEN"
|
||||
}
|
||||
},
|
||||
{
|
||||
"id": "delete-created",
|
||||
"method": "DELETE",
|
||||
"path": "/api/v1/twofaccounts/{{account_id}}",
|
||||
"expected_status": 204,
|
||||
"headers_from_cookies": {
|
||||
"X-XSRF-TOKEN": "XSRF-TOKEN"
|
||||
}
|
||||
},
|
||||
{
|
||||
"id": "read-deletion-effect",
|
||||
"method": "GET",
|
||||
"path": "/api/v1/twofaccounts/{{account_id}}",
|
||||
"expected_status": 404,
|
||||
"headers_from_cookies": {
|
||||
"X-XSRF-TOKEN": "XSRF-TOKEN"
|
||||
}
|
||||
},
|
||||
{
|
||||
"id": "logout",
|
||||
"method": "GET",
|
||||
"path": "/user/logout",
|
||||
"expected_status": 200,
|
||||
"headers_from_cookies": {
|
||||
"X-XSRF-TOKEN": "XSRF-TOKEN"
|
||||
}
|
||||
},
|
||||
{
|
||||
"id": "read-logout-effect",
|
||||
"method": "GET",
|
||||
"path": "/api/v1/user",
|
||||
"expected_status": 401
|
||||
}
|
||||
]
|
||||
@@ -0,0 +1,764 @@
|
||||
[
|
||||
{
|
||||
"id": "missing-grant-type",
|
||||
"path": "/oauth/token",
|
||||
"method": "POST",
|
||||
"expected_status": 400,
|
||||
"form": {},
|
||||
"compare_headers": [
|
||||
"Cache-Control",
|
||||
"Pragma",
|
||||
"WWW-Authenticate",
|
||||
"X-RateLimit-Limit"
|
||||
],
|
||||
"expected_headers": {
|
||||
"Cache-Control": "no-cache, private",
|
||||
"Pragma": null,
|
||||
"WWW-Authenticate": null,
|
||||
"X-RateLimit-Limit": "60"
|
||||
},
|
||||
"expected_json": {
|
||||
"/error": "unsupported_grant_type",
|
||||
"/error_description": "The authorization grant type is not supported by the authorization server.",
|
||||
"/hint": "Check that all required parameters have been provided"
|
||||
}
|
||||
},
|
||||
{
|
||||
"id": "unsupported-grant-empty",
|
||||
"path": "/oauth/token",
|
||||
"method": "POST",
|
||||
"expected_status": 400,
|
||||
"form": {
|
||||
"grant_type": ""
|
||||
},
|
||||
"compare_headers": [
|
||||
"Cache-Control",
|
||||
"Pragma",
|
||||
"WWW-Authenticate",
|
||||
"X-RateLimit-Limit"
|
||||
],
|
||||
"expected_headers": {
|
||||
"Cache-Control": "no-cache, private",
|
||||
"Pragma": null,
|
||||
"WWW-Authenticate": null,
|
||||
"X-RateLimit-Limit": "60"
|
||||
},
|
||||
"expected_json": {
|
||||
"/error": "unsupported_grant_type",
|
||||
"/error_description": "The authorization grant type is not supported by the authorization server.",
|
||||
"/hint": "Check that all required parameters have been provided"
|
||||
}
|
||||
},
|
||||
{
|
||||
"id": "unsupported-grant-bogus",
|
||||
"path": "/oauth/token",
|
||||
"method": "POST",
|
||||
"expected_status": 400,
|
||||
"form": {
|
||||
"grant_type": "bogus"
|
||||
},
|
||||
"compare_headers": [
|
||||
"Cache-Control",
|
||||
"Pragma",
|
||||
"WWW-Authenticate",
|
||||
"X-RateLimit-Limit"
|
||||
],
|
||||
"expected_headers": {
|
||||
"Cache-Control": "no-cache, private",
|
||||
"Pragma": null,
|
||||
"WWW-Authenticate": null,
|
||||
"X-RateLimit-Limit": "60"
|
||||
},
|
||||
"expected_json": {
|
||||
"/error": "unsupported_grant_type",
|
||||
"/error_description": "The authorization grant type is not supported by the authorization server.",
|
||||
"/hint": "Check that all required parameters have been provided"
|
||||
}
|
||||
},
|
||||
{
|
||||
"id": "unsupported-grant-password",
|
||||
"path": "/oauth/token",
|
||||
"method": "POST",
|
||||
"expected_status": 400,
|
||||
"form": {
|
||||
"grant_type": "password"
|
||||
},
|
||||
"compare_headers": [
|
||||
"Cache-Control",
|
||||
"Pragma",
|
||||
"WWW-Authenticate",
|
||||
"X-RateLimit-Limit"
|
||||
],
|
||||
"expected_headers": {
|
||||
"Cache-Control": "no-cache, private",
|
||||
"Pragma": null,
|
||||
"WWW-Authenticate": null,
|
||||
"X-RateLimit-Limit": "60"
|
||||
},
|
||||
"expected_json": {
|
||||
"/error": "unsupported_grant_type",
|
||||
"/error_description": "The authorization grant type is not supported by the authorization server.",
|
||||
"/hint": "Check that all required parameters have been provided"
|
||||
}
|
||||
},
|
||||
{
|
||||
"id": "unsupported-grant-implicit",
|
||||
"path": "/oauth/token",
|
||||
"method": "POST",
|
||||
"expected_status": 400,
|
||||
"form": {
|
||||
"grant_type": "implicit"
|
||||
},
|
||||
"compare_headers": [
|
||||
"Cache-Control",
|
||||
"Pragma",
|
||||
"WWW-Authenticate",
|
||||
"X-RateLimit-Limit"
|
||||
],
|
||||
"expected_headers": {
|
||||
"Cache-Control": "no-cache, private",
|
||||
"Pragma": null,
|
||||
"WWW-Authenticate": null,
|
||||
"X-RateLimit-Limit": "60"
|
||||
},
|
||||
"expected_json": {
|
||||
"/error": "unsupported_grant_type",
|
||||
"/error_description": "The authorization grant type is not supported by the authorization server.",
|
||||
"/hint": "Check that all required parameters have been provided"
|
||||
}
|
||||
},
|
||||
{
|
||||
"id": "unsupported-grant-personal_access",
|
||||
"path": "/oauth/token",
|
||||
"method": "POST",
|
||||
"expected_status": 400,
|
||||
"form": {
|
||||
"grant_type": "personal_access"
|
||||
},
|
||||
"compare_headers": [
|
||||
"Cache-Control",
|
||||
"Pragma",
|
||||
"WWW-Authenticate",
|
||||
"X-RateLimit-Limit"
|
||||
],
|
||||
"expected_headers": {
|
||||
"Cache-Control": "no-cache, private",
|
||||
"Pragma": null,
|
||||
"WWW-Authenticate": null,
|
||||
"X-RateLimit-Limit": "60"
|
||||
},
|
||||
"expected_json": {
|
||||
"/error": "unsupported_grant_type",
|
||||
"/error_description": "The authorization grant type is not supported by the authorization server.",
|
||||
"/hint": "Check that all required parameters have been provided"
|
||||
}
|
||||
},
|
||||
{
|
||||
"id": "device-grant-missing-client",
|
||||
"path": "/oauth/token",
|
||||
"method": "POST",
|
||||
"expected_status": 400,
|
||||
"form": {
|
||||
"grant_type": "urn:ietf:params:oauth:grant-type:device_code"
|
||||
},
|
||||
"compare_headers": [
|
||||
"Cache-Control",
|
||||
"Pragma",
|
||||
"WWW-Authenticate",
|
||||
"X-RateLimit-Limit"
|
||||
],
|
||||
"expected_headers": {
|
||||
"Cache-Control": "no-cache, private",
|
||||
"Pragma": null,
|
||||
"WWW-Authenticate": null,
|
||||
"X-RateLimit-Limit": "60"
|
||||
},
|
||||
"expected_json": {
|
||||
"/error": "invalid_request",
|
||||
"/error_description": "The request is missing a required parameter, includes an invalid parameter value, includes a parameter more than once, or is otherwise malformed.",
|
||||
"/hint": "Check the `client_id` parameter"
|
||||
}
|
||||
},
|
||||
{
|
||||
"id": "missing-client-client_credentials",
|
||||
"path": "/oauth/token",
|
||||
"method": "POST",
|
||||
"expected_status": 400,
|
||||
"form": {
|
||||
"grant_type": "client_credentials"
|
||||
},
|
||||
"compare_headers": [
|
||||
"Cache-Control",
|
||||
"Pragma",
|
||||
"WWW-Authenticate",
|
||||
"X-RateLimit-Limit"
|
||||
],
|
||||
"expected_headers": {
|
||||
"Cache-Control": "no-cache, private",
|
||||
"Pragma": null,
|
||||
"WWW-Authenticate": null,
|
||||
"X-RateLimit-Limit": "60"
|
||||
},
|
||||
"expected_json": {
|
||||
"/error": "invalid_request",
|
||||
"/error_description": "The request is missing a required parameter, includes an invalid parameter value, includes a parameter more than once, or is otherwise malformed.",
|
||||
"/hint": "Check the `client_id` parameter"
|
||||
}
|
||||
},
|
||||
{
|
||||
"id": "unknown-client-client_credentials",
|
||||
"path": "/oauth/token",
|
||||
"method": "POST",
|
||||
"expected_status": 401,
|
||||
"form": {
|
||||
"grant_type": "client_credentials",
|
||||
"client_id": "999999",
|
||||
"client_secret": "synthetic-invalid-secret"
|
||||
},
|
||||
"compare_headers": [
|
||||
"Cache-Control",
|
||||
"Pragma",
|
||||
"WWW-Authenticate",
|
||||
"X-RateLimit-Limit"
|
||||
],
|
||||
"expected_headers": {
|
||||
"Cache-Control": "no-cache, private",
|
||||
"Pragma": null,
|
||||
"WWW-Authenticate": null,
|
||||
"X-RateLimit-Limit": "60"
|
||||
},
|
||||
"expected_json": {
|
||||
"/error": "invalid_client",
|
||||
"/error_description": "Client authentication failed"
|
||||
}
|
||||
},
|
||||
{
|
||||
"id": "missing-client-authorization_code",
|
||||
"path": "/oauth/token",
|
||||
"method": "POST",
|
||||
"expected_status": 400,
|
||||
"form": {
|
||||
"grant_type": "authorization_code"
|
||||
},
|
||||
"compare_headers": [
|
||||
"Cache-Control",
|
||||
"Pragma",
|
||||
"WWW-Authenticate",
|
||||
"X-RateLimit-Limit"
|
||||
],
|
||||
"expected_headers": {
|
||||
"Cache-Control": "no-cache, private",
|
||||
"Pragma": null,
|
||||
"WWW-Authenticate": null,
|
||||
"X-RateLimit-Limit": "60"
|
||||
},
|
||||
"expected_json": {
|
||||
"/error": "invalid_request",
|
||||
"/error_description": "The request is missing a required parameter, includes an invalid parameter value, includes a parameter more than once, or is otherwise malformed.",
|
||||
"/hint": "Check the `client_id` parameter"
|
||||
}
|
||||
},
|
||||
{
|
||||
"id": "unknown-client-authorization_code",
|
||||
"path": "/oauth/token",
|
||||
"method": "POST",
|
||||
"expected_status": 401,
|
||||
"form": {
|
||||
"grant_type": "authorization_code",
|
||||
"client_id": "999999",
|
||||
"client_secret": "synthetic-invalid-secret"
|
||||
},
|
||||
"compare_headers": [
|
||||
"Cache-Control",
|
||||
"Pragma",
|
||||
"WWW-Authenticate",
|
||||
"X-RateLimit-Limit"
|
||||
],
|
||||
"expected_headers": {
|
||||
"Cache-Control": "no-cache, private",
|
||||
"Pragma": null,
|
||||
"WWW-Authenticate": null,
|
||||
"X-RateLimit-Limit": "60"
|
||||
},
|
||||
"expected_json": {
|
||||
"/error": "invalid_client",
|
||||
"/error_description": "Client authentication failed"
|
||||
}
|
||||
},
|
||||
{
|
||||
"id": "missing-client-refresh_token",
|
||||
"path": "/oauth/token",
|
||||
"method": "POST",
|
||||
"expected_status": 400,
|
||||
"form": {
|
||||
"grant_type": "refresh_token"
|
||||
},
|
||||
"compare_headers": [
|
||||
"Cache-Control",
|
||||
"Pragma",
|
||||
"WWW-Authenticate",
|
||||
"X-RateLimit-Limit"
|
||||
],
|
||||
"expected_headers": {
|
||||
"Cache-Control": "no-cache, private",
|
||||
"Pragma": null,
|
||||
"WWW-Authenticate": null,
|
||||
"X-RateLimit-Limit": "60"
|
||||
},
|
||||
"expected_json": {
|
||||
"/error": "invalid_request",
|
||||
"/error_description": "The request is missing a required parameter, includes an invalid parameter value, includes a parameter more than once, or is otherwise malformed.",
|
||||
"/hint": "Check the `client_id` parameter"
|
||||
}
|
||||
},
|
||||
{
|
||||
"id": "unknown-client-refresh_token",
|
||||
"path": "/oauth/token",
|
||||
"method": "POST",
|
||||
"expected_status": 401,
|
||||
"form": {
|
||||
"grant_type": "refresh_token",
|
||||
"client_id": "999999",
|
||||
"client_secret": "synthetic-invalid-secret"
|
||||
},
|
||||
"compare_headers": [
|
||||
"Cache-Control",
|
||||
"Pragma",
|
||||
"WWW-Authenticate",
|
||||
"X-RateLimit-Limit"
|
||||
],
|
||||
"expected_headers": {
|
||||
"Cache-Control": "no-cache, private",
|
||||
"Pragma": null,
|
||||
"WWW-Authenticate": null,
|
||||
"X-RateLimit-Limit": "60"
|
||||
},
|
||||
"expected_json": {
|
||||
"/error": "invalid_client",
|
||||
"/error_description": "Client authentication failed"
|
||||
}
|
||||
},
|
||||
{
|
||||
"id": "json-unsupported",
|
||||
"path": "/oauth/token",
|
||||
"method": "POST",
|
||||
"expected_status": 400,
|
||||
"json": {
|
||||
"grant_type": "bogus"
|
||||
},
|
||||
"compare_headers": [
|
||||
"Cache-Control",
|
||||
"Pragma",
|
||||
"WWW-Authenticate",
|
||||
"X-RateLimit-Limit"
|
||||
],
|
||||
"expected_headers": {
|
||||
"Cache-Control": "no-cache, private",
|
||||
"Pragma": null,
|
||||
"WWW-Authenticate": null,
|
||||
"X-RateLimit-Limit": "60"
|
||||
},
|
||||
"expected_json": {
|
||||
"/error": "unsupported_grant_type",
|
||||
"/error_description": "The authorization grant type is not supported by the authorization server.",
|
||||
"/hint": "Check that all required parameters have been provided"
|
||||
}
|
||||
},
|
||||
{
|
||||
"id": "json-null-grant",
|
||||
"path": "/oauth/token",
|
||||
"method": "POST",
|
||||
"expected_status": 400,
|
||||
"json": {
|
||||
"grant_type": null
|
||||
},
|
||||
"compare_headers": [
|
||||
"Cache-Control",
|
||||
"Pragma",
|
||||
"WWW-Authenticate",
|
||||
"X-RateLimit-Limit"
|
||||
],
|
||||
"expected_headers": {
|
||||
"Cache-Control": "no-cache, private",
|
||||
"Pragma": null,
|
||||
"WWW-Authenticate": null,
|
||||
"X-RateLimit-Limit": "60"
|
||||
},
|
||||
"expected_json": {
|
||||
"/error": "unsupported_grant_type",
|
||||
"/error_description": "The authorization grant type is not supported by the authorization server.",
|
||||
"/hint": "Check that all required parameters have been provided"
|
||||
}
|
||||
},
|
||||
{
|
||||
"id": "json-array-grant",
|
||||
"path": "/oauth/token",
|
||||
"method": "POST",
|
||||
"expected_status": 400,
|
||||
"json": {
|
||||
"grant_type": [
|
||||
"client_credentials"
|
||||
]
|
||||
},
|
||||
"compare_headers": [
|
||||
"Cache-Control",
|
||||
"Pragma",
|
||||
"WWW-Authenticate",
|
||||
"X-RateLimit-Limit"
|
||||
],
|
||||
"expected_headers": {
|
||||
"Cache-Control": "no-cache, private",
|
||||
"Pragma": null,
|
||||
"WWW-Authenticate": null,
|
||||
"X-RateLimit-Limit": "60"
|
||||
},
|
||||
"expected_json": {
|
||||
"/error": "unsupported_grant_type",
|
||||
"/error_description": "The authorization grant type is not supported by the authorization server.",
|
||||
"/hint": "Check that all required parameters have been provided"
|
||||
}
|
||||
},
|
||||
{
|
||||
"id": "json-unknown-client",
|
||||
"path": "/oauth/token",
|
||||
"method": "POST",
|
||||
"expected_status": 401,
|
||||
"json": {
|
||||
"grant_type": "client_credentials",
|
||||
"client_id": 999999,
|
||||
"client_secret": "synthetic-invalid-secret"
|
||||
},
|
||||
"compare_headers": [
|
||||
"Cache-Control",
|
||||
"Pragma",
|
||||
"WWW-Authenticate",
|
||||
"X-RateLimit-Limit"
|
||||
],
|
||||
"expected_headers": {
|
||||
"Cache-Control": "no-cache, private",
|
||||
"Pragma": null,
|
||||
"WWW-Authenticate": null,
|
||||
"X-RateLimit-Limit": "60"
|
||||
},
|
||||
"expected_json": {
|
||||
"/error": "invalid_client",
|
||||
"/error_description": "Client authentication failed"
|
||||
}
|
||||
},
|
||||
{
|
||||
"id": "malformed-basic-missing-client",
|
||||
"path": "/oauth/token",
|
||||
"method": "POST",
|
||||
"expected_status": 400,
|
||||
"form": {
|
||||
"grant_type": "client_credentials"
|
||||
},
|
||||
"compare_headers": [
|
||||
"Cache-Control",
|
||||
"Pragma",
|
||||
"WWW-Authenticate",
|
||||
"X-RateLimit-Limit"
|
||||
],
|
||||
"expected_headers": {
|
||||
"Cache-Control": "no-cache, private",
|
||||
"Pragma": null,
|
||||
"WWW-Authenticate": null,
|
||||
"X-RateLimit-Limit": "60"
|
||||
},
|
||||
"expected_json": {
|
||||
"/error": "invalid_request",
|
||||
"/error_description": "The request is missing a required parameter, includes an invalid parameter value, includes a parameter more than once, or is otherwise malformed.",
|
||||
"/hint": "Check the `client_id` parameter"
|
||||
},
|
||||
"headers": {
|
||||
"Authorization": "Basic not-base64"
|
||||
}
|
||||
},
|
||||
{
|
||||
"id": "basic-unknown-client",
|
||||
"path": "/oauth/token",
|
||||
"method": "POST",
|
||||
"expected_status": 401,
|
||||
"form": {
|
||||
"grant_type": "client_credentials"
|
||||
},
|
||||
"compare_headers": [
|
||||
"Cache-Control",
|
||||
"Pragma",
|
||||
"WWW-Authenticate",
|
||||
"X-RateLimit-Limit"
|
||||
],
|
||||
"expected_headers": {
|
||||
"Cache-Control": "no-cache, private",
|
||||
"Pragma": null,
|
||||
"WWW-Authenticate": "Basic realm=\"OAuth\"",
|
||||
"X-RateLimit-Limit": "60"
|
||||
},
|
||||
"expected_json": {
|
||||
"/error": "invalid_client",
|
||||
"/error_description": "Client authentication failed"
|
||||
},
|
||||
"headers": {
|
||||
"Authorization": "Basic OTk5OTk5OnN5bnRoZXRpYy1pbnZhbGlkLXNlY3JldA=="
|
||||
}
|
||||
},
|
||||
{
|
||||
"id": "bearer-header-unknown-client",
|
||||
"path": "/oauth/token",
|
||||
"method": "POST",
|
||||
"expected_status": 401,
|
||||
"form": {
|
||||
"grant_type": "client_credentials",
|
||||
"client_id": "999999"
|
||||
},
|
||||
"compare_headers": [
|
||||
"Cache-Control",
|
||||
"Pragma",
|
||||
"WWW-Authenticate",
|
||||
"X-RateLimit-Limit"
|
||||
],
|
||||
"expected_headers": {
|
||||
"Cache-Control": "no-cache, private",
|
||||
"Pragma": null,
|
||||
"WWW-Authenticate": "Bearer realm=\"OAuth\"",
|
||||
"X-RateLimit-Limit": "60"
|
||||
},
|
||||
"expected_json": {
|
||||
"/error": "invalid_client",
|
||||
"/error_description": "Client authentication failed"
|
||||
},
|
||||
"headers": {
|
||||
"Authorization": "Bearer synthetic-invalid"
|
||||
}
|
||||
},
|
||||
{
|
||||
"path": "/oauth/token",
|
||||
"method": "POST",
|
||||
"expected_status": 400,
|
||||
"compare_headers": [
|
||||
"Cache-Control",
|
||||
"Pragma",
|
||||
"WWW-Authenticate",
|
||||
"X-RateLimit-Limit"
|
||||
],
|
||||
"expected_headers": {
|
||||
"Cache-Control": "no-cache, private",
|
||||
"Pragma": null,
|
||||
"WWW-Authenticate": null,
|
||||
"X-RateLimit-Limit": "60"
|
||||
},
|
||||
"expected_json": {
|
||||
"/error": "unsupported_grant_type",
|
||||
"/error_description": "The authorization grant type is not supported by the authorization server.",
|
||||
"/hint": "Check that all required parameters have been provided"
|
||||
},
|
||||
"id": "json-top-array",
|
||||
"json": []
|
||||
},
|
||||
{
|
||||
"path": "/oauth/token",
|
||||
"method": "POST",
|
||||
"expected_status": 400,
|
||||
"compare_headers": [
|
||||
"Cache-Control",
|
||||
"Pragma",
|
||||
"WWW-Authenticate",
|
||||
"X-RateLimit-Limit"
|
||||
],
|
||||
"expected_headers": {
|
||||
"Cache-Control": "no-cache, private",
|
||||
"Pragma": null,
|
||||
"WWW-Authenticate": null,
|
||||
"X-RateLimit-Limit": "60"
|
||||
},
|
||||
"expected_json": {
|
||||
"/error": "unsupported_grant_type",
|
||||
"/error_description": "The authorization grant type is not supported by the authorization server.",
|
||||
"/hint": "Check that all required parameters have been provided"
|
||||
},
|
||||
"id": "json-top-number",
|
||||
"json": 42
|
||||
},
|
||||
{
|
||||
"path": "/oauth/token",
|
||||
"method": "POST",
|
||||
"expected_status": 400,
|
||||
"compare_headers": [
|
||||
"Cache-Control",
|
||||
"Pragma",
|
||||
"WWW-Authenticate",
|
||||
"X-RateLimit-Limit"
|
||||
],
|
||||
"expected_headers": {
|
||||
"Cache-Control": "no-cache, private",
|
||||
"Pragma": null,
|
||||
"WWW-Authenticate": null,
|
||||
"X-RateLimit-Limit": "60"
|
||||
},
|
||||
"expected_json": {
|
||||
"/error": "unsupported_grant_type",
|
||||
"/error_description": "The authorization grant type is not supported by the authorization server.",
|
||||
"/hint": "Check that all required parameters have been provided"
|
||||
},
|
||||
"id": "json-top-nonempty-array",
|
||||
"json": [
|
||||
"bogus"
|
||||
]
|
||||
},
|
||||
{
|
||||
"path": "/oauth/token",
|
||||
"method": "POST",
|
||||
"expected_status": 400,
|
||||
"compare_headers": [
|
||||
"Cache-Control",
|
||||
"Pragma",
|
||||
"WWW-Authenticate",
|
||||
"X-RateLimit-Limit"
|
||||
],
|
||||
"expected_headers": {
|
||||
"Cache-Control": "no-cache, private",
|
||||
"Pragma": null,
|
||||
"WWW-Authenticate": null,
|
||||
"X-RateLimit-Limit": "60"
|
||||
},
|
||||
"expected_json": {
|
||||
"/message": "Bad request."
|
||||
},
|
||||
"id": "json-malformed",
|
||||
"raw": "{",
|
||||
"headers": {
|
||||
"Content-Type": "application/json"
|
||||
}
|
||||
},
|
||||
{
|
||||
"path": "/oauth/token",
|
||||
"method": "POST",
|
||||
"expected_status": 400,
|
||||
"compare_headers": [
|
||||
"Cache-Control",
|
||||
"Pragma",
|
||||
"WWW-Authenticate",
|
||||
"X-RateLimit-Limit"
|
||||
],
|
||||
"expected_headers": {
|
||||
"Cache-Control": "no-cache, private",
|
||||
"Pragma": null,
|
||||
"WWW-Authenticate": null,
|
||||
"X-RateLimit-Limit": "60"
|
||||
},
|
||||
"expected_json": {
|
||||
"/message": "Bad request."
|
||||
},
|
||||
"id": "json-top-null",
|
||||
"raw": "null",
|
||||
"headers": {
|
||||
"Content-Type": "application/json"
|
||||
}
|
||||
},
|
||||
{
|
||||
"path": "/oauth/token",
|
||||
"method": "POST",
|
||||
"expected_status": 400,
|
||||
"compare_headers": [
|
||||
"Cache-Control",
|
||||
"Pragma",
|
||||
"WWW-Authenticate",
|
||||
"X-RateLimit-Limit"
|
||||
],
|
||||
"expected_headers": {
|
||||
"Cache-Control": "no-cache, private",
|
||||
"Pragma": null,
|
||||
"WWW-Authenticate": null,
|
||||
"X-RateLimit-Limit": "60"
|
||||
},
|
||||
"expected_json": {
|
||||
"/error": "unsupported_grant_type",
|
||||
"/error_description": "The authorization grant type is not supported by the authorization server.",
|
||||
"/hint": "Check that all required parameters have been provided"
|
||||
},
|
||||
"id": "json-empty-body",
|
||||
"raw": "",
|
||||
"headers": {
|
||||
"Content-Type": "application/json"
|
||||
}
|
||||
},
|
||||
{
|
||||
"path": "/oauth/token",
|
||||
"method": "POST",
|
||||
"expected_status": 400,
|
||||
"compare_headers": [
|
||||
"Cache-Control",
|
||||
"Pragma",
|
||||
"WWW-Authenticate",
|
||||
"X-RateLimit-Limit"
|
||||
],
|
||||
"expected_headers": {
|
||||
"Cache-Control": "no-cache, private",
|
||||
"Pragma": null,
|
||||
"WWW-Authenticate": null,
|
||||
"X-RateLimit-Limit": "60"
|
||||
},
|
||||
"expected_json": {
|
||||
"/error": "unsupported_grant_type",
|
||||
"/error_description": "The authorization grant type is not supported by the authorization server.",
|
||||
"/hint": "Check that all required parameters have been provided"
|
||||
},
|
||||
"id": "form-scalar-then-array",
|
||||
"raw": "grant_type=bogus&grant_type[]=client_credentials",
|
||||
"headers": {
|
||||
"Content-Type": "application/x-www-form-urlencoded"
|
||||
}
|
||||
},
|
||||
{
|
||||
"path": "/oauth/token",
|
||||
"method": "POST",
|
||||
"expected_status": 400,
|
||||
"compare_headers": [
|
||||
"Cache-Control",
|
||||
"Pragma",
|
||||
"WWW-Authenticate",
|
||||
"X-RateLimit-Limit"
|
||||
],
|
||||
"expected_headers": {
|
||||
"Cache-Control": "no-cache, private",
|
||||
"Pragma": null,
|
||||
"WWW-Authenticate": null,
|
||||
"X-RateLimit-Limit": "60"
|
||||
},
|
||||
"expected_json": {
|
||||
"/error": "unsupported_grant_type",
|
||||
"/error_description": "The authorization grant type is not supported by the authorization server.",
|
||||
"/hint": "Check that all required parameters have been provided"
|
||||
},
|
||||
"id": "form-array-then-scalar",
|
||||
"raw": "grant_type[]=client_credentials&grant_type=bogus",
|
||||
"headers": {
|
||||
"Content-Type": "application/x-www-form-urlencoded"
|
||||
}
|
||||
},
|
||||
{
|
||||
"path": "/oauth/token",
|
||||
"method": "POST",
|
||||
"expected_status": 400,
|
||||
"compare_headers": [
|
||||
"Cache-Control",
|
||||
"Pragma",
|
||||
"WWW-Authenticate",
|
||||
"X-RateLimit-Limit"
|
||||
],
|
||||
"expected_headers": {
|
||||
"Cache-Control": "no-cache, private",
|
||||
"Pragma": null,
|
||||
"WWW-Authenticate": null,
|
||||
"X-RateLimit-Limit": "60"
|
||||
},
|
||||
"expected_json": {
|
||||
"/error": "invalid_request",
|
||||
"/hint": "Check the `client_id` parameter"
|
||||
},
|
||||
"id": "unicode-trimmed-grant",
|
||||
"json": {
|
||||
"grant_type": " client_credentials"
|
||||
}
|
||||
}
|
||||
]
|
||||
@@ -0,0 +1,130 @@
|
||||
[
|
||||
{
|
||||
"id": "fresh-csrf",
|
||||
"method": "GET",
|
||||
"path": "/refresh-csrf",
|
||||
"expected_status": 200,
|
||||
"expect_text_token": true
|
||||
},
|
||||
{
|
||||
"id": "login",
|
||||
"method": "POST",
|
||||
"path": "/user/login",
|
||||
"expected_status": 200,
|
||||
"headers_from_cookies": {
|
||||
"X-XSRF-TOKEN": "XSRF-TOKEN"
|
||||
},
|
||||
"json": {
|
||||
"email": "compat@example.invalid",
|
||||
"password": "Synthetic-compat-password-4620"
|
||||
}
|
||||
},
|
||||
{
|
||||
"id": "current-user",
|
||||
"method": "GET",
|
||||
"path": "/api/v1/user",
|
||||
"expected_status": 200,
|
||||
"headers_from_cookies": {
|
||||
"X-XSRF-TOKEN": "XSRF-TOKEN"
|
||||
}
|
||||
},
|
||||
{
|
||||
"id": "create-hotp",
|
||||
"method": "POST",
|
||||
"path": "/api/v1/twofaccounts",
|
||||
"expected_status": 201,
|
||||
"headers_from_cookies": {
|
||||
"X-XSRF-TOKEN": "XSRF-TOKEN"
|
||||
},
|
||||
"json": {
|
||||
"service": "compat-fixture",
|
||||
"account": "fixture@example.invalid",
|
||||
"otp_type": "hotp",
|
||||
"secret": "GEZDGNBVGY3TQOJQGEZDGNBVGY3TQOJQ",
|
||||
"digits": 6,
|
||||
"algorithm": "sha1",
|
||||
"counter": 0
|
||||
},
|
||||
"capture_json": {
|
||||
"account_id": "/id"
|
||||
},
|
||||
"ignore_json_pointers": [
|
||||
"/id"
|
||||
]
|
||||
},
|
||||
{
|
||||
"id": "read-created",
|
||||
"method": "GET",
|
||||
"path": "/api/v1/twofaccounts/{{account_id}}",
|
||||
"expected_status": 200,
|
||||
"ignore_json_pointers": [
|
||||
"/id"
|
||||
],
|
||||
"headers_from_cookies": {
|
||||
"X-XSRF-TOKEN": "XSRF-TOKEN"
|
||||
}
|
||||
},
|
||||
{
|
||||
"id": "hotp-counter-zero",
|
||||
"method": "GET",
|
||||
"path": "/api/v1/twofaccounts/{{account_id}}/otp",
|
||||
"expected_status": 200,
|
||||
"headers_from_cookies": {
|
||||
"X-XSRF-TOKEN": "XSRF-TOKEN"
|
||||
}
|
||||
},
|
||||
{
|
||||
"id": "hotp-counter-one",
|
||||
"method": "GET",
|
||||
"path": "/api/v1/twofaccounts/{{account_id}}/otp",
|
||||
"expected_status": 200,
|
||||
"headers_from_cookies": {
|
||||
"X-XSRF-TOKEN": "XSRF-TOKEN"
|
||||
}
|
||||
},
|
||||
{
|
||||
"id": "read-counter-effect",
|
||||
"method": "GET",
|
||||
"path": "/api/v1/twofaccounts/{{account_id}}",
|
||||
"expected_status": 200,
|
||||
"ignore_json_pointers": [
|
||||
"/id"
|
||||
],
|
||||
"headers_from_cookies": {
|
||||
"X-XSRF-TOKEN": "XSRF-TOKEN"
|
||||
}
|
||||
},
|
||||
{
|
||||
"id": "delete-created",
|
||||
"method": "DELETE",
|
||||
"path": "/api/v1/twofaccounts/{{account_id}}",
|
||||
"expected_status": 204,
|
||||
"headers_from_cookies": {
|
||||
"X-XSRF-TOKEN": "XSRF-TOKEN"
|
||||
}
|
||||
},
|
||||
{
|
||||
"id": "read-deletion-effect",
|
||||
"method": "GET",
|
||||
"path": "/api/v1/twofaccounts/{{account_id}}",
|
||||
"expected_status": 404,
|
||||
"headers_from_cookies": {
|
||||
"X-XSRF-TOKEN": "XSRF-TOKEN"
|
||||
}
|
||||
},
|
||||
{
|
||||
"id": "logout",
|
||||
"method": "GET",
|
||||
"path": "/user/logout",
|
||||
"expected_status": 200,
|
||||
"headers_from_cookies": {
|
||||
"X-XSRF-TOKEN": "XSRF-TOKEN"
|
||||
}
|
||||
},
|
||||
{
|
||||
"id": "read-logout-effect",
|
||||
"method": "GET",
|
||||
"path": "/api/v1/user",
|
||||
"expected_status": 401
|
||||
}
|
||||
]
|
||||
@@ -0,0 +1,47 @@
|
||||
# Database portability audit
|
||||
|
||||
The current runtime supports SQLite. PostgreSQL, MySQL/MariaDB and SQL Server are upstream deployment options, but are not implemented by this Rust backend. Changing the connection URL or enabling SQLx features does not establish compatibility.
|
||||
|
||||
## Implementation boundary
|
||||
|
||||
`AppState` stores `SqlitePool`; handlers expose `SqliteConnection` and `SqliteRow`, and use direct SQLx queries throughout. Introduce a backend-neutral pool/transaction/query boundary with typed bound values and normalized results. Keep native SQLx SQLite/PostgreSQL/MySQL drivers; SQLx 0.8 has no SQL Server driver, so SQL Server needs a separate driver such as Tiberius. Cargo.lock contains SQLx PostgreSQL and MySQL 0.8.6 packages; Cargo.toml currently enables only SQLite. A lockfile entry does not mean a driver is enabled or tested.
|
||||
|
||||
Use explicit backend implementations for insert-and-return-ID, upsert, atomic consume-once records and rate-limit increments. Generic placeholder replacement cannot translate these semantics or normalize returned native types. Preserve transaction affinity when retrieving generated IDs.
|
||||
|
||||
| Current form | PostgreSQL | MySQL/MariaDB | SQL Server |
|
||||
| --- | --- | --- | --- |
|
||||
| `?` binds | `$1`, `$2`, etc. | `?` | `@P1`, `@P2`, etc. |
|
||||
| `last_insert_rowid()` | `INSERT ... RETURNING id` | insert result ID | `OUTPUT INSERTED.id` |
|
||||
| `ON CONFLICT ...` | supported with compatible targets | explicit duplicate-key update | transactional update/insert with appropriate locking |
|
||||
| `DELETE ... RETURNING` | supported | locked read/delete transaction as needed by server/version | `DELETE ... OUTPUT DELETED...` |
|
||||
| `datetime('now', ...)` | typed UTC timestamp comparisons | typed UTC timestamp comparisons | typed UTC timestamp comparisons |
|
||||
| `json_each(grant_types)` | native JSON conversion or application decoding | JSON expression or application decoding | JSON expression or application decoding |
|
||||
| `INSERT OR IGNORE` | conflict-targeted `DO NOTHING` | conflict-specific handling; avoid suppressing unrelated errors | constraint-aware transaction |
|
||||
| nullable `ip_address IS ?` | `IS NOT DISTINCT FROM` | `<=>` | equality plus explicit both-null condition |
|
||||
| `LIMIT` | supported | supported | `TOP` or ordered `OFFSET/FETCH` |
|
||||
| `CAST(id AS TEXT)` | supported | compatible character cast | compatible character cast |
|
||||
|
||||
Quote identifiers consistently: `key`, `groups` and `window` can collide with dialect keywords. SQLite `PRAGMA` introspection must become PostgreSQL/MySQL information-schema and SQL Server catalog queries. Rust metadata DDL also needs per-backend generated IDs, bounded indexed strings, timestamp representations and index-existence checks; SQLite `TEXT PRIMARY KEY` and `CREATE INDEX IF NOT EXISTS` are not portable.
|
||||
|
||||
## Schema and value normalization
|
||||
|
||||
Keep pinned PHP migrations authoritative for application tables. Validate an offline migrated database before creating only Rust-owned metadata tables. Do not attempt to recreate production schemas from the simplified development DDL.
|
||||
|
||||
Laravel columns are not uniformly signed 64-bit integers. Users use big IDs; account IDs originate as unsigned integer; digits use unsigned small integer; periods use unsigned integer; counters may be unsigned big integer. PostgreSQL `smallint`/`integer` cannot simply be decoded with SQLx's `i64` implementation. MySQL unsigned-bigint counters can exceed `i64::MAX`; reject unsupported ranges explicitly or retain `u64` through the data path. SQL Server uses its own numeric and bit representations. Real PostgreSQL booleans also require boolean predicates instead of `=0` and `=1`.
|
||||
|
||||
Timestamps are native database timestamp columns, although SQLite handlers currently decode them as strings. WebAuthn additionally contains UUID and JSON fields on databases that support those types. Normalize timestamps to UTC, booleans to Rust `bool`, integer widths explicitly, and UUID/JSON values without losing nullability. Do not convert arbitrary database errors into conflict success.
|
||||
|
||||
`schema_validation.rs` checks required SQLite application columns, primary keys, non-partial uniqueness and delete actions against the materialized pinned migration DDL. Obsolete `twofaccounts.group_id`/`order_column` and framework cache/migration tables are excluded. Laravel sessions are required only with the database session driver. This validator is a structural prerequisite, not proof of cross-database behavior.
|
||||
|
||||
## Required interoperability evidence
|
||||
|
||||
For each supported engine, run pinned PHP migrations in a disposable database and seed identical synthetic fixtures. Run the differential HTTP suite against Rust, then reopen records written by Rust with PHP. Include:
|
||||
|
||||
- encrypted accounts and key rotation; nullable strings, booleans, timestamps and numeric boundary values;
|
||||
- Passport clients, tokens and revocation; Laravel session payloads; WebAuthn UUID/JSON/key fields;
|
||||
- unique usernames, group assignments, per-user account ordering and share targets;
|
||||
- account/user deletion and foreign-key cascade/set-null behavior;
|
||||
- simultaneous consume-once challenges, rate-limit increments, registration and HOTP generation;
|
||||
- failed statements, transaction rollback and connection reuse.
|
||||
|
||||
A successful connection or compilation does not demonstrate migrated-schema compatibility. Each engine needs a recorded migrated schema, driver/server versions, HTTP comparison results and PHP read-back results before its support claim can change.
|
||||
@@ -0,0 +1,547 @@
|
||||
{
|
||||
"upstream_commit": "3516c776a1fcbd83d234efc007e3a49807d6ed91",
|
||||
"kind": "ordered migration evidence; not a materialized SQL schema",
|
||||
"drivers": [
|
||||
"sqlite",
|
||||
"mysql",
|
||||
"pgsql",
|
||||
"sqlsrv"
|
||||
],
|
||||
"migrations": [
|
||||
{
|
||||
"file": "database/migrations/2014_10_12_000000_create_users_table.php",
|
||||
"sha256": "9a54cf93367bc7c19790a5c0f8182f733c48692f559a2fc3bc6285caedcc9f2c",
|
||||
"schema_operations": [
|
||||
[
|
||||
"create",
|
||||
"users"
|
||||
]
|
||||
],
|
||||
"up_source": "<?php\n\nuse Illuminate\\Support\\Facades\\Schema;\nuse Illuminate\\Database\\Schema\\Blueprint;\nuse Illuminate\\Database\\Migrations\\Migration;\n\nclass CreateUsersTable extends Migration\n{\n /**\n * Run the migrations.\n *\n * @return void\n */\n public function up()\n {\n Schema::create('users', function (Blueprint $table) {\n $table->bigIncrements('id');\n $table->string('name');\n $table->string('email')->unique();\n $table->timestamp('email_verified_at')->nullable();\n $table->string('password');\n $table->rememberToken();\n $table->timestamps();\n });\n }\n\n /**\n * Reverse the migrations.\n *\n * @return void\n */\n ",
|
||||
"note": "Raw up source includes exact definitions and transformations. Helpers defined after down may need the full source; no SQL schema is inferred."
|
||||
},
|
||||
{
|
||||
"file": "database/migrations/2014_10_12_100000_create_password_resets_table.php",
|
||||
"sha256": "42824028ead8eb9813f0d568f830def27145d5ac52288021cb7a6337d3810c41",
|
||||
"schema_operations": [
|
||||
[
|
||||
"create",
|
||||
"password_resets"
|
||||
]
|
||||
],
|
||||
"up_source": "<?php\n\nuse Illuminate\\Support\\Facades\\Schema;\nuse Illuminate\\Database\\Schema\\Blueprint;\nuse Illuminate\\Database\\Migrations\\Migration;\n\nclass CreatePasswordResetsTable extends Migration\n{\n /**\n * Run the migrations.\n *\n * @return void\n */\n public function up()\n {\n Schema::create('password_resets', function (Blueprint $table) {\n $table->string('email')->index();\n $table->string('token');\n $table->timestamp('created_at')->nullable();\n });\n }\n\n /**\n * Reverse the migrations.\n *\n * @return void\n */\n ",
|
||||
"note": "Raw up source includes exact definitions and transformations. Helpers defined after down may need the full source; no SQL schema is inferred."
|
||||
},
|
||||
{
|
||||
"file": "database/migrations/2016_06_01_000001_create_oauth_auth_codes_table.php",
|
||||
"sha256": "90ab218a2616ba5e7320fbfe57fd0f8cf39a85542300634fecf691a85a6bf6bb",
|
||||
"schema_operations": [
|
||||
[
|
||||
"create",
|
||||
"oauth_auth_codes"
|
||||
]
|
||||
],
|
||||
"up_source": "<?php\n\nuse Illuminate\\Database\\Migrations\\Migration;\nuse Illuminate\\Database\\Schema\\Blueprint;\nuse Illuminate\\Support\\Facades\\Schema;\n\nreturn new class extends Migration\n{\n /**\n * Run the migrations.\n */\n public function up(): void\n {\n Schema::create('oauth_auth_codes', function (Blueprint $table) {\n $table->string('id', 100)->primary();\n $table->unsignedBigInteger('user_id')->index();\n $table->unsignedBigInteger('client_id');\n $table->text('scopes')->nullable();\n $table->boolean('revoked');\n $table->dateTime('expires_at')->nullable();\n });\n }\n\n /**\n * Reverse the migrations.\n */\n ",
|
||||
"note": "Raw up source includes exact definitions and transformations. Helpers defined after down may need the full source; no SQL schema is inferred."
|
||||
},
|
||||
{
|
||||
"file": "database/migrations/2016_06_01_000002_create_oauth_access_tokens_table.php",
|
||||
"sha256": "acbeb29866718be6bb0ebf0bf85d4d76f9a34d62b682ca248e82c085a001f2b0",
|
||||
"schema_operations": [
|
||||
[
|
||||
"create",
|
||||
"oauth_access_tokens"
|
||||
]
|
||||
],
|
||||
"up_source": "<?php\n\nuse Illuminate\\Database\\Migrations\\Migration;\nuse Illuminate\\Database\\Schema\\Blueprint;\nuse Illuminate\\Support\\Facades\\Schema;\n\nreturn new class extends Migration\n{\n /**\n * Run the migrations.\n */\n public function up(): void\n {\n Schema::create('oauth_access_tokens', function (Blueprint $table) {\n $table->string('id', 100)->primary();\n $table->unsignedBigInteger('user_id')->nullable()->index();\n $table->unsignedBigInteger('client_id');\n $table->string('name')->nullable();\n $table->text('scopes')->nullable();\n $table->boolean('revoked');\n $table->timestamps();\n $table->dateTime('expires_at')->nullable();\n });\n }\n\n /**\n * Reverse the migrations.\n */\n ",
|
||||
"note": "Raw up source includes exact definitions and transformations. Helpers defined after down may need the full source; no SQL schema is inferred."
|
||||
},
|
||||
{
|
||||
"file": "database/migrations/2016_06_01_000003_create_oauth_refresh_tokens_table.php",
|
||||
"sha256": "09a2853433a722f175bb35564576ff1717fc8c54cc6a1e9e7589884098e9a071",
|
||||
"schema_operations": [
|
||||
[
|
||||
"create",
|
||||
"oauth_refresh_tokens"
|
||||
]
|
||||
],
|
||||
"up_source": "<?php\n\nuse Illuminate\\Database\\Migrations\\Migration;\nuse Illuminate\\Database\\Schema\\Blueprint;\nuse Illuminate\\Support\\Facades\\Schema;\n\nreturn new class extends Migration\n{\n /**\n * Run the migrations.\n */\n public function up(): void\n {\n Schema::create('oauth_refresh_tokens', function (Blueprint $table) {\n $table->string('id', 100)->primary();\n $table->string('access_token_id', 100)->index();\n $table->boolean('revoked');\n $table->dateTime('expires_at')->nullable();\n });\n }\n\n /**\n * Reverse the migrations.\n */\n ",
|
||||
"note": "Raw up source includes exact definitions and transformations. Helpers defined after down may need the full source; no SQL schema is inferred."
|
||||
},
|
||||
{
|
||||
"file": "database/migrations/2016_06_01_000004_create_oauth_clients_table.php",
|
||||
"sha256": "728b8744edd184b00ed89dfd1e7eca17091819b05a8cb5b5c89b79fde5459b14",
|
||||
"schema_operations": [
|
||||
[
|
||||
"create",
|
||||
"oauth_clients"
|
||||
]
|
||||
],
|
||||
"up_source": "<?php\n\nuse Illuminate\\Database\\Migrations\\Migration;\nuse Illuminate\\Database\\Schema\\Blueprint;\nuse Illuminate\\Support\\Facades\\Schema;\n\nreturn new class extends Migration\n{\n /**\n * Run the migrations.\n */\n public function up(): void\n {\n Schema::create('oauth_clients', function (Blueprint $table) {\n $table->bigIncrements('id');\n $table->unsignedBigInteger('user_id')->nullable()->index();\n $table->string('name');\n $table->string('secret', 100)->nullable();\n $table->string('provider')->nullable();\n $table->text('redirect');\n $table->boolean('personal_access_client');\n $table->boolean('password_client');\n $table->boolean('revoked');\n $table->timestamps();\n });\n }\n\n /**\n * Reverse the migrations.\n */\n ",
|
||||
"note": "Raw up source includes exact definitions and transformations. Helpers defined after down may need the full source; no SQL schema is inferred."
|
||||
},
|
||||
{
|
||||
"file": "database/migrations/2016_06_01_000005_create_oauth_personal_access_clients_table.php",
|
||||
"sha256": "37b718559569e3278bfa6e2f8c6079b68e21bad0a5b7f233f9ef313e357e3318",
|
||||
"schema_operations": [
|
||||
[
|
||||
"create",
|
||||
"oauth_personal_access_clients"
|
||||
]
|
||||
],
|
||||
"up_source": "<?php\n\nuse Illuminate\\Database\\Migrations\\Migration;\nuse Illuminate\\Database\\Schema\\Blueprint;\nuse Illuminate\\Support\\Facades\\Schema;\n\nreturn new class extends Migration\n{\n /**\n * Run the migrations.\n */\n public function up(): void\n {\n Schema::create('oauth_personal_access_clients', function (Blueprint $table) {\n $table->bigIncrements('id');\n $table->unsignedBigInteger('client_id');\n $table->timestamps();\n });\n }\n\n /**\n * Reverse the migrations.\n */\n ",
|
||||
"note": "Raw up source includes exact definitions and transformations. Helpers defined after down may need the full source; no SQL schema is inferred."
|
||||
},
|
||||
{
|
||||
"file": "database/migrations/2017_03_03_100000_create_options_table.php",
|
||||
"sha256": "1afffe540e1bfe170e1aa6193ffe9b7174445ebfbb81f08315af60bf106918e8",
|
||||
"schema_operations": [
|
||||
[
|
||||
"create",
|
||||
"options"
|
||||
]
|
||||
],
|
||||
"up_source": "<?php\n\nuse Illuminate\\Database\\Migrations\\Migration;\nuse Illuminate\\Database\\Schema\\Blueprint;\nuse Illuminate\\Support\\Facades\\Schema;\n\nclass CreateOptionsTable extends Migration\n{\n /**\n * Run the migrations.\n *\n * @return void\n */\n public function up()\n {\n Schema::create('options', function (Blueprint $table) {\n $table->increments('id');\n $table->string('key')->unique();\n $table->text('value');\n });\n }\n\n /**\n * Reverse the migrations.\n *\n * @return void\n */\n ",
|
||||
"note": "Raw up source includes exact definitions and transformations. Helpers defined after down may need the full source; no SQL schema is inferred."
|
||||
},
|
||||
{
|
||||
"file": "database/migrations/2019_05_16_162730_create_twofaccounts_table.php",
|
||||
"sha256": "9bae015ba5bbf15559929034c3ec24b3fee876f8ca77f2b22391601441c77baa",
|
||||
"schema_operations": [
|
||||
[
|
||||
"create",
|
||||
"twofaccounts"
|
||||
]
|
||||
],
|
||||
"up_source": "<?php\n\nuse Illuminate\\Support\\Facades\\Schema;\nuse Illuminate\\Database\\Schema\\Blueprint;\nuse Illuminate\\Database\\Migrations\\Migration;\n\nclass CreateTwoFAccountsTable extends Migration\n{\n /**\n * Run the migrations.\n *\n * @return void\n */\n public function up()\n {\n Schema::create('twofaccounts', function (Blueprint $table) {\n $table->increments('id');\n $table->string('service');\n $table->string('uri');\n $table->string('account')->nullable();\n $table->string('icon')->nullable();\n $table->timestamps();\n });\n }\n\n /**\n * Reverse the migrations.\n *\n * @return void\n */\n ",
|
||||
"note": "Raw up source includes exact definitions and transformations. Helpers defined after down may need the full source; no SQL schema is inferred."
|
||||
},
|
||||
{
|
||||
"file": "database/migrations/2020_03_25_095517_add_order_column_to_twofaccounts_table.php",
|
||||
"sha256": "edb194adbc45fc94b81f6884b5673cf3445a4ce7a9f6d98e17b4496f93b7529d",
|
||||
"schema_operations": [
|
||||
[
|
||||
"table",
|
||||
"twofaccounts"
|
||||
]
|
||||
],
|
||||
"up_source": "<?php\n\nuse App\\Models\\TwoFAccount;\nuse Illuminate\\Support\\Facades\\Schema;\nuse Illuminate\\Database\\Schema\\Blueprint;\nuse Illuminate\\Database\\Migrations\\Migration;\n\nclass AddOrderColumnToTwofaccountsTable extends Migration\n{\n /**\n * Run the migrations.\n *\n * @return void\n */\n public function up()\n {\n Schema::table('twofaccounts', function (Blueprint $table) {\n $table->integer('order_column')->nullable();\n });\n }\n\n /**\n * Reverse the migrations.\n *\n * @return void\n */\n ",
|
||||
"note": "Raw up source includes exact definitions and transformations. Helpers defined after down may need the full source; no SQL schema is inferred."
|
||||
},
|
||||
{
|
||||
"file": "database/migrations/2020_10_05_210557_add_last_seen_to_users_table.php",
|
||||
"sha256": "9db541b7e488c32e8e8a2029b46e88dcbdf065ea1cbd56515c1bee51be7f5baa",
|
||||
"schema_operations": [
|
||||
[
|
||||
"table",
|
||||
"users"
|
||||
]
|
||||
],
|
||||
"up_source": "<?php\n\nuse Illuminate\\Support\\Facades\\Schema;\nuse Illuminate\\Database\\Schema\\Blueprint;\nuse Illuminate\\Database\\Migrations\\Migration;\n\nclass AddLastSeenToUsersTable extends Migration\n{\n /**\n * Run the migrations.\n *\n * @return void\n */\n public function up()\n {\n Schema::table('users', function (Blueprint $table) {\n $table->timestamp('last_seen_at')->nullable();\n });\n }\n\n /**\n * Reverse the migrations.\n *\n * @return void\n */\n ",
|
||||
"note": "Raw up source includes exact definitions and transformations. Helpers defined after down may need the full source; no SQL schema is inferred."
|
||||
},
|
||||
{
|
||||
"file": "database/migrations/2020_10_11_202302_add_provider_column_to_oauth_clients_table.php",
|
||||
"sha256": "2e5693204137ded1fd9bf4816861dde0098468a21a08303339213d6c5a3ac701",
|
||||
"schema_operations": [
|
||||
[
|
||||
"table",
|
||||
"oauth_clients"
|
||||
]
|
||||
],
|
||||
"up_source": "<?php\n\nuse Illuminate\\Database\\Migrations\\Migration;\nuse Illuminate\\Database\\Schema\\Blueprint;\nuse Illuminate\\Support\\Facades\\Schema;\n\nclass AddProviderColumnToOauthClientsTable extends Migration\n{\n /**\n * Run the migrations.\n *\n * @return void\n */\n public function up()\n {\n Schema::table('oauth_clients', function (Blueprint $table) {\n if (!Schema::hasColumn('oauth_clients', 'provider')) {\n $table->string('provider')->after('secret')->nullable();\n } \n });\n }\n\n /**\n * Reverse the migrations.\n *\n * @return void\n */\n ",
|
||||
"note": "Raw up source includes exact definitions and transformations. Helpers defined after down may need the full source; no SQL schema is inferred."
|
||||
},
|
||||
{
|
||||
"file": "database/migrations/2020_10_20_210129_create_groups_table.php",
|
||||
"sha256": "cba276718ffc803b04798837635d871e0869ed26dc851c3703b8a399de8ac5f2",
|
||||
"schema_operations": [
|
||||
[
|
||||
"create",
|
||||
"groups"
|
||||
]
|
||||
],
|
||||
"up_source": "<?php\n\nuse Illuminate\\Database\\Migrations\\Migration;\nuse Illuminate\\Database\\Schema\\Blueprint;\nuse Illuminate\\Support\\Facades\\Schema;\n\nclass CreateGroupsTable extends Migration\n{\n /**\n * Run the migrations.\n *\n * @return void\n */\n public function up()\n {\n Schema::create('groups', function (Blueprint $table) {\n $table->increments('id');\n $table->string('name');\n $table->timestamps();\n });\n }\n\n /**\n * Reverse the migrations.\n *\n * @return void\n */\n ",
|
||||
"note": "Raw up source includes exact definitions and transformations. Helpers defined after down may need the full source; no SQL schema is inferred."
|
||||
},
|
||||
{
|
||||
"file": "database/migrations/2020_10_20_211115_add_group_id_column_to_twofaccounts_table.php",
|
||||
"sha256": "5c9e50dfc4a879daaaf2014f1f649477095f615601b1b6190ec7ef76e334688b",
|
||||
"schema_operations": [
|
||||
[
|
||||
"table",
|
||||
"twofaccounts"
|
||||
]
|
||||
],
|
||||
"up_source": "<?php\n\nuse Illuminate\\Database\\Migrations\\Migration;\nuse Illuminate\\Database\\Schema\\Blueprint;\nuse Illuminate\\Support\\Facades\\Schema;\n\nclass AddGroupIdColumnToTwofaccountsTable extends Migration\n{\n /**\n * Run the migrations.\n *\n * @return void\n */\n public function up()\n {\n Schema::table('twofaccounts', function (Blueprint $table) {\n $table->unsignedInteger('group_id')\n ->after('id')\n ->nullable();\n\n $table->foreign('group_id')->references('id')->on('groups')->onDelete('set null');\n });\n }\n\n /**\n * Reverse the migrations.\n *\n * @return void\n */\n ",
|
||||
"note": "Raw up source includes exact definitions and transformations. Helpers defined after down may need the full source; no SQL schema is inferred."
|
||||
},
|
||||
{
|
||||
"file": "database/migrations/2020_12_04_073604_alter_encrypted_columns_to_text.php",
|
||||
"sha256": "6d8135b35bce5c1ecce23b202f4ce1d4a46b1e37ec9c4f6c66d697cf4f3db311",
|
||||
"schema_operations": [
|
||||
[
|
||||
"table",
|
||||
"twofaccounts"
|
||||
],
|
||||
[
|
||||
"table",
|
||||
"twofaccounts"
|
||||
]
|
||||
],
|
||||
"up_source": "<?php\n\nuse Illuminate\\Database\\Migrations\\Migration;\nuse Illuminate\\Database\\Schema\\Blueprint;\nuse Illuminate\\Support\\Facades\\Schema;\n\nclass AlterEncryptedColumnsToText extends Migration\n{\n /**\n * Run the migrations.\n *\n * @return void\n */\n public function up()\n {\n $driver = Schema::connection($this->getConnection())->getConnection()->getDriverName();\n\n if ('sqlite' !== $driver) {\n \n Schema::table('twofaccounts', function (Blueprint $table) {\n $table->text('account')->nullable()->change();\n });\n\n Schema::table('twofaccounts', function (Blueprint $table) {\n $table->text('uri')->change();\n });\n }\n }\n\n /**\n * Reverse the migrations.\n *\n * @return void\n */\n ",
|
||||
"note": "Raw up source includes exact definitions and transformations. Helpers defined after down may need the full source; no SQL schema is inferred."
|
||||
},
|
||||
{
|
||||
"file": "database/migrations/2020_12_04_073605_alter_encrypted_columns_to_text_for_sqlite.php",
|
||||
"sha256": "74a70bcced630cd0fdf47c8953d9f6c9a1f095ef13a71e5864b30c05468a0a67",
|
||||
"schema_operations": [
|
||||
[
|
||||
"table",
|
||||
"twofaccounts"
|
||||
]
|
||||
],
|
||||
"up_source": "<?php\n\nuse Illuminate\\Database\\Migrations\\Migration;\nuse Illuminate\\Database\\Schema\\Blueprint;\nuse Illuminate\\Support\\Facades\\Schema;\n\nclass AlterEncryptedColumnsToTextForSqlite extends Migration\n{\n /**\n * Run the migrations.\n *\n * @return void\n */\n public function up()\n {\n $driver = Schema::connection($this->getConnection())->getConnection()->getDriverName();\n\n if ('sqlite' === $driver) {\n \n Schema::table('twofaccounts', function (Blueprint $table) {\n $table->text('account')->nullable()->change();\n });\n }\n }\n\n /**\n * Reverse the migrations.\n *\n * @return void\n */\n ",
|
||||
"note": "Raw up source includes exact definitions and transformations. Helpers defined after down may need the full source; no SQL schema is inferred."
|
||||
},
|
||||
{
|
||||
"file": "database/migrations/2020_12_04_073606_alter_encrypted_columns_to_text_for_sqlite_bis.php",
|
||||
"sha256": "2b0f52bf20b8a2c76f07d42b7ad34c7d61607cc1d134970e2516055abae6eac1",
|
||||
"schema_operations": [
|
||||
[
|
||||
"table",
|
||||
"twofaccounts"
|
||||
]
|
||||
],
|
||||
"up_source": "<?php\n\nuse Illuminate\\Database\\Migrations\\Migration;\nuse Illuminate\\Database\\Schema\\Blueprint;\nuse Illuminate\\Support\\Facades\\Schema;\n\nclass AlterEncryptedColumnsToTextForSqliteBis extends Migration\n{\n /**\n * Run the migrations.\n *\n * @return void\n */\n public function up()\n {\n $driver = Schema::connection($this->getConnection())->getConnection()->getDriverName();\n\n if ('sqlite' === $driver) {\n \n Schema::table('twofaccounts', function (Blueprint $table) {\n $table->text('uri')->change();\n });\n }\n }\n\n /**\n * Reverse the migrations.\n *\n * @return void\n */\n ",
|
||||
"note": "Raw up source includes exact definitions and transformations. Helpers defined after down may need the full source; no SQL schema is inferred."
|
||||
},
|
||||
{
|
||||
"file": "database/migrations/2021_09_08_191139_split_twofaccounts_uri_in_multiple_columns.php",
|
||||
"sha256": "e947fd2f184dbe47fcd6ad63ca27ee3ae86a08fa227150e3d6c7115f0ea13609",
|
||||
"schema_operations": [
|
||||
[
|
||||
"table",
|
||||
"twofaccounts"
|
||||
]
|
||||
],
|
||||
"up_source": "<?php\n\nuse Illuminate\\Database\\Migrations\\Migration;\nuse Illuminate\\Database\\Schema\\Blueprint;\nuse Illuminate\\Support\\Facades\\Schema;\n\nclass SplitTwofaccountsUriInMultipleColumns extends Migration\n{\n /**\n * Run the migrations.\n *\n * @return void\n */\n public function up()\n {\n // as SQLITE disallow to add a not nullable column without default\n // value when altering a table we add all columns as nullable and\n // change them right after to not nullable column\n Schema::table('twofaccounts', function (Blueprint $table) {\n $table->string('otp_type', 10)->nullable();\n $table->text('secret')->nullable();\n $table->string('algorithm', 20)->nullable();\n $table->unsignedSmallInteger('digits')->nullable();\n $table->unsignedInteger('period')->nullable();\n $table->unsignedBigInteger('counter')->nullable();\n });\n }\n\n /**\n * Reverse the migrations.\n *\n * @return void\n */\n ",
|
||||
"note": "Raw up source includes exact definitions and transformations. Helpers defined after down may need the full source; no SQL schema is inferred."
|
||||
},
|
||||
{
|
||||
"file": "database/migrations/2021_09_08_191140_rename_uri_to_legacy_uri.php",
|
||||
"sha256": "3c019abddcec98c3f3acebca764b44a9215e1d8e4b05997be27f52eb1d4f5fad",
|
||||
"schema_operations": [
|
||||
[
|
||||
"table",
|
||||
"twofaccounts"
|
||||
]
|
||||
],
|
||||
"up_source": "<?php\n\nuse Illuminate\\Database\\Migrations\\Migration;\nuse Illuminate\\Database\\Schema\\Blueprint;\nuse Illuminate\\Support\\Facades\\Schema;\n\nclass RenameUriToLegacyUri extends Migration\n{\n /**\n * Run the migrations.\n *\n * @return void\n */\n public function up()\n {\n Schema::table('twofaccounts', function (Blueprint $table) {\n $table->renameColumn('uri', 'legacy_uri');\n });\n }\n\n /**\n * Reverse the migrations.\n *\n * @return void\n */\n ",
|
||||
"note": "Raw up source includes exact definitions and transformations. Helpers defined after down may need the full source; no SQL schema is inferred."
|
||||
},
|
||||
{
|
||||
"file": "database/migrations/2021_09_14_195451_change_nullable_in_twofaccounts_table.php",
|
||||
"sha256": "f82b9dd27fb6853c3735d7a650a527ca542096ba4ace8d256c723e1af213559a",
|
||||
"schema_operations": [
|
||||
[
|
||||
"table",
|
||||
"twofaccounts"
|
||||
]
|
||||
],
|
||||
"up_source": "<?php\n\nuse App\\Services\\SettingService;\nuse Illuminate\\Database\\Migrations\\Migration;\nuse Illuminate\\Database\\Schema\\Blueprint;\nuse Illuminate\\Support\\Facades\\DB;\nuse Illuminate\\Support\\Facades\\Schema;\nuse Illuminate\\Support\\Facades\\Crypt;\nuse Illuminate\\Support\\Facades\\Log;\n\nclass ChangeNullableInTwofaccountsTable extends Migration\n{\n /**\n * Run the migrations.\n *\n * @return void\n */\n public function up()\n {\n $settingService = new SettingService;\n $twofaccounts = DB::table('twofaccounts')->select('id', 'legacy_uri')->get();\n\n foreach ($twofaccounts as $twofaccount) {\n try {\n $legacy_uri = $settingService->get('useEncryption') ? Crypt::decryptString($twofaccount->legacy_uri) : $twofaccount->legacy_uri;\n $token = \\OTPHP\\Factory::loadFromProvisioningUri($legacy_uri);\n\n $affected = DB::table('twofaccounts')\n ->where('id', $twofaccount->id)\n ->update([\n 'otp_type' => get_class($token) === 'OTPHP\\TOTP' ? 'totp' : 'hotp',\n 'secret' => $settingService->get('useEncryption') ? Crypt::encryptString($token->getSecret()) : $token->getSecret(),\n 'algorithm' => $token->getDigest(),\n 'digits' => $token->getDigits(),\n 'period' => $token->hasParameter('period') ? $token->getParameter('period') : null,\n 'counter' => $token->hasParameter('counter') ? $token->getParameter('counter') : null\n ]);\n }\n catch(Exception $ex)\n {\n Log::error($ex->getMessage());\n Log::error(\"TwoFAccount with id #\" . $twofaccount->id . \" could not be splited\");\n }\n }\n\n $twofaccounts = DB::table('twofaccounts')\n ->whereNull('account')\n ->orWhereNull('otp_type')\n ->orWhereNull('secret')\n ->orWhereNull('algorithm')\n ->orWhereNull('digits')\n ->get();\n\n foreach ($twofaccounts as $twofaccount) {\n\n $affected = DB::table('twofaccounts')\n ->where('id', $twofaccount->id)\n ->update([\n 'account' => $twofaccount->account === null ? 'account (invalid)' : $twofaccount->account + ' (invalid)',\n 'otp_type' => $twofaccount->otp_type === null ? 'totp' : $twofaccount->otp_type,\n 'secret' => $twofaccount->secret === null ? 'secret' : $twofaccount->secret,\n 'algorithm' => $twofaccount->algorithm === null ? 'sha1' : $twofaccount->algorithm,\n 'digits' => $twofaccount->digits === null ? 6 : $twofaccount->digits,\n ]);\n }\n\n Schema::table('twofaccounts', function (Blueprint $table) {\n $table->text('account')->nullable(false)->change();\n $table->string('service')->nullable()->change();\n $table->string('otp_type', 10)->nullable(false)->change();\n $table->text('secret')->nullable(false)->change();\n $table->string('algorithm', 20)->nullable(false)->change();\n $table->unsignedSmallInteger('digits')->nullable(false)->change();\n });\n }\n\n /**\n * Reverse the migrations.\n *\n * @return void\n */\n ",
|
||||
"note": "Raw up source includes exact definitions and transformations. Helpers defined after down may need the full source; no SQL schema is inferred."
|
||||
},
|
||||
{
|
||||
"file": "database/migrations/2021_12_03_220140_create_web_authn_tables.php",
|
||||
"sha256": "8f0263cc66f1104be3687cfe76e1d15e9d353e8fa13c0993d4b9bb3aa2c40d4f",
|
||||
"schema_operations": [
|
||||
[
|
||||
"create",
|
||||
"web_authn_credentials"
|
||||
],
|
||||
[
|
||||
"create",
|
||||
"web_authn_recoveries"
|
||||
]
|
||||
],
|
||||
"up_source": "<?php\n\nuse Illuminate\\Database\\Migrations\\Migration;\nuse Illuminate\\Database\\Schema\\Blueprint;\nuse Illuminate\\Support\\Facades\\Schema;\n\nclass CreateWebAuthnTables extends Migration\n{\n /**\n * Run the migrations.\n *\n * @return void\n */\n public function up()\n {\n Schema::create('web_authn_credentials', function (Blueprint $table) {\n\n // Limited to 191 to prevent index length issue with MyISAM and utf8mb4_unicode_ci\n // when using WAMP (WAMP uses MyISAM as default engine in place of INNOdb)\n $table->string('id', 191);\n\n // Change accordingly for your users table if you need to.\n $table->unsignedBigInteger('user_id');\n\n $table->string('name')->nullable();\n $table->string('type', 16);\n $table->json('transports');\n $table->string('attestation_type');\n $table->json('trust_path');\n $table->uuid('aaguid');\n $table->binary('public_key');\n $table->unsignedInteger('counter')->default(0);\n\n // This saves the external \"ID\" that identifies the user. We use UUID default\n // since it's very straightforward. You can change this for a plain string.\n // It must be nullable because those old U2F keys do not use user handle.\n $table->uuid('user_handle')->nullable();\n\n $table->timestamps();\n $table->softDeletes('disabled_at');\n\n $table->primary(['id', 'user_id']);\n });\n\n Schema::create('web_authn_recoveries', function (Blueprint $table) {\n $table->string('email')->index();\n $table->string('token');\n $table->timestamp('created_at')->nullable();\n });\n }\n\n /**\n * Reverse the migrations.\n *\n * @return void\n */\n ",
|
||||
"note": "Raw up source includes exact definitions and transformations. Helpers defined after down may need the full source; no SQL schema is inferred."
|
||||
},
|
||||
{
|
||||
"file": "database/migrations/2022_10_20_122032_create_webauthn_credentials.php",
|
||||
"sha256": "efbc545fef44d08e60864c13747813e6ec3c7e187526905aec46cbd1dc0a00f6",
|
||||
"schema_operations": [
|
||||
[
|
||||
"create",
|
||||
"webauthn_credentials"
|
||||
],
|
||||
[
|
||||
"dropIfExists",
|
||||
"web_authn_credentials"
|
||||
],
|
||||
[
|
||||
"rename",
|
||||
"web_authn_recoveries"
|
||||
]
|
||||
],
|
||||
"up_source": "<?php\n\nuse Illuminate\\Database\\Migrations\\Migration;\nuse Illuminate\\Database\\Schema\\Blueprint;\nuse Illuminate\\Support\\Facades\\Schema;\nuse Illuminate\\Support\\Facades\\DB;\n\n/**\n * @see \\Laragear\\WebAuthn\\Models\\WebAuthnCredential\n */\nreturn new class extends Migration {\n\n /**\n * Run the migrations.\n *\n * @return void\n */\n public function up(): void\n {\n // We reset the user option 'useWebauthnOnly' to prevent lockout \n DB::table('options')->where('key', 'useWebauthnOnly')->delete();\n\n Schema::create('webauthn_credentials', static function (Blueprint $table): void {\n static::defaultBlueprint($table);\n });\n\n Schema::dropIfExists('web_authn_credentials');\n Schema::rename('web_authn_recoveries', 'webauthn_recoveries');\n }\n\n /**\n * Reverse the migrations.\n *\n * @return void\n */\n ",
|
||||
"note": "Raw up source includes exact definitions and transformations. Helpers defined after down may need the full source; no SQL schema is inferred."
|
||||
},
|
||||
{
|
||||
"file": "database/migrations/2023_02_10_145413_add_is_admin_and_preferences_to_users_table.php",
|
||||
"sha256": "ac99520222b19b6fb6eb1fee3b9e4fb27f70a1131adf63fe5abe49f6253eb442",
|
||||
"schema_operations": [
|
||||
[
|
||||
"table",
|
||||
"users"
|
||||
]
|
||||
],
|
||||
"up_source": "<?php\n\nuse Illuminate\\Database\\Migrations\\Migration;\nuse Illuminate\\Database\\Schema\\Blueprint;\nuse Illuminate\\Support\\Facades\\Schema;\nuse Illuminate\\Support\\Facades\\DB;\nuse Illuminate\\Support\\Arr;\n\nreturn new class extends Migration\n{\n /**\n * Run the migrations.\n *\n * @return void\n */\n public function up()\n {\n Schema::table('users', function (Blueprint $table) {\n $table->boolean('is_admin')\n ->after('password')\n ->default(0);\n $table->json('preferences')->nullable();\n });\n\n DB::table('users')->update(['is_admin' => 1]);\n\n // The 'useWebauthnAsDefault' option is replaced by a local storage record\n // so we delete it form the Options table to prevent its conversion to\n // a user preference\n DB::table('options')->where('key', 'useWebauthnAsDefault')->delete();\n\n // User options are converted as user preferences\n $options = DB::table('options')->get();\n $preferences = config('2fauth.preferences');\n\n foreach ($options as $option) {\n if (Arr::has($preferences, $option->key)) {\n DB::table('users')->update(['preferences->'.$option->key => static::restoreType($option->value)]);\n DB::table('options')->where('id', $option->id)->delete();\n }\n }\n }\n\n /**\n * Reverse the migrations.\n *\n * @return void\n */\n ",
|
||||
"note": "Raw up source includes exact definitions and transformations. Helpers defined after down may need the full source; no SQL schema is inferred."
|
||||
},
|
||||
{
|
||||
"file": "database/migrations/2023_02_21_143845_bind_twofaccounts_and_groups_to_users.php",
|
||||
"sha256": "a8aa4e17c978ded37228bc143bb043258cb122df240529e69d165e61f0c8f75b",
|
||||
"schema_operations": [
|
||||
[
|
||||
"table",
|
||||
"twofaccounts"
|
||||
],
|
||||
[
|
||||
"table",
|
||||
"groups"
|
||||
]
|
||||
],
|
||||
"up_source": "<?php\n\nuse Illuminate\\Database\\Migrations\\Migration;\nuse Illuminate\\Database\\Schema\\Blueprint;\nuse Illuminate\\Support\\Facades\\Schema;\nuse Illuminate\\Support\\Facades\\DB;\n\nreturn new class extends Migration\n{\n /**\n * Run the migrations.\n *\n * @return void\n */\n public function up()\n {\n Schema::table('twofaccounts', function (Blueprint $table) {\n $table->unsignedBigInteger('user_id')\n ->after('id')\n ->nullable();\n\n $table->foreign('user_id')->references('id')->on('users')->cascadeOnDelete();\n });\n\n Schema::table('groups', function (Blueprint $table) {\n $table->unsignedBigInteger('user_id')\n ->after('id')\n ->nullable();\n\n $table->foreign('user_id')->references('id')->on('users')->cascadeOnDelete();\n });\n\n if ($legacySingleUser = DB::table('users')->first()) {\n DB::table('twofaccounts')->update(['user_id' => $legacySingleUser->id]);\n DB::table('groups')->update(['user_id' => $legacySingleUser->id]);\n }\n }\n\n /**\n * Reverse the migrations.\n *\n * @return void\n */\n ",
|
||||
"note": "Raw up source includes exact definitions and transformations. Helpers defined after down may need the full source; no SQL schema is inferred."
|
||||
},
|
||||
{
|
||||
"file": "database/migrations/2023_03_13_114928_set_username_unique.php",
|
||||
"sha256": "1fe7623bb6503d7d783a6fac526513f184dfd934951710c2fc370de5d5879bc2",
|
||||
"schema_operations": [
|
||||
[
|
||||
"table",
|
||||
"users"
|
||||
]
|
||||
],
|
||||
"up_source": "<?php\n\nuse Illuminate\\Database\\Migrations\\Migration;\nuse Illuminate\\Database\\Schema\\Blueprint;\nuse Illuminate\\Support\\Facades\\Schema;\n\nreturn new class extends Migration\n{\n /**\n * Run the migrations.\n *\n * @return void\n */\n public function up()\n {\n Schema::table('users', function (Blueprint $table) {\n $table->unique('name');\n });\n }\n\n /**\n * Reverse the migrations.\n *\n * @return void\n */\n ",
|
||||
"note": "Raw up source includes exact definitions and transformations. Helpers defined after down may need the full source; no SQL schema is inferred."
|
||||
},
|
||||
{
|
||||
"file": "database/migrations/2023_12_06_131842_add_oauth_columns_to_user.php",
|
||||
"sha256": "d7f7996ffee6f499903607b3acbaf131913dcaecacb72ea61bf1f1bb95597f7a",
|
||||
"schema_operations": [
|
||||
[
|
||||
"table",
|
||||
"users"
|
||||
]
|
||||
],
|
||||
"up_source": "<?php\n\nuse Illuminate\\Database\\Migrations\\Migration;\nuse Illuminate\\Database\\Schema\\Blueprint;\nuse Illuminate\\Support\\Facades\\Schema;\n\nreturn new class extends Migration\n{\n /**\n * Run the migrations.\n */\n public function up(): void\n {\n Schema::table('users', function (Blueprint $table) {\n $table->string('oauth_provider', 100)\n ->after('id')\n ->nullable();\n $table->string('oauth_id', 200)\n ->after('id')\n ->nullable();\n });\n }\n\n /**\n * Reverse the migrations.\n */\n ",
|
||||
"note": "Raw up source includes exact definitions and transformations. Helpers defined after down may need the full source; no SQL schema is inferred."
|
||||
},
|
||||
{
|
||||
"file": "database/migrations/2024_04_14_082519_create_auth_logs_table.php",
|
||||
"sha256": "bbc10e41c09a374c53a9206c5467b58cd6c8bdf4de57982cadb3f24d2315b06c",
|
||||
"schema_operations": [
|
||||
[
|
||||
"create",
|
||||
"auth_logs"
|
||||
]
|
||||
],
|
||||
"up_source": "<?php\n\n/**\n * The MIT License (MIT)\n * Copyright (c) 2024 Bubka\n * Copyright (c) 2024 Anthony Rappa\n * Copyright (c) 2017 Yaakov Dahan\n *\n * Permission is hereby granted, free of charge, to any person obtaining a copy of this software and\n * associated documentation files (the \"Software\"), to deal in the Software without restriction,\n * including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense,\n * and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so,\n * subject to the following conditions:\n *\n * The above copyright notice and this permission notice shall be included in all copies or substantial\n * portions of the Software.\n *\n * THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT\n * LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.\n * IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,\n * WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE\n * SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.\n */\n\nuse Illuminate\\Database\\Migrations\\Migration;\nuse Illuminate\\Database\\Schema\\Blueprint;\nuse Illuminate\\Support\\Facades\\DB;\nuse Illuminate\\Support\\Facades\\Schema;\n\nreturn new class extends Migration\n{\n public function up(): void\n {\n Schema::create('auth_logs', function (Blueprint $table) {\n $table->id();\n $table->morphs('authenticatable');\n $table->string('ip_address', 45)->nullable();\n $table->text('user_agent')->nullable();\n $table->timestamp('login_at')->nullable()->index();\n $table->boolean('login_successful')->default(false)->index();\n $table->timestamp('logout_at')->nullable()->index();\n $table->boolean('cleared_by_user')->default(false);\n $table->string('guard', 40)->nullable();\n $table->string('login_method', 40)->nullable();\n\n $table->foreign('authenticatable_id')->references('id')->on('users')->cascadeOnDelete();\n });\n }\n\n ",
|
||||
"note": "Raw up source includes exact definitions and transformations. Helpers defined after down may need the full source; no SQL schema is inferred."
|
||||
},
|
||||
{
|
||||
"file": "database/migrations/2024_06_01_000001_create_oauth_device_codes_table.php",
|
||||
"sha256": "f58e7e0409628118d1808631d8270692e54fdb2f227020365bb30a18b0564336",
|
||||
"schema_operations": [
|
||||
[
|
||||
"create",
|
||||
"oauth_device_codes"
|
||||
]
|
||||
],
|
||||
"up_source": "<?php\n\nuse Illuminate\\Database\\Migrations\\Migration;\nuse Illuminate\\Database\\Schema\\Blueprint;\nuse Illuminate\\Support\\Facades\\Schema;\n\nreturn new class extends Migration\n{\n /**\n * Run the migrations.\n */\n public function up(): void\n {\n Schema::create('oauth_device_codes', function (Blueprint $table) {\n $table->char('id', 80)->primary();\n $table->foreignId('user_id')->nullable()->index();\n $table->foreignUuid('client_id')->index();\n $table->char('user_code', 8)->unique();\n $table->text('scopes');\n $table->boolean('revoked');\n $table->dateTime('user_approved_at')->nullable();\n $table->dateTime('last_polled_at')->nullable();\n $table->dateTime('expires_at')->nullable();\n });\n }\n\n /**\n * Reverse the migrations.\n */\n ",
|
||||
"note": "Raw up source includes exact definitions and transformations. Helpers defined after down may need the full source; no SQL schema is inferred."
|
||||
},
|
||||
{
|
||||
"file": "database/migrations/2024_08_08_133135_alter_twofaccount_service_field_to_text.php",
|
||||
"sha256": "b33cf9bb4347706c63f0d1df1eae27a6200349e268b007554108fc00850911b9",
|
||||
"schema_operations": [
|
||||
[
|
||||
"table",
|
||||
"twofaccounts"
|
||||
]
|
||||
],
|
||||
"up_source": "<?php\n\nuse Illuminate\\Database\\Migrations\\Migration;\nuse Illuminate\\Database\\Schema\\Blueprint;\nuse Illuminate\\Support\\Facades\\Schema;\n\nreturn new class extends Migration\n{\n /**\n * Run the migrations.\n */\n public function up(): void\n {\n Schema::table('twofaccounts', function (Blueprint $table) {\n $table->text('service')->nullable()->change();\n });\n }\n\n /**\n * Reverse the migrations.\n */\n ",
|
||||
"note": "Raw up source includes exact definitions and transformations. Helpers defined after down may need the full source; no SQL schema is inferred."
|
||||
},
|
||||
{
|
||||
"file": "database/migrations/2024_08_08_133136_encrypt_twofaccount_service_field.php",
|
||||
"sha256": "396a7313b4713d7f6b00c411117746a86a6c1b8c02bdb2520c9b29fc818bf935",
|
||||
"schema_operations": [],
|
||||
"up_source": "<?php\n\nuse App\\Models\\TwoFAccount;\nuse App\\Services\\SettingService;\nuse Illuminate\\Database\\Migrations\\Migration;\nuse Illuminate\\Support\\Facades\\DB;\nuse Illuminate\\Support\\Facades\\Log;\nuse Illuminate\\Support\\Facades\\Schema;\n\nreturn new class extends Migration\n{\n /**\n * Run the migrations.\n */\n public function up(): void\n {\n if ($this->dbIsEncrypted() && Schema::getColumnType('twofaccounts', 'service') === 'text') {\n $this->encryptServiceField();\n }\n }\n\n /**\n * Reverse the migrations.\n */\n ",
|
||||
"note": "Raw up source includes exact definitions and transformations. Helpers defined after down may need the full source; no SQL schema is inferred."
|
||||
},
|
||||
{
|
||||
"file": "database/migrations/2024_09_12_151037_create_session_table.php",
|
||||
"sha256": "293923a1544ca6a69c25c60c65c1e1fd75f14968820dea122977c0a2d33183ce",
|
||||
"schema_operations": [
|
||||
[
|
||||
"create",
|
||||
"sessions"
|
||||
]
|
||||
],
|
||||
"up_source": "<?php\n\nuse Illuminate\\Database\\Migrations\\Migration;\nuse Illuminate\\Database\\Schema\\Blueprint;\nuse Illuminate\\Support\\Facades\\Schema;\n\nreturn new class extends Migration\n{\n /**\n * Run the migrations.\n */\n public function up(): void\n {\n Schema::create('sessions', function (Blueprint $table) {\n $table->string('id')->primary();\n $table->foreignId('user_id')->nullable()->index();\n $table->string('ip_address', 45)->nullable();\n $table->text('user_agent')->nullable();\n $table->longText('payload');\n $table->integer('last_activity')->index();\n });\n }\n\n /**\n * Reverse the migrations.\n */\n ",
|
||||
"note": "Raw up source includes exact definitions and transformations. Helpers defined after down may need the full source; no SQL schema is inferred."
|
||||
},
|
||||
{
|
||||
"file": "database/migrations/2024_09_12_151132_create_cache_table.php",
|
||||
"sha256": "fbb4665e5a977e71df4e74ec75b3c06ca4f17ad0de7138fe9786639189978e77",
|
||||
"schema_operations": [
|
||||
[
|
||||
"create",
|
||||
"cache"
|
||||
],
|
||||
[
|
||||
"create",
|
||||
"cache_locks"
|
||||
]
|
||||
],
|
||||
"up_source": "<?php\n\nuse Illuminate\\Database\\Migrations\\Migration;\nuse Illuminate\\Database\\Schema\\Blueprint;\nuse Illuminate\\Support\\Facades\\Schema;\n\nreturn new class extends Migration\n{\n /**\n * Run the migrations.\n */\n public function up(): void\n {\n Schema::create('cache', function (Blueprint $table) {\n $table->string('key')->primary();\n $table->mediumText('value');\n $table->bigInteger('expiration')->index();\n });\n\n Schema::create('cache_locks', function (Blueprint $table) {\n $table->string('key')->primary();\n $table->string('owner');\n $table->bigInteger('expiration')->index();\n });\n }\n\n /**\n * Reverse the migrations.\n */\n ",
|
||||
"note": "Raw up source includes exact definitions and transformations. Helpers defined after down may need the full source; no SQL schema is inferred."
|
||||
},
|
||||
{
|
||||
"file": "database/migrations/2024_09_30_110610_create_icons_table.php",
|
||||
"sha256": "83f1c5df8f1314f616d09fcf499dcbb9495ecfa95ceae092da877991ea5fc9f0",
|
||||
"schema_operations": [
|
||||
[
|
||||
"create",
|
||||
"icons"
|
||||
]
|
||||
],
|
||||
"up_source": "<?php\n\nuse Illuminate\\Database\\Migrations\\Migration;\nuse Illuminate\\Database\\Schema\\Blueprint;\nuse Illuminate\\Support\\Facades\\Schema;\n\nreturn new class extends Migration\n{\n /**\n * Run the migrations.\n */\n public function up(): void\n {\n Schema::create('icons', function (Blueprint $table) {\n $table->string('name')->primary();\n $table->longText('content');\n $table->timestamps();\n });\n }\n\n /**\n * Reverse the migrations.\n */\n ",
|
||||
"note": "Raw up source includes exact definitions and transformations. Helpers defined after down may need the full source; no SQL schema is inferred."
|
||||
},
|
||||
{
|
||||
"file": "database/migrations/2025_10_29_141837_add_order_column_to_groups_table.php",
|
||||
"sha256": "88d015dcfde38a46bfab14fa9dfea2551893e9b08289b5ed39856c48e54e9952",
|
||||
"schema_operations": [
|
||||
[
|
||||
"table",
|
||||
"groups"
|
||||
]
|
||||
],
|
||||
"up_source": "<?php\n\nuse App\\Models\\Group;\nuse Illuminate\\Database\\Migrations\\Migration;\nuse Illuminate\\Database\\Schema\\Blueprint;\nuse Illuminate\\Support\\Facades\\Schema;\n\nreturn new class extends Migration\n{\n /**\n * Run the migrations.\n */\n public function up(): void\n {\n Schema::table('groups', function (Blueprint $table) {\n $table->integer('order_column')->nullable();\n });\n\n // The primary index is used to set a default value for the newly\n // created order_column\n foreach (Group::get() as $group) {\n $group->order_column = $group->id;\n $group->save();\n }\n }\n\n /**\n * Reverse the migrations.\n */\n ",
|
||||
"note": "Raw up source includes exact definitions and transformations. Helpers defined after down may need the full source; no SQL schema is inferred."
|
||||
},
|
||||
{
|
||||
"file": "database/migrations/2026_03_15_000000_create_twofaccount_shares_table.php",
|
||||
"sha256": "4771490844dc6b0c59a6cfe031de11dfdc0c55578d0f1f3495f849c05bc7d94e",
|
||||
"schema_operations": [
|
||||
[
|
||||
"create",
|
||||
"twofaccount_shares"
|
||||
]
|
||||
],
|
||||
"up_source": "<?php\n\nuse Illuminate\\Database\\Migrations\\Migration;\nuse Illuminate\\Database\\Schema\\Blueprint;\nuse Illuminate\\Support\\Facades\\Schema;\n\nreturn new class extends Migration\n{\n /**\n * Run the migrations.\n */\n public function up(): void\n {\n Schema::create('twofaccount_shares', function (Blueprint $table) {\n $table->id();\n $table->unsignedInteger('twofaccount_id');\n $table->foreign('twofaccount_id')->references('id')->on('twofaccounts')->cascadeOnDelete();\n $table->foreignId('shared_with_user_id')->nullable()->constrained('users')->cascadeOnDelete();\n $table->string('scope', 24);\n $table->foreignId('created_by_user_id')->constrained('users')->cascadeOnDelete();\n $table->timestamps();\n\n $table->index(['twofaccount_id', 'scope']);\n $table->index('shared_with_user_id');\n $table->unique(['twofaccount_id', 'scope', 'shared_with_user_id'], 'twofaccount_shares_unique_target');\n });\n }\n\n /**\n * Reverse the migrations.\n */\n ",
|
||||
"note": "Raw up source includes exact definitions and transformations. Helpers defined after down may need the full source; no SQL schema is inferred."
|
||||
},
|
||||
{
|
||||
"file": "database/migrations/2026_04_14_000000_create_twofaccount_group_assignments_table.php",
|
||||
"sha256": "8deb3b22c6eb4f55b9f8e58d483da2922faff2f03ad890b3b10a8710273976d2",
|
||||
"schema_operations": [
|
||||
[
|
||||
"create",
|
||||
"twofaccount_group_assignments"
|
||||
]
|
||||
],
|
||||
"up_source": "<?php\n\nuse Illuminate\\Database\\Migrations\\Migration;\nuse Illuminate\\Database\\Schema\\Blueprint;\nuse Illuminate\\Support\\Facades\\DB;\nuse Illuminate\\Support\\Facades\\Schema;\n\nreturn new class extends Migration\n{\n /**\n * Run the migrations.\n */\n public function up(): void\n {\n Schema::create('twofaccount_group_assignments', function (Blueprint $table) {\n $table->id();\n $table->unsignedInteger('twofaccount_id');\n $table->unsignedBigInteger('user_id');\n $table->unsignedInteger('group_id');\n $table->timestamps();\n\n $table->foreign('twofaccount_id')->references('id')->on('twofaccounts')->cascadeOnDelete();\n $table->foreign('user_id')->references('id')->on('users')->cascadeOnDelete();\n $table->foreign('group_id')->references('id')->on('groups')->cascadeOnDelete();\n\n $table->unique(['twofaccount_id', 'user_id'], 'twofaccount_group_assignments_unique_scope');\n $table->index('group_id');\n $table->index('user_id');\n });\n\n $this->backfillLegacyAssignments();\n }\n\n /**\n * Reverse the migrations.\n */\n ",
|
||||
"note": "Raw up source includes exact definitions and transformations. Helpers defined after down may need the full source; no SQL schema is inferred."
|
||||
},
|
||||
{
|
||||
"file": "database/migrations/2026_04_14_010000_drop_group_id_from_twofaccounts_table.php",
|
||||
"sha256": "75ca1423667f8b6cb825cd21841fccd296b9876b7edfabc2f4c8a88ad99dfaba",
|
||||
"schema_operations": [
|
||||
[
|
||||
"table",
|
||||
"twofaccounts"
|
||||
],
|
||||
[
|
||||
"table",
|
||||
"twofaccounts"
|
||||
]
|
||||
],
|
||||
"up_source": "<?php\n\nuse Illuminate\\Database\\Migrations\\Migration;\nuse Illuminate\\Database\\Schema\\Blueprint;\nuse Illuminate\\Support\\Facades\\DB;\nuse Illuminate\\Support\\Facades\\Schema;\n\nreturn new class extends Migration\n{\n /**\n * Run the migrations.\n */\n public function up(): void\n {\n if (DB::getDriverName() === 'sqlite') {\n return;\n }\n\n if (! Schema::hasColumn('twofaccounts', 'group_id')) {\n return;\n }\n\n Schema::table('twofaccounts', function (Blueprint $table) {\n if (DB::getDriverName() !== 'sqlite') {\n $table->dropForeign(['group_id']);\n }\n });\n\n Schema::table('twofaccounts', function (Blueprint $table) {\n $table->dropColumn('group_id');\n });\n }\n\n /**\n * Reverse the migrations.\n */\n ",
|
||||
"note": "Raw up source includes exact definitions and transformations. Helpers defined after down may need the full source; no SQL schema is inferred."
|
||||
},
|
||||
{
|
||||
"file": "database/migrations/2026_04_15_000000_create_twofaccount_user_orders_table.php",
|
||||
"sha256": "c8acb8a9ab653f3887c00f9912ad4d137e467ba81957b925759382401ed5f7ef",
|
||||
"schema_operations": [
|
||||
[
|
||||
"create",
|
||||
"twofaccount_user_orders"
|
||||
]
|
||||
],
|
||||
"up_source": "<?php\n\nuse Illuminate\\Database\\Migrations\\Migration;\nuse Illuminate\\Database\\Schema\\Blueprint;\nuse Illuminate\\Support\\Facades\\DB;\nuse Illuminate\\Support\\Facades\\Schema;\n\nreturn new class extends Migration\n{\n /**\n * Run the migrations.\n */\n public function up(): void\n {\n Schema::create('twofaccount_user_orders', function (Blueprint $table) {\n $table->id();\n $table->unsignedBigInteger('user_id');\n $table->unsignedInteger('twofaccount_id');\n $table->unsignedInteger('position');\n $table->timestamps();\n\n $table->foreign('user_id')->references('id')->on('users')->cascadeOnDelete();\n $table->foreign('twofaccount_id')->references('id')->on('twofaccounts')->cascadeOnDelete();\n\n $table->unique(['user_id', 'twofaccount_id'], 'twofaccount_user_orders_unique_scope');\n $table->index(['user_id', 'position']);\n $table->index('twofaccount_id');\n });\n\n $this->backfillLegacyOrderColumnValues();\n }\n\n /**\n * Reverse the migrations.\n */\n ",
|
||||
"note": "Raw up source includes exact definitions and transformations. Helpers defined after down may need the full source; no SQL schema is inferred."
|
||||
},
|
||||
{
|
||||
"file": "database/migrations/2026_04_15_010000_drop_order_column_from_twofaccounts_table.php",
|
||||
"sha256": "ceebf07f020664a66531ab8d967b40b5c9e58383e9dbee2d156fe55f683ac5e9",
|
||||
"schema_operations": [
|
||||
[
|
||||
"table",
|
||||
"twofaccounts"
|
||||
]
|
||||
],
|
||||
"up_source": "<?php\n\nuse Illuminate\\Database\\Migrations\\Migration;\nuse Illuminate\\Database\\Schema\\Blueprint;\nuse Illuminate\\Support\\Facades\\DB;\nuse Illuminate\\Support\\Facades\\Schema;\n\nreturn new class extends Migration\n{\n /**\n * Run the migrations.\n */\n public function up(): void\n {\n if (DB::getDriverName() === 'sqlite') {\n return;\n }\n\n if (! Schema::hasColumn('twofaccounts', 'order_column')) {\n return;\n }\n\n Schema::table('twofaccounts', function (Blueprint $table) {\n $table->dropColumn('order_column');\n });\n }\n\n /**\n * Reverse the migrations.\n */\n ",
|
||||
"note": "Raw up source includes exact definitions and transformations. Helpers defined after down may need the full source; no SQL schema is inferred."
|
||||
},
|
||||
{
|
||||
"file": "database/migrations/2026_05_16_074427_create_otp_logs_table.php",
|
||||
"sha256": "19c230dc2ac7b97af06444430820c1afb552f059c08200e82c9c0349612423a3",
|
||||
"schema_operations": [
|
||||
[
|
||||
"create",
|
||||
"otp_logs"
|
||||
]
|
||||
],
|
||||
"up_source": "<?php\n\nuse Illuminate\\Database\\Migrations\\Migration;\nuse Illuminate\\Database\\Schema\\Blueprint;\nuse Illuminate\\Support\\Facades\\DB;\nuse Illuminate\\Support\\Facades\\Schema;\n\nreturn new class extends Migration\n{\n /**\n * Run the migrations.\n */\n public function up(): void\n {\n Schema::create('otp_logs', function (Blueprint $table) {\n $table->id();\n $table->unsignedBigInteger('requester_id')->nullable();\n $table->string('requester_name');\n $table->string('requester_email');\n $table->unsignedBigInteger('owner_id')->nullable();\n $table->string('owner_name');\n $table->string('owner_email');\n $table->unsignedInteger('twofaccount_id');\n $table->string('ip_address', 45);\n $table->string('otp_type', 10);\n $table->unsignedMediumInteger('counter')->nullable();\n $table->timestamp('generated_at');\n\n $table->foreign('requester_id')->references('id')->on('users')->nullOnDelete();\n $table->foreign('owner_id')->references('id')->on('users')->nullOnDelete();\n $table->foreign('twofaccount_id')->references('id')->on('twofaccounts')->cascadeOnDelete();\n\n $table->index('requester_id');\n $table->index('twofaccount_id');\n $table->index('ip_address');\n $table->index('otp_type');\n });\n }\n\n /**\n * Reverse the migrations.\n */\n ",
|
||||
"note": "Raw up source includes exact definitions and transformations. Helpers defined after down may need the full source; no SQL schema is inferred."
|
||||
},
|
||||
{
|
||||
"file": "database/migrations/2026_06_10_153224_add_show_in_chips_column_to_group.php",
|
||||
"sha256": "fd4e2f61e2ddf4644a5d3ed0e3c76382745631a5e3d426d49d45733e94ae8c47",
|
||||
"schema_operations": [
|
||||
[
|
||||
"table",
|
||||
"groups"
|
||||
]
|
||||
],
|
||||
"up_source": "<?php\n\nuse Illuminate\\Database\\Migrations\\Migration;\nuse Illuminate\\Database\\Schema\\Blueprint;\nuse Illuminate\\Support\\Facades\\Schema;\n\nreturn new class extends Migration\n{\n /**\n * Run the migrations.\n */\n public function up(): void\n {\n Schema::table('groups', function (Blueprint $table) {\n $table->boolean('show_in_chips')\n ->after('name')\n ->default(false);\n });\n }\n\n /**\n * Reverse the migrations.\n */\n ",
|
||||
"note": "Raw up source includes exact definitions and transformations. Helpers defined after down may need the full source; no SQL schema is inferred."
|
||||
},
|
||||
{
|
||||
"file": "database/migrations/2026_08_29_175933_update_oauth_clients_table_for_passport_13.php",
|
||||
"sha256": "af7bc5f94d94be7ab8a1bd8d2622c8448f6a3e8f16edd40eb30a53b9a6028391",
|
||||
"schema_operations": [
|
||||
[
|
||||
"table",
|
||||
"oauth_clients"
|
||||
],
|
||||
[
|
||||
"table",
|
||||
"oauth_clients"
|
||||
],
|
||||
[
|
||||
"dropIfExists",
|
||||
"oauth_personal_access_clients"
|
||||
]
|
||||
],
|
||||
"up_source": "<?php\n\nuse Illuminate\\Database\\Eloquent\\Model;\nuse Illuminate\\Database\\Migrations\\Migration;\nuse Illuminate\\Database\\Schema\\Blueprint;\nuse Illuminate\\Support\\Facades\\Schema;\nuse Laravel\\Passport\\Passport;\n\nreturn new class extends Migration\n{\n /**\n * Run the migrations.\n */\n public function up(): void\n {\n Schema::table('oauth_clients', function (Blueprint $table) {\n $table->nullableMorphs('owner', after: 'user_id');\n\n $table->after('provider', function (Blueprint $table) {\n $table->text('redirect_uris')->nullable();\n $table->text('grant_types')->nullable();\n });\n });\n\n foreach (Passport::client()->cursor() as $client) {\n Model::withoutTimestamps(fn () => $client->forceFill([\n 'owner_id' => $client->user_id,\n 'owner_type' => $client->user_id\n ? config('auth.providers.'.($client->provider ?: config('auth.guards.api-guard.provider')).'.model')\n : null,\n 'redirect_uris' => $client->redirect_uris,\n 'grant_types' => ['personal_access', 'refresh_token'],\n ])->save());\n }\n\n Schema::table('oauth_clients', function (Blueprint $table) {\n $table->dropIndex('oauth_clients_user_id_index');\n $table->dropColumn(['user_id', 'redirect', 'personal_access_client', 'password_client']);\n\n $table->text('redirect_uris')->nullable(false)->change();\n $table->text('grant_types')->nullable(false)->change();\n });\n\n Schema::dropIfExists('oauth_personal_access_clients');\n }\n\n /**\n * Reverse the migrations.\n */\n ",
|
||||
"note": "Raw up source includes exact definitions and transformations. Helpers defined after down may need the full source; no SQL schema is inferred."
|
||||
}
|
||||
]
|
||||
}
|
||||
@@ -0,0 +1,16 @@
|
||||
{
|
||||
"upstream_commit": "3516c776a1fcbd83d234efc007e3a49807d6ed91",
|
||||
"candidate_sha256": "0e03e978721bf4fcfc65e18e4a98f47b26b71a151c792b380d18996ae467813d",
|
||||
"php_version": "8.4.27",
|
||||
"checks": {
|
||||
"php_issued_device_pending_backoff": true,
|
||||
"php_approval_rust_token_php_resource_server": true,
|
||||
"device_code_revocation_replay": true,
|
||||
"rust_issued_device_php_repository_readable": true,
|
||||
"rust_device_php_approval_and_token_validation": true,
|
||||
"php_denied_device_rejected": true,
|
||||
"expired_device_rejected": true,
|
||||
"source_database_unchanged": true
|
||||
},
|
||||
"passed": true
|
||||
}
|
||||
@@ -0,0 +1,582 @@
|
||||
{
|
||||
"upstream_commit": "3516c776a1fcbd83d234efc007e3a49807d6ed91",
|
||||
"kind": "configuration env names and source references only; no deployment values",
|
||||
"variables": {
|
||||
"IS_DEMO_APP": [
|
||||
"config/2fauth.php:81"
|
||||
],
|
||||
"IS_TESTING_APP": [
|
||||
"config/2fauth.php:82"
|
||||
],
|
||||
"TRUSTED_PROXIES": [
|
||||
"config/2fauth.php:83"
|
||||
],
|
||||
"PROXY_FOR_OUTGOING_REQUESTS": [
|
||||
"config/2fauth.php:84",
|
||||
"config/services.php:33",
|
||||
"config/services.php:42"
|
||||
],
|
||||
"PROXY_LOGOUT_URL": [
|
||||
"config/2fauth.php:85"
|
||||
],
|
||||
"APP_SUBDIRECTORY": [
|
||||
"config/2fauth.php:86",
|
||||
"config/app.php:65"
|
||||
],
|
||||
"PROXY_HEADER_FOR_IP": [
|
||||
"config/2fauth.php:102"
|
||||
],
|
||||
"THROTTLE_API": [
|
||||
"config/2fauth.php:113"
|
||||
],
|
||||
"THROTTLE_API_DURING_IMPORT": [
|
||||
"config/2fauth.php:114"
|
||||
],
|
||||
"APP_URL": [
|
||||
"config/app.php:7",
|
||||
"config/filesystems.php:44",
|
||||
"config/filesystems.php:82",
|
||||
"config/mail.php:50",
|
||||
"config/services.php:30",
|
||||
"config/services.php:40"
|
||||
],
|
||||
"HEROKU_APP_NAME": [
|
||||
"config/app.php:7",
|
||||
"config/app.php:7"
|
||||
],
|
||||
"APP_NAME": [
|
||||
"config/app.php:22",
|
||||
"config/cache.php:121",
|
||||
"config/database.php:160",
|
||||
"config/logging.php:79",
|
||||
"config/mail.php:124",
|
||||
"config/session.php:134"
|
||||
],
|
||||
"APP_ENV": [
|
||||
"config/app.php:35"
|
||||
],
|
||||
"APP_DEBUG": [
|
||||
"config/app.php:48"
|
||||
],
|
||||
"ASSET_URL": [
|
||||
"config/app.php:65"
|
||||
],
|
||||
"APP_TIMEZONE": [
|
||||
"config/app.php:78"
|
||||
],
|
||||
"APP_LOCALE": [
|
||||
"config/app.php:91"
|
||||
],
|
||||
"APP_FALLBACK_LOCALE": [
|
||||
"config/app.php:93"
|
||||
],
|
||||
"APP_FAKER_LOCALE": [
|
||||
"config/app.php:95"
|
||||
],
|
||||
"APP_KEY": [
|
||||
"config/app.php:110"
|
||||
],
|
||||
"APP_PREVIOUS_KEYS": [
|
||||
"config/app.php:114"
|
||||
],
|
||||
"APP_MAINTENANCE_DRIVER": [
|
||||
"config/app.php:132"
|
||||
],
|
||||
"APP_MAINTENANCE_STORE": [
|
||||
"config/app.php:133"
|
||||
],
|
||||
"LOGIN_THROTTLE": [
|
||||
"config/auth.php:6"
|
||||
],
|
||||
"AUTH_GUARD": [
|
||||
"config/auth.php:21"
|
||||
],
|
||||
"AUTHENTICATION_GUARD": [
|
||||
"config/auth.php:21"
|
||||
],
|
||||
"AUTH_PROXY_HEADER_FOR_USER": [
|
||||
"config/auth.php:37"
|
||||
],
|
||||
"AUTH_PROXY_HEADER_FOR_EMAIL": [
|
||||
"config/auth.php:38"
|
||||
],
|
||||
"AUTH_PASSWORD_TIMEOUT": [
|
||||
"config/auth.php:154"
|
||||
],
|
||||
"BROADCAST_CONNECTION": [
|
||||
"config/broadcasting.php:18"
|
||||
],
|
||||
"REVERB_APP_KEY": [
|
||||
"config/broadcasting.php:35"
|
||||
],
|
||||
"REVERB_APP_SECRET": [
|
||||
"config/broadcasting.php:36"
|
||||
],
|
||||
"REVERB_APP_ID": [
|
||||
"config/broadcasting.php:37"
|
||||
],
|
||||
"REVERB_HOST": [
|
||||
"config/broadcasting.php:39"
|
||||
],
|
||||
"REVERB_PORT": [
|
||||
"config/broadcasting.php:40"
|
||||
],
|
||||
"REVERB_SCHEME": [
|
||||
"config/broadcasting.php:41",
|
||||
"config/broadcasting.php:42"
|
||||
],
|
||||
"PUSHER_APP_KEY": [
|
||||
"config/broadcasting.php:51"
|
||||
],
|
||||
"PUSHER_APP_SECRET": [
|
||||
"config/broadcasting.php:52"
|
||||
],
|
||||
"PUSHER_APP_ID": [
|
||||
"config/broadcasting.php:53"
|
||||
],
|
||||
"PUSHER_APP_CLUSTER": [
|
||||
"config/broadcasting.php:55",
|
||||
"config/broadcasting.php:56"
|
||||
],
|
||||
"PUSHER_HOST": [
|
||||
"config/broadcasting.php:56"
|
||||
],
|
||||
"PUSHER_PORT": [
|
||||
"config/broadcasting.php:57"
|
||||
],
|
||||
"PUSHER_SCHEME": [
|
||||
"config/broadcasting.php:58",
|
||||
"config/broadcasting.php:60"
|
||||
],
|
||||
"ABLY_KEY": [
|
||||
"config/broadcasting.php:69"
|
||||
],
|
||||
"CACHE_STORE": [
|
||||
"config/cache.php:18"
|
||||
],
|
||||
"CACHE_DRIVER": [
|
||||
"config/cache.php:18"
|
||||
],
|
||||
"DB_CACHE_CONNECTION": [
|
||||
"config/cache.php:44"
|
||||
],
|
||||
"DB_CACHE_TABLE": [
|
||||
"config/cache.php:45"
|
||||
],
|
||||
"DB_CACHE_LOCK_CONNECTION": [
|
||||
"config/cache.php:46"
|
||||
],
|
||||
"DB_CACHE_LOCK_TABLE": [
|
||||
"config/cache.php:47"
|
||||
],
|
||||
"CACHE_STORAGE_DISK": [
|
||||
"config/cache.php:58"
|
||||
],
|
||||
"CACHE_STORAGE_PATH": [
|
||||
"config/cache.php:59"
|
||||
],
|
||||
"MEMCACHED_PERSISTENT_ID": [
|
||||
"config/cache.php:64"
|
||||
],
|
||||
"MEMCACHED_USERNAME": [
|
||||
"config/cache.php:66"
|
||||
],
|
||||
"MEMCACHED_PASSWORD": [
|
||||
"config/cache.php:67"
|
||||
],
|
||||
"MEMCACHED_HOST": [
|
||||
"config/cache.php:74"
|
||||
],
|
||||
"MEMCACHED_PORT": [
|
||||
"config/cache.php:75"
|
||||
],
|
||||
"REDIS_CACHE_CONNECTION": [
|
||||
"config/cache.php:83"
|
||||
],
|
||||
"REDIS_CACHE_LOCK_CONNECTION": [
|
||||
"config/cache.php:84"
|
||||
],
|
||||
"AWS_ACCESS_KEY_ID": [
|
||||
"config/cache.php:89",
|
||||
"config/filesystems.php:90",
|
||||
"config/queue.php:58",
|
||||
"config/services.php:57"
|
||||
],
|
||||
"AWS_SECRET_ACCESS_KEY": [
|
||||
"config/cache.php:90",
|
||||
"config/filesystems.php:91",
|
||||
"config/queue.php:59",
|
||||
"config/services.php:58"
|
||||
],
|
||||
"AWS_DEFAULT_REGION": [
|
||||
"config/cache.php:91",
|
||||
"config/filesystems.php:92",
|
||||
"config/queue.php:63",
|
||||
"config/services.php:59"
|
||||
],
|
||||
"DYNAMODB_CACHE_TABLE": [
|
||||
"config/cache.php:92"
|
||||
],
|
||||
"DYNAMODB_ENDPOINT": [
|
||||
"config/cache.php:93"
|
||||
],
|
||||
"CACHE_PREFIX": [
|
||||
"config/cache.php:121"
|
||||
],
|
||||
"DB_URL": [
|
||||
"config/database.php:37",
|
||||
"config/database.php:49",
|
||||
"config/database.php:69",
|
||||
"config/database.php:89",
|
||||
"config/database.php:104"
|
||||
],
|
||||
"DATABASE_URL": [
|
||||
"config/database.php:37",
|
||||
"config/database.php:49",
|
||||
"config/database.php:69",
|
||||
"config/database.php:89",
|
||||
"config/database.php:104"
|
||||
],
|
||||
"DB_FOREIGN_KEYS": [
|
||||
"config/database.php:40",
|
||||
"config/database.php:121"
|
||||
],
|
||||
"DB_PASSWORD": [
|
||||
"config/database.php:54",
|
||||
"config/database.php:74",
|
||||
"config/database.php:94",
|
||||
"config/database.php:109"
|
||||
],
|
||||
"DB_SOCKET": [
|
||||
"config/database.php:55",
|
||||
"config/database.php:75"
|
||||
],
|
||||
"DB_CHARSET": [
|
||||
"config/database.php:56",
|
||||
"config/database.php:76",
|
||||
"config/database.php:95",
|
||||
"config/database.php:110"
|
||||
],
|
||||
"DB_COLLATION": [
|
||||
"config/database.php:57",
|
||||
"config/database.php:77"
|
||||
],
|
||||
"MYSQL_ATTR_SSL_CA": [
|
||||
"config/database.php:63",
|
||||
"config/database.php:83"
|
||||
],
|
||||
"DB_SSLMODE": [
|
||||
"config/database.php:99"
|
||||
],
|
||||
"REDIS_CLIENT": [
|
||||
"config/database.php:156"
|
||||
],
|
||||
"REDIS_CLUSTER": [
|
||||
"config/database.php:159"
|
||||
],
|
||||
"REDIS_PREFIX": [
|
||||
"config/database.php:160"
|
||||
],
|
||||
"REDIS_PERSISTENT": [
|
||||
"config/database.php:161"
|
||||
],
|
||||
"REDIS_URL": [
|
||||
"config/database.php:165",
|
||||
"config/database.php:178"
|
||||
],
|
||||
"REDIS_HOST": [
|
||||
"config/database.php:166",
|
||||
"config/database.php:179"
|
||||
],
|
||||
"REDIS_USERNAME": [
|
||||
"config/database.php:167",
|
||||
"config/database.php:180"
|
||||
],
|
||||
"REDIS_PASSWORD": [
|
||||
"config/database.php:168",
|
||||
"config/database.php:181"
|
||||
],
|
||||
"REDIS_PORT": [
|
||||
"config/database.php:169",
|
||||
"config/database.php:182"
|
||||
],
|
||||
"REDIS_DB": [
|
||||
"config/database.php:170"
|
||||
],
|
||||
"REDIS_MAX_RETRIES": [
|
||||
"config/database.php:171",
|
||||
"config/database.php:184"
|
||||
],
|
||||
"REDIS_BACKOFF_ALGORITHM": [
|
||||
"config/database.php:172",
|
||||
"config/database.php:185"
|
||||
],
|
||||
"REDIS_BACKOFF_BASE": [
|
||||
"config/database.php:173",
|
||||
"config/database.php:186"
|
||||
],
|
||||
"REDIS_BACKOFF_CAP": [
|
||||
"config/database.php:174",
|
||||
"config/database.php:187"
|
||||
],
|
||||
"REDIS_CACHE_DB": [
|
||||
"config/database.php:183"
|
||||
],
|
||||
"FILESYSTEM_DISK": [
|
||||
"config/filesystems.php:16"
|
||||
],
|
||||
"FILESYSTEM_DRIVER": [
|
||||
"config/filesystems.php:16"
|
||||
],
|
||||
"AWS_BUCKET": [
|
||||
"config/filesystems.php:93"
|
||||
],
|
||||
"AWS_URL": [
|
||||
"config/filesystems.php:94"
|
||||
],
|
||||
"AWS_ENDPOINT": [
|
||||
"config/filesystems.php:95"
|
||||
],
|
||||
"AWS_USE_PATH_STYLE_ENDPOINT": [
|
||||
"config/filesystems.php:96"
|
||||
],
|
||||
"HASH_DRIVER": [
|
||||
"config/hashing.php:18"
|
||||
],
|
||||
"BCRYPT_ROUNDS": [
|
||||
"config/hashing.php:32"
|
||||
],
|
||||
"ARGON_MEMORY": [
|
||||
"config/hashing.php:50"
|
||||
],
|
||||
"ARGON_THREADS": [
|
||||
"config/hashing.php:51"
|
||||
],
|
||||
"ARGON_TIME": [
|
||||
"config/hashing.php:52"
|
||||
],
|
||||
"LOG_CHANNEL": [
|
||||
"config/logging.php:21"
|
||||
],
|
||||
"LOG_DEPRECATIONS_CHANNEL": [
|
||||
"config/logging.php:35"
|
||||
],
|
||||
"LOG_DEPRECATIONS_TRACE": [
|
||||
"config/logging.php:36"
|
||||
],
|
||||
"LOG_STACK": [
|
||||
"config/logging.php:57"
|
||||
],
|
||||
"LOG_LEVEL": [
|
||||
"config/logging.php:64",
|
||||
"config/logging.php:71",
|
||||
"config/logging.php:81",
|
||||
"config/logging.php:87",
|
||||
"config/logging.php:99",
|
||||
"config/logging.php:110",
|
||||
"config/logging.php:117"
|
||||
],
|
||||
"LOG_DAILY_DAYS": [
|
||||
"config/logging.php:72"
|
||||
],
|
||||
"LOG_SLACK_WEBHOOK_URL": [
|
||||
"config/logging.php:78"
|
||||
],
|
||||
"LOG_SLACK_USERNAME": [
|
||||
"config/logging.php:79"
|
||||
],
|
||||
"LOG_SLACK_EMOJI": [
|
||||
"config/logging.php:80"
|
||||
],
|
||||
"LOG_PAPERTRAIL_HANDLER": [
|
||||
"config/logging.php:88"
|
||||
],
|
||||
"PAPERTRAIL_URL": [
|
||||
"config/logging.php:90",
|
||||
"config/logging.php:92"
|
||||
],
|
||||
"PAPERTRAIL_PORT": [
|
||||
"config/logging.php:91",
|
||||
"config/logging.php:92"
|
||||
],
|
||||
"LOG_STDERR_FORMATTER": [
|
||||
"config/logging.php:104"
|
||||
],
|
||||
"LOG_SYSLOG_FACILITY": [
|
||||
"config/logging.php:111"
|
||||
],
|
||||
"MAIL_MAILER": [
|
||||
"config/mail.php:17"
|
||||
],
|
||||
"MAIL_DRIVER": [
|
||||
"config/mail.php:17"
|
||||
],
|
||||
"MAIL_URL": [
|
||||
"config/mail.php:43"
|
||||
],
|
||||
"MAIL_HOST": [
|
||||
"config/mail.php:44"
|
||||
],
|
||||
"MAIL_PORT": [
|
||||
"config/mail.php:45"
|
||||
],
|
||||
"MAIL_ENCRYPTION": [
|
||||
"config/mail.php:46"
|
||||
],
|
||||
"MAIL_USERNAME": [
|
||||
"config/mail.php:47"
|
||||
],
|
||||
"MAIL_PASSWORD": [
|
||||
"config/mail.php:48"
|
||||
],
|
||||
"MAIL_EHLO_DOMAIN": [
|
||||
"config/mail.php:50"
|
||||
],
|
||||
"MAIL_VERIFY_SSL_PEER": [
|
||||
"config/mail.php:51"
|
||||
],
|
||||
"MAIL_SENDMAIL_PATH": [
|
||||
"config/mail.php:79"
|
||||
],
|
||||
"MAIL_LOG_CHANNEL": [
|
||||
"config/mail.php:84"
|
||||
],
|
||||
"MAIL_FROM_ADDRESS": [
|
||||
"config/mail.php:123"
|
||||
],
|
||||
"MAIL_FROM_NAME": [
|
||||
"config/mail.php:124"
|
||||
],
|
||||
"PASSPORT_PRIVATE_KEY": [
|
||||
"config/passport.php:31"
|
||||
],
|
||||
"PASSPORT_PUBLIC_KEY": [
|
||||
"config/passport.php:33"
|
||||
],
|
||||
"PASSPORT_CONNECTION": [
|
||||
"config/passport.php:46"
|
||||
],
|
||||
"QUEUE_CONNECTION": [
|
||||
"config/queue.php:16"
|
||||
],
|
||||
"DB_QUEUE_CONNECTION": [
|
||||
"config/queue.php:40"
|
||||
],
|
||||
"DB_QUEUE_TABLE": [
|
||||
"config/queue.php:41"
|
||||
],
|
||||
"DB_QUEUE": [
|
||||
"config/queue.php:42"
|
||||
],
|
||||
"DB_QUEUE_RETRY_AFTER": [
|
||||
"config/queue.php:43"
|
||||
],
|
||||
"BEANSTALKD_QUEUE_HOST": [
|
||||
"config/queue.php:49"
|
||||
],
|
||||
"BEANSTALKD_QUEUE": [
|
||||
"config/queue.php:50"
|
||||
],
|
||||
"BEANSTALKD_QUEUE_RETRY_AFTER": [
|
||||
"config/queue.php:51"
|
||||
],
|
||||
"SQS_PREFIX": [
|
||||
"config/queue.php:60"
|
||||
],
|
||||
"SQS_QUEUE": [
|
||||
"config/queue.php:61"
|
||||
],
|
||||
"SQS_SUFFIX": [
|
||||
"config/queue.php:62"
|
||||
],
|
||||
"REDIS_QUEUE_CONNECTION": [
|
||||
"config/queue.php:69"
|
||||
],
|
||||
"REDIS_QUEUE": [
|
||||
"config/queue.php:70"
|
||||
],
|
||||
"REDIS_QUEUE_RETRY_AFTER": [
|
||||
"config/queue.php:71"
|
||||
],
|
||||
"DB_CONNECTION": [
|
||||
"config/queue.php:106",
|
||||
"config/queue.php:125"
|
||||
],
|
||||
"QUEUE_FAILED_DRIVER": [
|
||||
"config/queue.php:124"
|
||||
],
|
||||
"MAILGUN_DOMAIN": [
|
||||
"config/services.php:18"
|
||||
],
|
||||
"MAILGUN_SECRET": [
|
||||
"config/services.php:19"
|
||||
],
|
||||
"MAILGUN_ENDPOINT": [
|
||||
"config/services.php:20"
|
||||
],
|
||||
"OPENID_TOKEN_URL": [
|
||||
"config/services.php:25"
|
||||
],
|
||||
"OPENID_AUTHORIZE_URL": [
|
||||
"config/services.php:26"
|
||||
],
|
||||
"OPENID_USERINFO_URL": [
|
||||
"config/services.php:27"
|
||||
],
|
||||
"OPENID_CLIENT_ID": [
|
||||
"config/services.php:28"
|
||||
],
|
||||
"OPENID_CLIENT_SECRET": [
|
||||
"config/services.php:29"
|
||||
],
|
||||
"GITHUB_CLIENT_ID": [
|
||||
"config/services.php:38"
|
||||
],
|
||||
"GITHUB_CLIENT_SECRET": [
|
||||
"config/services.php:39"
|
||||
],
|
||||
"POSTMARK_TOKEN": [
|
||||
"config/services.php:53"
|
||||
],
|
||||
"RESEND_KEY": [
|
||||
"config/services.php:63"
|
||||
],
|
||||
"SLACK_BOT_USER_OAUTH_TOKEN": [
|
||||
"config/services.php:68"
|
||||
],
|
||||
"SLACK_BOT_USER_DEFAULT_CHANNEL": [
|
||||
"config/services.php:69"
|
||||
],
|
||||
"SESSION_DRIVER": [
|
||||
"config/session.php:21"
|
||||
],
|
||||
"SESSION_ENCRYPT": [
|
||||
"config/session.php:52"
|
||||
],
|
||||
"SESSION_CONNECTION": [
|
||||
"config/session.php:78"
|
||||
],
|
||||
"SESSION_TABLE": [
|
||||
"config/session.php:91"
|
||||
],
|
||||
"SESSION_STORE": [
|
||||
"config/session.php:106"
|
||||
],
|
||||
"SESSION_PATH": [
|
||||
"config/session.php:148"
|
||||
],
|
||||
"SESSION_DOMAIN": [
|
||||
"config/session.php:161"
|
||||
],
|
||||
"SESSION_SECURE_COOKIE": [
|
||||
"config/session.php:174"
|
||||
],
|
||||
"WEBAUTHN_ORIGINS": [
|
||||
"config/webauthn.php:35"
|
||||
]
|
||||
},
|
||||
"dynamic_names": [
|
||||
"USERPREF_DEFAULT__<PREFERENCE>",
|
||||
"USERPREF_LOCKED__<PREFERENCE>"
|
||||
]
|
||||
}
|
||||
@@ -0,0 +1,269 @@
|
||||
{
|
||||
"upstream_commit": "3516c776a1fcbd83d234efc007e3a49807d6ed91",
|
||||
"files": [
|
||||
{
|
||||
"path": "UPSTREAM-LICENSE",
|
||||
"sha256": "4df3c306dddaaf4baffdff5ca820cc679ac8cd6dc263c6a74517783e42fa7a3b"
|
||||
},
|
||||
{
|
||||
"path": "UPSTREAM-NOTICE.txt",
|
||||
"sha256": "cb69c7c5779eb46c28f44146e63c66831eb17ff3af761fc1f09e9c6406c3fe4c"
|
||||
},
|
||||
{
|
||||
"path": "build/assets/About-DlWJhNxo.js",
|
||||
"sha256": "f3169d1ab17f927108537166c262b5e4cbd60680007376d81b222196ca161c9b"
|
||||
},
|
||||
{
|
||||
"path": "build/assets/Access-BQVm4alb.js",
|
||||
"sha256": "22b97a5fbc041312bda5a240a93e14a50e6c4d23fced34202f75c0cf1441f762"
|
||||
},
|
||||
{
|
||||
"path": "build/assets/AccessLogViewer-D5ke4CwJ.js",
|
||||
"sha256": "cb9164252152b509f281ca1d14758ae200c76537bc51c687c28cefac7689c75e"
|
||||
},
|
||||
{
|
||||
"path": "build/assets/Account-CvhJGfLO.js",
|
||||
"sha256": "d6cbabd0c90d314b39f25af40bc06fa6067b7a97266581b40113c837b13be140"
|
||||
},
|
||||
{
|
||||
"path": "build/assets/AccountSharing-kU7yk02h.js",
|
||||
"sha256": "e99a6c300fb8c205fa1b6ed205daadf1e4e9c0ca46e6402a5c5c8b7a1f4fb8ff"
|
||||
},
|
||||
{
|
||||
"path": "build/assets/Accounts-znshhaJC.js",
|
||||
"sha256": "a2d62c76f1760d22f69a05b19d2b455d7943fa873af854ddf3291d238c6ab4e1"
|
||||
},
|
||||
{
|
||||
"path": "build/assets/AppSetup-9GPB7B-I.js",
|
||||
"sha256": "3fc8954eabf0857e275ea041f93b3c80ad14fff990ce880e80b64a506d2af083"
|
||||
},
|
||||
{
|
||||
"path": "build/assets/Auth-DslSg1a9.js",
|
||||
"sha256": "19cde7fd5762e9cf47461ea4bb4bedd493d73e6a8ba5234c6d2a772e2e1381a5"
|
||||
},
|
||||
{
|
||||
"path": "build/assets/Capture-BG6QMHLW.js",
|
||||
"sha256": "37055326ee5e5b9704b09c190550954d8c023b62db0fa56601a458665ff91c83"
|
||||
},
|
||||
{
|
||||
"path": "build/assets/CopyButton-CgxgBp0c.js",
|
||||
"sha256": "de0d9210a45ca0dcfe42c9c3510e376d6138f46304287dac38dfd705b7fbc980"
|
||||
},
|
||||
{
|
||||
"path": "build/assets/Create-Vv-BwDWf.js",
|
||||
"sha256": "d7298e06bbd88989a0aadcbcad6ce822f68143479fc7ac304aa0de1afd0bb1bb"
|
||||
},
|
||||
{
|
||||
"path": "build/assets/CreateUpdate-CbOB1O7q.js",
|
||||
"sha256": "7722a5c1d5e2d54f59f831019dc60d70e254e6301af0d1d88539b900c9afe5a0"
|
||||
},
|
||||
{
|
||||
"path": "build/assets/CreateUpdate-tvLQ26rU.js",
|
||||
"sha256": "f6080ad4cf80ce4a0d069c37db14cffb73e100d61c01b5d362d065671db938bb"
|
||||
},
|
||||
{
|
||||
"path": "build/assets/Edit-Ba84j7PP.js",
|
||||
"sha256": "4e9473ca1dcdd023ab7e5971efb7c4037cc7b139f40d3c6d60ebbb188042a9be"
|
||||
},
|
||||
{
|
||||
"path": "build/assets/Error-DG0pgQA2.js",
|
||||
"sha256": "b0f3daed5256ace1b0cfc107331ea72d83802c02a5b06fbadfd9e9bc93f096ab"
|
||||
},
|
||||
{
|
||||
"path": "build/assets/Form-ZbAUhXmz.js",
|
||||
"sha256": "fd411a87ff941729cb37f83684348c07a18f36238611f46895f9c7058caeee39"
|
||||
},
|
||||
{
|
||||
"path": "build/assets/Groups-Ccrpwp-O.js",
|
||||
"sha256": "fe6d8a2b4909a5a9703fb1b397e093920f10339f2397d94322e91cb4bd3455b0"
|
||||
},
|
||||
{
|
||||
"path": "build/assets/Import-C0sC5CLD.js",
|
||||
"sha256": "3cf1c15584189a7ec24cc62205cf42bded2561ba6d8744b4d78939d639fb9045"
|
||||
},
|
||||
{
|
||||
"path": "build/assets/Login-XfEMUKl8.js",
|
||||
"sha256": "a43048f07eb40139adc248ecae28d32c9f578a806390db9c92d872a9f52c2d18"
|
||||
},
|
||||
{
|
||||
"path": "build/assets/Manage-B1CTWqgo.js",
|
||||
"sha256": "d19802c7c40feb225df8e44234c149d69932f02c23e2e130f83dd312c5b470d7"
|
||||
},
|
||||
{
|
||||
"path": "build/assets/OAuth-aXCqlLPs.js",
|
||||
"sha256": "62945e0e479af1c53092bf8fccb97ed218b16a31516d9ca916215fe20477bbc9"
|
||||
},
|
||||
{
|
||||
"path": "build/assets/Options-Bun4hDR8.js",
|
||||
"sha256": "4e03854ccd1cc756cb0b9a0bf21c514b1d2c16a9f44443b01c48825963db41f2"
|
||||
},
|
||||
{
|
||||
"path": "build/assets/OtpLogs-CAP6rwu6.js",
|
||||
"sha256": "752b619ab9eec5433b20ec3d4ea2ebc20cfa44cd408841c65a7c22ecb7d80ecc"
|
||||
},
|
||||
{
|
||||
"path": "build/assets/QRcode-Da_iUmWo.js",
|
||||
"sha256": "31cd01fbebe9be769dac7b572dcb1f4f058bbf5564c61c0326f16b2e48ca2b98"
|
||||
},
|
||||
{
|
||||
"path": "build/assets/QrContentDisplay-DiIjf7a_.js",
|
||||
"sha256": "4bb56ee3a4532bc8f8ee5464bef16c1822e9ce40274f550e713fbc4590d3007f"
|
||||
},
|
||||
{
|
||||
"path": "build/assets/Recover-CEob990V.js",
|
||||
"sha256": "81a968b80924d8771c13df267554975f893e4472c1e94685daa2540bc5258db9"
|
||||
},
|
||||
{
|
||||
"path": "build/assets/Register-DffuLlzx.js",
|
||||
"sha256": "0143921eedbef6c3c93119cf8c99b1ae663f38107871ee1ad0b464578013627e"
|
||||
},
|
||||
{
|
||||
"path": "build/assets/RequestReset-w8-YSMaH.js",
|
||||
"sha256": "26eedf6afd5f9fa0311b362e51837ac384d49583de1dba953b5d5ebc8a88d6fe"
|
||||
},
|
||||
{
|
||||
"path": "build/assets/Reset-RiTuOlH9.js",
|
||||
"sha256": "efda00daaf3e1522870b1112185b220f427ba7c73a35da1dd19577a9328c8680"
|
||||
},
|
||||
{
|
||||
"path": "build/assets/Share-DkTnn1jz.js",
|
||||
"sha256": "112dcfe57d40a155f642643cc33bd0b131084c37cecb73731d4d44488979f4c5"
|
||||
},
|
||||
{
|
||||
"path": "build/assets/Start-Dnu4qWlC.js",
|
||||
"sha256": "71307d371a240ae2566646506ac1043c2d5044e4779d4cc0e600f6c4a5148fb9"
|
||||
},
|
||||
{
|
||||
"path": "build/assets/TransferOwnership-BsVNwpBY.js",
|
||||
"sha256": "5d8d0457fde643dd492c2c8b4996b488a30073c5383a2910f83a571947128b83"
|
||||
},
|
||||
{
|
||||
"path": "build/assets/TwofaccountMedia-DzLyeBxh.js",
|
||||
"sha256": "0dc08bad96017b22d1319219aee0810919776f61a4a98213b76fd636b22ab92c"
|
||||
},
|
||||
{
|
||||
"path": "build/assets/Users-DyNCDMUg.js",
|
||||
"sha256": "f4843babe67785c7b490d1d635e9c6d53dbe56a36bc0283c74a49acc7742f4e8"
|
||||
},
|
||||
{
|
||||
"path": "build/assets/WebAuthn-C_HU0Xj8.js",
|
||||
"sha256": "d4342ce1b35963255a6b4a7df346cd3d40ac75a6148c21258b92fbcd6b6a1dd9"
|
||||
},
|
||||
{
|
||||
"path": "build/assets/app-C6trQ8-_.css",
|
||||
"sha256": "1c9e625b1b803a2a2b63a6339524de490060ad1e30a14076e7aa1893dd5f2472"
|
||||
},
|
||||
{
|
||||
"path": "build/assets/app-dvJP63FL.js",
|
||||
"sha256": "535d717468bc495ac963ae84b52549d223c04213f5e5764b2762e463a00cb04e"
|
||||
},
|
||||
{
|
||||
"path": "build/assets/appSettingsUpdater-D1Bq_3WB.js",
|
||||
"sha256": "2f4dc82c14b2518614612bf1c37f720d5e1899059423ed3bd593e7a83e6728ae"
|
||||
},
|
||||
{
|
||||
"path": "build/assets/breakpoints-CyLcIEOu.js",
|
||||
"sha256": "43ecba0d19dea8ad828eae4fb460ce85fedfae700c09daa8fe9701214cd986d5"
|
||||
},
|
||||
{
|
||||
"path": "build/assets/bus-ChE1sp8V.js",
|
||||
"sha256": "d84b9cf19fd6d82135d7bc185f5d200ac2abc2bd85f61c9ba0ff82b2c0d591fb"
|
||||
},
|
||||
{
|
||||
"path": "build/assets/check-CPGWPXZa.js",
|
||||
"sha256": "3d743579c1e01d29248a6c4c2fa1c3b042aee3f2d97e29ea879a2d5dbf6c736b"
|
||||
},
|
||||
{
|
||||
"path": "build/assets/circle-plus-BM92Iipr.js",
|
||||
"sha256": "2e5faf55982bf87bf1caf5b6abd2673127ef15b4f56bf3fa330b84457d984afc"
|
||||
},
|
||||
{
|
||||
"path": "build/assets/circle-x-AvUNZzwX.js",
|
||||
"sha256": "942133c0ee96ec5b0eff01c4f2ff3a2ec76f00d8a126aaf4a29e25b0092e93dd"
|
||||
},
|
||||
{
|
||||
"path": "build/assets/createLucideIcon-DsaEAGzP.js",
|
||||
"sha256": "67d36796d6e97cd30520b928d535103cd12df14d0ff9ccc0d0d9e39135288a9a"
|
||||
},
|
||||
{
|
||||
"path": "build/assets/external-link-CqpXNovN.js",
|
||||
"sha256": "b0ea183dd73195135d6874336bfea357f0ef9853c2f815646eb685bc96930042"
|
||||
},
|
||||
{
|
||||
"path": "build/assets/helpers-B2oe4lHy.js",
|
||||
"sha256": "9f2e0d92e5dcd5ca291a2201b86f07c629e6f66610c32087b5e7f8ef364e2177"
|
||||
},
|
||||
{
|
||||
"path": "build/assets/iconService-rm6LRV4U.js",
|
||||
"sha256": "45473c427530a0a626666e25c6f22626dcf9ce066b0fbc3d113f1ee03c7bd60e"
|
||||
},
|
||||
{
|
||||
"path": "build/assets/index-BJsmINgd.js",
|
||||
"sha256": "73c8fd5fe0cfa6e9f2b6813a26e13b5af522217a2a8bbaf71df66ffab21a9ae0"
|
||||
},
|
||||
{
|
||||
"path": "build/assets/qr-code-eSL1bq0j.js",
|
||||
"sha256": "ef43fa83adaacb9ac9fbde3fb504d0d9723039aedb4c6d0b6cbe245d6e098644"
|
||||
},
|
||||
{
|
||||
"path": "build/assets/shareService-BU7jlLil.js",
|
||||
"sha256": "5cf418bbe4ebd9e4c4df38ff56328022ab5d96512204c5f5e4a4b922ae87e675"
|
||||
},
|
||||
{
|
||||
"path": "build/assets/tablet-DYUfDfjC.js",
|
||||
"sha256": "166e691d3fd9bf6c5a2d0d39fdaf878c276b41d22e886b8e2b82c8f0e5468750"
|
||||
},
|
||||
{
|
||||
"path": "build/assets/tabs-BVx9tg1F.js",
|
||||
"sha256": "a0dc11f6f993d0758ffa532a818d332771403a256ff00a2aa072dcc211c9efe9"
|
||||
},
|
||||
{
|
||||
"path": "build/assets/tabs-Btun2NN0.js",
|
||||
"sha256": "da0a8a06a9b615727d00cfa2313c35699c220f3691e59ac0732b5004c0585e47"
|
||||
},
|
||||
{
|
||||
"path": "build/assets/useSortable-6hRbxhTj.js",
|
||||
"sha256": "6f3a264bb228826b5bc77c63452d141e5550c5e7e29cbd4dd0fc66fc8999e2c7"
|
||||
},
|
||||
{
|
||||
"path": "build/assets/users-CLZI37iw.js",
|
||||
"sha256": "732d20d0eeca849e83a4d2affd0eb07c95ac0538266f93ee19a8a0da0809651f"
|
||||
},
|
||||
{
|
||||
"path": "build/assets/webauthnService-D363et0U.js",
|
||||
"sha256": "7f98b80530bc3cefa019532e5570e1f4f4f9418ad5882dc9e06366ea9439a5dd"
|
||||
},
|
||||
{
|
||||
"path": "build/assets/x-DQVIq0xP.js",
|
||||
"sha256": "fdb82d6b42e8ca89a1ac9bc037572e9d6c36b7c568b49cf7435b1a8d7cd6da17"
|
||||
},
|
||||
{
|
||||
"path": "build/manifest.json",
|
||||
"sha256": "cbf4ab776d021f9fb4778970db9afc3d7b8d32b2edd21e7677dcf18ccf48f7ed"
|
||||
},
|
||||
{
|
||||
"path": "favicon.ico",
|
||||
"sha256": "844e483a6fc4a33ff86fbf70a4e6321034f4d5d831a8401afed491ac2aa52957"
|
||||
},
|
||||
{
|
||||
"path": "favicon.png",
|
||||
"sha256": "8dd74a355aa3d9355439b753872e40caf91b3692fedb4560da67c45b38d972ef"
|
||||
},
|
||||
{
|
||||
"path": "favicon_lg.png",
|
||||
"sha256": "54be08dbaed6b51b78b1fd3e5918e4b071af54f1c8062fbbfb7c59f0970a336b"
|
||||
},
|
||||
{
|
||||
"path": "healthcheck.css",
|
||||
"sha256": "f6444b55f2879b5d38b41be8562065dcbe190f179dd2306851408ac142ee8250"
|
||||
},
|
||||
{
|
||||
"path": "logo.svg",
|
||||
"sha256": "11c3a3fb1a688e8cdfde36fb117fc90fc652664398f62e12ffb6a923f19a392d"
|
||||
},
|
||||
{
|
||||
"path": "robots.txt",
|
||||
"sha256": "e5c4b84484ee4216e9373be99380320c25dd94805f99f0a805846f087636553f"
|
||||
}
|
||||
]
|
||||
}
|
||||
@@ -0,0 +1,55 @@
|
||||
{
|
||||
"version": "0.3.0",
|
||||
"date": "2026-10-28",
|
||||
"candidate_sha256": "0e03e978721bf4fcfc65e18e4a98f47b26b71a151c792b380d18996ae467813d",
|
||||
"upstream_commit": "3516c776a1fcbd83d234efc007e3a49807d6ed91",
|
||||
"rust_tests": {
|
||||
"passed": 137,
|
||||
"failed": 0
|
||||
},
|
||||
"strict_clippy": "passed",
|
||||
"formatting": "passed",
|
||||
"python_harness_tests": {
|
||||
"passed": 6,
|
||||
"failed": 0
|
||||
},
|
||||
"php_openssl_fixtures": {
|
||||
"passed": 6
|
||||
},
|
||||
"http_comparisons_per_database": {
|
||||
"total": 140,
|
||||
"exact": 129,
|
||||
"expected_raw_dynamic_bodies": 11,
|
||||
"unexpected_assertion_failures": 0
|
||||
},
|
||||
"process_checks": {
|
||||
"oauth_wire": {
|
||||
"php_authorization_code_pkce": "passed",
|
||||
"rust_jwt_php_signature": "passed",
|
||||
"rust_refresh_php_decryption": "passed",
|
||||
"php_refresh_rotation_replay": "passed",
|
||||
"client_credentials_wildcard": "passed"
|
||||
},
|
||||
"laravel_session_http": {
|
||||
"php_session_browser_migration": "passed",
|
||||
"cases": [
|
||||
"file/json/encrypt=False",
|
||||
"database/json/encrypt=False",
|
||||
"file/json/encrypt=True",
|
||||
"database/json/encrypt=True",
|
||||
"file/php/encrypt=False",
|
||||
"database/php/encrypt=False",
|
||||
"file/php/encrypt=True",
|
||||
"database/php/encrypt=True"
|
||||
]
|
||||
},
|
||||
"cli_http_smoke": {
|
||||
"cli_init": "passed",
|
||||
"existing_db_refusal": "passed",
|
||||
"test_user": "passed",
|
||||
"http_login_crud_hotp_logout": "passed",
|
||||
"php_differential": "not_run"
|
||||
}
|
||||
},
|
||||
"device_interop_report": "device-interop.json"
|
||||
}
|
||||
@@ -0,0 +1,298 @@
|
||||
{
|
||||
"upstream_commit": "3516c776a1fcbd83d234efc007e3a49807d6ed91",
|
||||
"php": "8.4.27",
|
||||
"results": [
|
||||
{
|
||||
"case": "issuer-missing-client",
|
||||
"method": "POST",
|
||||
"path": "/oauth/device/code",
|
||||
"status": 400,
|
||||
"headers": {
|
||||
"Content-Type": "application/json",
|
||||
"Cache-Control": "no-cache, private",
|
||||
"Pragma": null,
|
||||
"WWW-Authenticate": null,
|
||||
"Location": null,
|
||||
"X-RateLimit-Limit": "60",
|
||||
"X-RateLimit-Remaining": "59"
|
||||
},
|
||||
"body": {
|
||||
"error": "invalid_request",
|
||||
"error_description": "The request is missing a required parameter, includes an invalid parameter value, includes a parameter more than once, or is otherwise malformed.",
|
||||
"hint": "Check the `client_id` parameter"
|
||||
}
|
||||
},
|
||||
{
|
||||
"case": "issuer-unknown-client",
|
||||
"method": "POST",
|
||||
"path": "/oauth/device/code",
|
||||
"status": 401,
|
||||
"headers": {
|
||||
"Content-Type": "application/json",
|
||||
"Cache-Control": "no-cache, private",
|
||||
"Pragma": null,
|
||||
"WWW-Authenticate": null,
|
||||
"Location": null,
|
||||
"X-RateLimit-Limit": "60",
|
||||
"X-RateLimit-Remaining": "58"
|
||||
},
|
||||
"body": {
|
||||
"error": "invalid_client",
|
||||
"error_description": "Client authentication failed"
|
||||
}
|
||||
},
|
||||
{
|
||||
"case": "issuer-unauthorized-client",
|
||||
"method": "POST",
|
||||
"path": "/oauth/device/code",
|
||||
"status": 400,
|
||||
"headers": {
|
||||
"Content-Type": "application/json",
|
||||
"Cache-Control": "no-cache, private",
|
||||
"Pragma": null,
|
||||
"WWW-Authenticate": null,
|
||||
"Location": null,
|
||||
"X-RateLimit-Limit": "60",
|
||||
"X-RateLimit-Remaining": "57"
|
||||
},
|
||||
"body": {
|
||||
"error": "unauthorized_client",
|
||||
"error_description": "The authenticated client is not authorized to use this authorization grant type."
|
||||
}
|
||||
},
|
||||
{
|
||||
"case": "issuer-valid",
|
||||
"method": "POST",
|
||||
"path": "/oauth/device/code",
|
||||
"status": 200,
|
||||
"headers": {
|
||||
"Content-Type": "application/json; charset=UTF-8",
|
||||
"Cache-Control": "no-store, private",
|
||||
"Pragma": "no-cache",
|
||||
"WWW-Authenticate": null,
|
||||
"Location": null,
|
||||
"X-RateLimit-Limit": "60",
|
||||
"X-RateLimit-Remaining": "56"
|
||||
},
|
||||
"body": {
|
||||
"verification_uri": "<BASE>/oauth/device",
|
||||
"expires_in": 599,
|
||||
"verification_uri_complete": "<BASE>/oauth/device?user_code=<USER_CODE>",
|
||||
"interval": 5,
|
||||
"device_code": "<DEVICE_CODE>",
|
||||
"user_code": "<USER_CODE>",
|
||||
"device_code_length": 80,
|
||||
"user_code_length": 8,
|
||||
"device_code_hex": true,
|
||||
"user_code_consonants": true
|
||||
}
|
||||
},
|
||||
{
|
||||
"case": "poll-missing-device-code",
|
||||
"method": "POST",
|
||||
"path": "/oauth/token",
|
||||
"status": 400,
|
||||
"headers": {
|
||||
"Content-Type": "application/json",
|
||||
"Cache-Control": "no-cache, private",
|
||||
"Pragma": null,
|
||||
"WWW-Authenticate": null,
|
||||
"Location": null,
|
||||
"X-RateLimit-Limit": "60",
|
||||
"X-RateLimit-Remaining": "55"
|
||||
},
|
||||
"body": {
|
||||
"error": "invalid_request",
|
||||
"error_description": "The request is missing a required parameter, includes an invalid parameter value, includes a parameter more than once, or is otherwise malformed.",
|
||||
"hint": "Check the `device_code` parameter"
|
||||
}
|
||||
},
|
||||
{
|
||||
"case": "poll-unknown-device-code",
|
||||
"method": "POST",
|
||||
"path": "/oauth/token",
|
||||
"status": 400,
|
||||
"headers": {
|
||||
"Content-Type": "application/json",
|
||||
"Cache-Control": "no-cache, private",
|
||||
"Pragma": null,
|
||||
"WWW-Authenticate": null,
|
||||
"Location": null,
|
||||
"X-RateLimit-Limit": "60",
|
||||
"X-RateLimit-Remaining": "54"
|
||||
},
|
||||
"body": {
|
||||
"error": "invalid_grant",
|
||||
"error_description": "The provided authorization grant (e.g., authorization code, resource owner credentials) or refresh token is invalid, expired, revoked, does not match the redirection URI used in the authorization request, or was issued to another client.",
|
||||
"hint": ""
|
||||
}
|
||||
},
|
||||
{
|
||||
"case": "poll-pending",
|
||||
"method": "POST",
|
||||
"path": "/oauth/token",
|
||||
"status": 400,
|
||||
"headers": {
|
||||
"Content-Type": "application/json",
|
||||
"Cache-Control": "no-cache, private",
|
||||
"Pragma": null,
|
||||
"WWW-Authenticate": null,
|
||||
"Location": null,
|
||||
"X-RateLimit-Limit": "60",
|
||||
"X-RateLimit-Remaining": "53"
|
||||
},
|
||||
"body": {
|
||||
"error": "authorization_pending",
|
||||
"error_description": "The authorization request is still pending as the end user hasn't yet completed the user interaction steps. The client SHOULD repeat the Access Token Request to the token endpoint",
|
||||
"hint": ""
|
||||
}
|
||||
},
|
||||
{
|
||||
"case": "poll-too-soon",
|
||||
"method": "POST",
|
||||
"path": "/oauth/token",
|
||||
"status": 400,
|
||||
"headers": {
|
||||
"Content-Type": "application/json",
|
||||
"Cache-Control": "no-cache, private",
|
||||
"Pragma": null,
|
||||
"WWW-Authenticate": null,
|
||||
"Location": null,
|
||||
"X-RateLimit-Limit": "60",
|
||||
"X-RateLimit-Remaining": "52"
|
||||
},
|
||||
"body": {
|
||||
"error": "slow_down",
|
||||
"error_description": "The authorization request is still pending and polling should continue, but the interval MUST be increased by 5 seconds for this and all subsequent requests.",
|
||||
"hint": ""
|
||||
}
|
||||
},
|
||||
{
|
||||
"case": "GET /oauth/device",
|
||||
"method": "GET",
|
||||
"path": "/oauth/device",
|
||||
"status": 500,
|
||||
"headers": {
|
||||
"Content-Type": "application/json",
|
||||
"Cache-Control": "no-cache, private",
|
||||
"Pragma": null,
|
||||
"WWW-Authenticate": null,
|
||||
"Location": null,
|
||||
"X-RateLimit-Limit": null,
|
||||
"X-RateLimit-Remaining": null
|
||||
},
|
||||
"body": {
|
||||
"message": "Server Error"
|
||||
}
|
||||
},
|
||||
{
|
||||
"case": "GET /oauth/device/authorize",
|
||||
"method": "GET",
|
||||
"path": "/oauth/device/authorize",
|
||||
"status": 401,
|
||||
"headers": {
|
||||
"Content-Type": "application/json",
|
||||
"Cache-Control": "no-cache, private",
|
||||
"Pragma": null,
|
||||
"WWW-Authenticate": null,
|
||||
"Location": null,
|
||||
"X-RateLimit-Limit": null,
|
||||
"X-RateLimit-Remaining": null
|
||||
},
|
||||
"body": {
|
||||
"message": "Unauthenticated."
|
||||
}
|
||||
},
|
||||
{
|
||||
"case": "POST /oauth/device/authorize",
|
||||
"method": "POST",
|
||||
"path": "/oauth/device/authorize",
|
||||
"status": 419,
|
||||
"headers": {
|
||||
"Content-Type": "application/json",
|
||||
"Cache-Control": "no-cache, private",
|
||||
"Pragma": null,
|
||||
"WWW-Authenticate": null,
|
||||
"Location": null,
|
||||
"X-RateLimit-Limit": null,
|
||||
"X-RateLimit-Remaining": null
|
||||
},
|
||||
"body": {
|
||||
"message": "CSRF token mismatch."
|
||||
}
|
||||
},
|
||||
{
|
||||
"case": "DELETE /oauth/device/authorize",
|
||||
"method": "DELETE",
|
||||
"path": "/oauth/device/authorize",
|
||||
"status": 419,
|
||||
"headers": {
|
||||
"Content-Type": "application/json",
|
||||
"Cache-Control": "no-cache, private",
|
||||
"Pragma": null,
|
||||
"WWW-Authenticate": null,
|
||||
"Location": null,
|
||||
"X-RateLimit-Limit": null,
|
||||
"X-RateLimit-Remaining": null
|
||||
},
|
||||
"body": {
|
||||
"message": "CSRF token mismatch."
|
||||
}
|
||||
},
|
||||
{
|
||||
"case": "POST /oauth/authorize",
|
||||
"method": "POST",
|
||||
"path": "/oauth/authorize",
|
||||
"status": 419,
|
||||
"headers": {
|
||||
"Content-Type": "application/json",
|
||||
"Cache-Control": "no-cache, private",
|
||||
"Pragma": null,
|
||||
"WWW-Authenticate": null,
|
||||
"Location": null,
|
||||
"X-RateLimit-Limit": null,
|
||||
"X-RateLimit-Remaining": null
|
||||
},
|
||||
"body": {
|
||||
"message": "CSRF token mismatch."
|
||||
}
|
||||
},
|
||||
{
|
||||
"case": "DELETE /oauth/authorize",
|
||||
"method": "DELETE",
|
||||
"path": "/oauth/authorize",
|
||||
"status": 419,
|
||||
"headers": {
|
||||
"Content-Type": "application/json",
|
||||
"Cache-Control": "no-cache, private",
|
||||
"Pragma": null,
|
||||
"WWW-Authenticate": null,
|
||||
"Location": null,
|
||||
"X-RateLimit-Limit": null,
|
||||
"X-RateLimit-Remaining": null
|
||||
},
|
||||
"body": {
|
||||
"message": "CSRF token mismatch."
|
||||
}
|
||||
},
|
||||
{
|
||||
"case": "POST /oauth/token/refresh",
|
||||
"method": "POST",
|
||||
"path": "/oauth/token/refresh",
|
||||
"status": 419,
|
||||
"headers": {
|
||||
"Content-Type": "application/json",
|
||||
"Cache-Control": "no-cache, private",
|
||||
"Pragma": null,
|
||||
"WWW-Authenticate": null,
|
||||
"Location": null,
|
||||
"X-RateLimit-Limit": null,
|
||||
"X-RateLimit-Remaining": null
|
||||
},
|
||||
"body": {
|
||||
"message": "CSRF token mismatch."
|
||||
}
|
||||
}
|
||||
],
|
||||
"composer_lock_sha256": "b1376d21c517d700bc48b196e9dc2b30257caf25774e315ff9d1bf8a2411241a"
|
||||
}
|
||||
@@ -0,0 +1,202 @@
|
||||
{
|
||||
"upstream_commit": "3516c776a1fcbd83d234efc007e3a49807d6ed91",
|
||||
"php": "8.4.27",
|
||||
"results": [
|
||||
{
|
||||
"case": "malformed-json",
|
||||
"status": 400,
|
||||
"headers": {
|
||||
"Content-Type": "application/json",
|
||||
"Cache-Control": "no-cache, private",
|
||||
"Pragma": null,
|
||||
"WWW-Authenticate": null,
|
||||
"X-RateLimit-Limit": "60",
|
||||
"X-RateLimit-Remaining": "59"
|
||||
},
|
||||
"body": {
|
||||
"message": "Bad request."
|
||||
}
|
||||
},
|
||||
{
|
||||
"case": "top-json-array",
|
||||
"status": 400,
|
||||
"headers": {
|
||||
"Content-Type": "application/json",
|
||||
"Cache-Control": "no-cache, private",
|
||||
"Pragma": null,
|
||||
"WWW-Authenticate": null,
|
||||
"X-RateLimit-Limit": "60",
|
||||
"X-RateLimit-Remaining": "58"
|
||||
},
|
||||
"body": {
|
||||
"error": "unsupported_grant_type",
|
||||
"error_description": "The authorization grant type is not supported by the authorization server.",
|
||||
"hint": "Check that all required parameters have been provided"
|
||||
}
|
||||
},
|
||||
{
|
||||
"case": "top-json-null",
|
||||
"status": 400,
|
||||
"headers": {
|
||||
"Content-Type": "application/json",
|
||||
"Cache-Control": "no-cache, private",
|
||||
"Pragma": null,
|
||||
"WWW-Authenticate": null,
|
||||
"X-RateLimit-Limit": "60",
|
||||
"X-RateLimit-Remaining": "57"
|
||||
},
|
||||
"body": {
|
||||
"message": "Bad request."
|
||||
}
|
||||
},
|
||||
{
|
||||
"case": "empty-json-body",
|
||||
"status": 400,
|
||||
"headers": {
|
||||
"Content-Type": "application/json",
|
||||
"Cache-Control": "no-cache, private",
|
||||
"Pragma": null,
|
||||
"WWW-Authenticate": null,
|
||||
"X-RateLimit-Limit": "60",
|
||||
"X-RateLimit-Remaining": "56"
|
||||
},
|
||||
"body": {
|
||||
"error": "unsupported_grant_type",
|
||||
"error_description": "The authorization grant type is not supported by the authorization server.",
|
||||
"hint": "Check that all required parameters have been provided"
|
||||
}
|
||||
},
|
||||
{
|
||||
"case": "form-scalar-then-array",
|
||||
"status": 400,
|
||||
"headers": {
|
||||
"Content-Type": "application/json",
|
||||
"Cache-Control": "no-cache, private",
|
||||
"Pragma": null,
|
||||
"WWW-Authenticate": null,
|
||||
"X-RateLimit-Limit": "60",
|
||||
"X-RateLimit-Remaining": "55"
|
||||
},
|
||||
"body": {
|
||||
"error": "unsupported_grant_type",
|
||||
"error_description": "The authorization grant type is not supported by the authorization server.",
|
||||
"hint": "Check that all required parameters have been provided"
|
||||
}
|
||||
},
|
||||
{
|
||||
"case": "form-array-then-scalar",
|
||||
"status": 400,
|
||||
"headers": {
|
||||
"Content-Type": "application/json",
|
||||
"Cache-Control": "no-cache, private",
|
||||
"Pragma": null,
|
||||
"WWW-Authenticate": null,
|
||||
"X-RateLimit-Limit": "60",
|
||||
"X-RateLimit-Remaining": "54"
|
||||
},
|
||||
"body": {
|
||||
"error": "unsupported_grant_type",
|
||||
"error_description": "The authorization grant type is not supported by the authorization server.",
|
||||
"hint": "Check that all required parameters have been provided"
|
||||
}
|
||||
},
|
||||
{
|
||||
"case": "top-json-number",
|
||||
"status": 400,
|
||||
"headers": {
|
||||
"Content-Type": "application/json",
|
||||
"Cache-Control": "no-cache, private",
|
||||
"Pragma": null,
|
||||
"WWW-Authenticate": null,
|
||||
"X-RateLimit-Limit": "60",
|
||||
"X-RateLimit-Remaining": "53"
|
||||
},
|
||||
"body": {
|
||||
"error": "unsupported_grant_type",
|
||||
"error_description": "The authorization grant type is not supported by the authorization server.",
|
||||
"hint": "Check that all required parameters have been provided"
|
||||
}
|
||||
},
|
||||
{
|
||||
"case": "top-json-nonempty-array",
|
||||
"status": 400,
|
||||
"headers": {
|
||||
"Content-Type": "application/json",
|
||||
"Cache-Control": "no-cache, private",
|
||||
"Pragma": null,
|
||||
"WWW-Authenticate": null,
|
||||
"X-RateLimit-Limit": "60",
|
||||
"X-RateLimit-Remaining": "52"
|
||||
},
|
||||
"body": {
|
||||
"error": "unsupported_grant_type",
|
||||
"error_description": "The authorization grant type is not supported by the authorization server.",
|
||||
"hint": "Check that all required parameters have been provided"
|
||||
}
|
||||
},
|
||||
{
|
||||
"case": "body-client-id-u2003",
|
||||
"status": 200,
|
||||
"headers": {
|
||||
"Content-Type": "application/json; charset=UTF-8",
|
||||
"Cache-Control": "no-store, private",
|
||||
"Pragma": "no-cache",
|
||||
"WWW-Authenticate": null,
|
||||
"X-RateLimit-Limit": "60",
|
||||
"X-RateLimit-Remaining": "51"
|
||||
},
|
||||
"body": {
|
||||
"token_type": "Bearer",
|
||||
"expires_in": 31536000,
|
||||
"access_token_present": true
|
||||
}
|
||||
},
|
||||
{
|
||||
"case": "basic-client-id-u2003",
|
||||
"status": 401,
|
||||
"headers": {
|
||||
"Content-Type": "application/json",
|
||||
"Cache-Control": "no-cache, private",
|
||||
"Pragma": null,
|
||||
"WWW-Authenticate": "Basic realm=\"OAuth\"",
|
||||
"X-RateLimit-Limit": "60",
|
||||
"X-RateLimit-Remaining": "50"
|
||||
},
|
||||
"body": {
|
||||
"error": "invalid_client",
|
||||
"error_description": "Client authentication failed"
|
||||
}
|
||||
},
|
||||
{
|
||||
"case": "body-client-secret-u2003",
|
||||
"status": 200,
|
||||
"headers": {
|
||||
"Content-Type": "application/json; charset=UTF-8",
|
||||
"Cache-Control": "no-store, private",
|
||||
"Pragma": "no-cache",
|
||||
"WWW-Authenticate": null,
|
||||
"X-RateLimit-Limit": "60",
|
||||
"X-RateLimit-Remaining": "49"
|
||||
},
|
||||
"body": {
|
||||
"token_type": "Bearer",
|
||||
"expires_in": 31536000,
|
||||
"access_token_present": true
|
||||
}
|
||||
}
|
||||
],
|
||||
"composer_lock_sha256": "b1376d21c517d700bc48b196e9dc2b30257caf25774e315ff9d1bf8a2411241a",
|
||||
"request_notes": {
|
||||
"malformed-json": "raw { with Content-Type application/json",
|
||||
"top-json-array": "raw []",
|
||||
"top-json-null": "raw null",
|
||||
"empty-json-body": "zero bytes with Content-Type application/json",
|
||||
"form-scalar-then-array": "grant_type=bogus&grant_type[]=client_credentials",
|
||||
"form-array-then-scalar": "grant_type[]=client_credentials&grant_type=bogus",
|
||||
"top-json-number": "raw 42",
|
||||
"top-json-nonempty-array": "raw [\"bogus\"]",
|
||||
"body-client-id-u2003": "valid fixture client ID surrounded by U+2003 in a form field",
|
||||
"basic-client-id-u2003": "valid fixture client ID surrounded by U+2003 in HTTP Basic username",
|
||||
"body-client-secret-u2003": "valid fixture client secret surrounded by U+2003 in a form field"
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,188 @@
|
||||
{
|
||||
"upstream_commit": "3516c776a1fcbd83d234efc007e3a49807d6ed91",
|
||||
"php": "8.4.27",
|
||||
"results": [
|
||||
{
|
||||
"case": "malformed-json",
|
||||
"status": 400,
|
||||
"headers": {
|
||||
"Content-Type": "application/json",
|
||||
"Cache-Control": "no-cache, private",
|
||||
"Pragma": null,
|
||||
"WWW-Authenticate": null,
|
||||
"X-RateLimit-Limit": "60",
|
||||
"X-RateLimit-Remaining": "59"
|
||||
},
|
||||
"body": {
|
||||
"message": "Bad request."
|
||||
}
|
||||
},
|
||||
{
|
||||
"case": "top-json-array",
|
||||
"status": 400,
|
||||
"headers": {
|
||||
"Content-Type": "application/json",
|
||||
"Cache-Control": "no-cache, private",
|
||||
"Pragma": null,
|
||||
"WWW-Authenticate": null,
|
||||
"X-RateLimit-Limit": "60",
|
||||
"X-RateLimit-Remaining": "58"
|
||||
},
|
||||
"body": {
|
||||
"error": "unsupported_grant_type",
|
||||
"error_description": "The authorization grant type is not supported by the authorization server.",
|
||||
"hint": "Check that all required parameters have been provided"
|
||||
}
|
||||
},
|
||||
{
|
||||
"case": "top-json-null",
|
||||
"status": 400,
|
||||
"headers": {
|
||||
"Content-Type": "application/json",
|
||||
"Cache-Control": "no-cache, private",
|
||||
"Pragma": null,
|
||||
"WWW-Authenticate": null,
|
||||
"X-RateLimit-Limit": "60",
|
||||
"X-RateLimit-Remaining": "57"
|
||||
},
|
||||
"body": {
|
||||
"message": "Bad request."
|
||||
}
|
||||
},
|
||||
{
|
||||
"case": "empty-json-body",
|
||||
"status": 400,
|
||||
"headers": {
|
||||
"Content-Type": "application/json",
|
||||
"Cache-Control": "no-cache, private",
|
||||
"Pragma": null,
|
||||
"WWW-Authenticate": null,
|
||||
"X-RateLimit-Limit": "60",
|
||||
"X-RateLimit-Remaining": "56"
|
||||
},
|
||||
"body": {
|
||||
"error": "unsupported_grant_type",
|
||||
"error_description": "The authorization grant type is not supported by the authorization server.",
|
||||
"hint": "Check that all required parameters have been provided"
|
||||
}
|
||||
},
|
||||
{
|
||||
"case": "form-scalar-then-array",
|
||||
"status": 400,
|
||||
"headers": {
|
||||
"Content-Type": "application/json",
|
||||
"Cache-Control": "no-cache, private",
|
||||
"Pragma": null,
|
||||
"WWW-Authenticate": null,
|
||||
"X-RateLimit-Limit": "60",
|
||||
"X-RateLimit-Remaining": "55"
|
||||
},
|
||||
"body": {
|
||||
"error": "unsupported_grant_type",
|
||||
"error_description": "The authorization grant type is not supported by the authorization server.",
|
||||
"hint": "Check that all required parameters have been provided"
|
||||
}
|
||||
},
|
||||
{
|
||||
"case": "form-array-then-scalar",
|
||||
"status": 400,
|
||||
"headers": {
|
||||
"Content-Type": "application/json",
|
||||
"Cache-Control": "no-cache, private",
|
||||
"Pragma": null,
|
||||
"WWW-Authenticate": null,
|
||||
"X-RateLimit-Limit": "60",
|
||||
"X-RateLimit-Remaining": "54"
|
||||
},
|
||||
"body": {
|
||||
"error": "unsupported_grant_type",
|
||||
"error_description": "The authorization grant type is not supported by the authorization server.",
|
||||
"hint": "Check that all required parameters have been provided"
|
||||
}
|
||||
},
|
||||
{
|
||||
"case": "top-json-number",
|
||||
"status": 400,
|
||||
"headers": {
|
||||
"Content-Type": "application/json",
|
||||
"Cache-Control": "no-cache, private",
|
||||
"Pragma": null,
|
||||
"WWW-Authenticate": null,
|
||||
"X-RateLimit-Limit": "60",
|
||||
"X-RateLimit-Remaining": "53"
|
||||
},
|
||||
"body": {
|
||||
"error": "unsupported_grant_type",
|
||||
"error_description": "The authorization grant type is not supported by the authorization server.",
|
||||
"hint": "Check that all required parameters have been provided"
|
||||
}
|
||||
},
|
||||
{
|
||||
"case": "top-json-nonempty-array",
|
||||
"status": 400,
|
||||
"headers": {
|
||||
"Content-Type": "application/json",
|
||||
"Cache-Control": "no-cache, private",
|
||||
"Pragma": null,
|
||||
"WWW-Authenticate": null,
|
||||
"X-RateLimit-Limit": "60",
|
||||
"X-RateLimit-Remaining": "52"
|
||||
},
|
||||
"body": {
|
||||
"error": "unsupported_grant_type",
|
||||
"error_description": "The authorization grant type is not supported by the authorization server.",
|
||||
"hint": "Check that all required parameters have been provided"
|
||||
}
|
||||
},
|
||||
{
|
||||
"case": "body-client-id-u2003",
|
||||
"status": 200,
|
||||
"headers": {
|
||||
"Content-Type": "application/json; charset=UTF-8",
|
||||
"Cache-Control": "no-store, private",
|
||||
"Pragma": "no-cache",
|
||||
"WWW-Authenticate": null,
|
||||
"X-RateLimit-Limit": "60",
|
||||
"X-RateLimit-Remaining": "51"
|
||||
},
|
||||
"body": {
|
||||
"token_type": "Bearer",
|
||||
"expires_in": 31536000,
|
||||
"access_token_present": true
|
||||
}
|
||||
},
|
||||
{
|
||||
"case": "basic-client-id-u2003",
|
||||
"status": 401,
|
||||
"headers": {
|
||||
"Content-Type": "application/json",
|
||||
"Cache-Control": "no-cache, private",
|
||||
"Pragma": null,
|
||||
"WWW-Authenticate": "Basic realm=\"OAuth\"",
|
||||
"X-RateLimit-Limit": "60",
|
||||
"X-RateLimit-Remaining": "50"
|
||||
},
|
||||
"body": {
|
||||
"error": "invalid_client",
|
||||
"error_description": "Client authentication failed"
|
||||
}
|
||||
},
|
||||
{
|
||||
"case": "body-client-secret-u2003",
|
||||
"status": 200,
|
||||
"headers": {
|
||||
"Content-Type": "application/json; charset=UTF-8",
|
||||
"Cache-Control": "no-store, private",
|
||||
"Pragma": "no-cache",
|
||||
"WWW-Authenticate": null,
|
||||
"X-RateLimit-Limit": "60",
|
||||
"X-RateLimit-Remaining": "49"
|
||||
},
|
||||
"body": {
|
||||
"token_type": "Bearer",
|
||||
"expires_in": 31536000,
|
||||
"access_token_present": true
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
@@ -0,0 +1,502 @@
|
||||
{
|
||||
"php": "8.4.27",
|
||||
"framework": "Laravel13.29.0/Passport13.7.6",
|
||||
"request_format": "application/x-www-form-urlencoded",
|
||||
"environment": "fresh disposable SQLite migrations and client-credentials fixture",
|
||||
"results": [
|
||||
{
|
||||
"case": "missing-grant-type",
|
||||
"status": 400,
|
||||
"headers": {
|
||||
"Content-Type": "application/json",
|
||||
"Cache-Control": "no-cache, private",
|
||||
"Pragma": null,
|
||||
"WWW-Authenticate": null,
|
||||
"Access-Control-Allow-Origin": null,
|
||||
"X-RateLimit-Limit": "60",
|
||||
"X-RateLimit-Remaining": "59",
|
||||
"Retry-After": null
|
||||
},
|
||||
"body": {
|
||||
"error": "unsupported_grant_type",
|
||||
"error_description": "The authorization grant type is not supported by the authorization server.",
|
||||
"hint": "Check that all required parameters have been provided"
|
||||
}
|
||||
},
|
||||
{
|
||||
"case": "unsupported-grant",
|
||||
"status": 400,
|
||||
"headers": {
|
||||
"Content-Type": "application/json",
|
||||
"Cache-Control": "no-cache, private",
|
||||
"Pragma": null,
|
||||
"WWW-Authenticate": null,
|
||||
"Access-Control-Allow-Origin": null,
|
||||
"X-RateLimit-Limit": "60",
|
||||
"X-RateLimit-Remaining": "58",
|
||||
"Retry-After": null
|
||||
},
|
||||
"body": {
|
||||
"error": "unsupported_grant_type",
|
||||
"error_description": "The authorization grant type is not supported by the authorization server.",
|
||||
"hint": "Check that all required parameters have been provided"
|
||||
}
|
||||
},
|
||||
{
|
||||
"case": "client-credentials-missing-client-id",
|
||||
"status": 400,
|
||||
"headers": {
|
||||
"Content-Type": "application/json",
|
||||
"Cache-Control": "no-cache, private",
|
||||
"Pragma": null,
|
||||
"WWW-Authenticate": null,
|
||||
"Access-Control-Allow-Origin": null,
|
||||
"X-RateLimit-Limit": "60",
|
||||
"X-RateLimit-Remaining": "57",
|
||||
"Retry-After": null
|
||||
},
|
||||
"body": {
|
||||
"error": "invalid_request",
|
||||
"error_description": "The request is missing a required parameter, includes an invalid parameter value, includes a parameter more than once, or is otherwise malformed.",
|
||||
"hint": "Check the `client_id` parameter"
|
||||
}
|
||||
},
|
||||
{
|
||||
"case": "unknown-client",
|
||||
"status": 401,
|
||||
"headers": {
|
||||
"Content-Type": "application/json",
|
||||
"Cache-Control": "no-cache, private",
|
||||
"Pragma": null,
|
||||
"WWW-Authenticate": null,
|
||||
"Access-Control-Allow-Origin": null,
|
||||
"X-RateLimit-Limit": "60",
|
||||
"X-RateLimit-Remaining": "56",
|
||||
"Retry-After": null
|
||||
},
|
||||
"body": {
|
||||
"error": "invalid_client",
|
||||
"error_description": "Client authentication failed"
|
||||
}
|
||||
},
|
||||
{
|
||||
"case": "wrong-client-secret",
|
||||
"status": 401,
|
||||
"headers": {
|
||||
"Content-Type": "application/json",
|
||||
"Cache-Control": "no-cache, private",
|
||||
"Pragma": null,
|
||||
"WWW-Authenticate": null,
|
||||
"Access-Control-Allow-Origin": null,
|
||||
"X-RateLimit-Limit": "60",
|
||||
"X-RateLimit-Remaining": "55",
|
||||
"Retry-After": null
|
||||
},
|
||||
"body": {
|
||||
"error": "invalid_client",
|
||||
"error_description": "Client authentication failed"
|
||||
}
|
||||
},
|
||||
{
|
||||
"case": "unknown-scope",
|
||||
"status": 400,
|
||||
"headers": {
|
||||
"Content-Type": "application/json",
|
||||
"Cache-Control": "no-cache, private",
|
||||
"Pragma": null,
|
||||
"WWW-Authenticate": null,
|
||||
"Access-Control-Allow-Origin": null,
|
||||
"X-RateLimit-Limit": "60",
|
||||
"X-RateLimit-Remaining": "54",
|
||||
"Retry-After": null
|
||||
},
|
||||
"body": {
|
||||
"error": "invalid_scope",
|
||||
"error_description": "The requested scope is invalid, unknown, or malformed",
|
||||
"hint": "Check the `__compat_unknown_scope__` scope"
|
||||
}
|
||||
},
|
||||
{
|
||||
"case": "valid-control",
|
||||
"status": 200,
|
||||
"headers": {
|
||||
"Content-Type": "application/json; charset=UTF-8",
|
||||
"Cache-Control": "no-store, private",
|
||||
"Pragma": "no-cache",
|
||||
"WWW-Authenticate": null,
|
||||
"Access-Control-Allow-Origin": null,
|
||||
"X-RateLimit-Limit": "60",
|
||||
"X-RateLimit-Remaining": "53",
|
||||
"Retry-After": null
|
||||
},
|
||||
"body": {
|
||||
"token_type": "Bearer",
|
||||
"expires_in": 31536000,
|
||||
"access_token_present": true,
|
||||
"refresh_token_present": false
|
||||
}
|
||||
},
|
||||
{
|
||||
"case": "confidential-missing-secret",
|
||||
"status": 400,
|
||||
"headers": {
|
||||
"Content-Type": "application/json",
|
||||
"Cache-Control": "no-cache, private",
|
||||
"Pragma": null,
|
||||
"WWW-Authenticate": null,
|
||||
"Access-Control-Allow-Origin": null,
|
||||
"X-RateLimit-Limit": "60",
|
||||
"X-RateLimit-Remaining": "52",
|
||||
"Retry-After": null
|
||||
},
|
||||
"body": {
|
||||
"error": "invalid_request",
|
||||
"error_description": "The request is missing a required parameter, includes an invalid parameter value, includes a parameter more than once, or is otherwise malformed.",
|
||||
"hint": "Check the `client_secret` parameter"
|
||||
}
|
||||
},
|
||||
{
|
||||
"case": "unauthorized-grant-valid-client",
|
||||
"status": 400,
|
||||
"headers": {
|
||||
"Content-Type": "application/json",
|
||||
"Cache-Control": "no-cache, private",
|
||||
"Pragma": null,
|
||||
"WWW-Authenticate": null,
|
||||
"Access-Control-Allow-Origin": null,
|
||||
"X-RateLimit-Limit": "60",
|
||||
"X-RateLimit-Remaining": "51",
|
||||
"Retry-After": null
|
||||
},
|
||||
"body": {
|
||||
"error": "unauthorized_client",
|
||||
"error_description": "The authenticated client is not authorized to use this authorization grant type."
|
||||
}
|
||||
},
|
||||
{
|
||||
"case": "auth-code-missing-code",
|
||||
"status": 400,
|
||||
"headers": {
|
||||
"Content-Type": "application/json",
|
||||
"Cache-Control": "no-cache, private",
|
||||
"Pragma": null,
|
||||
"WWW-Authenticate": null,
|
||||
"Access-Control-Allow-Origin": null,
|
||||
"X-RateLimit-Limit": "60",
|
||||
"X-RateLimit-Remaining": "50",
|
||||
"Retry-After": null
|
||||
},
|
||||
"body": {
|
||||
"error": "invalid_request",
|
||||
"error_description": "The request is missing a required parameter, includes an invalid parameter value, includes a parameter more than once, or is otherwise malformed.",
|
||||
"hint": "Check the `code` parameter"
|
||||
}
|
||||
},
|
||||
{
|
||||
"case": "refresh-missing-token",
|
||||
"status": 400,
|
||||
"headers": {
|
||||
"Content-Type": "application/json",
|
||||
"Cache-Control": "no-cache, private",
|
||||
"Pragma": null,
|
||||
"WWW-Authenticate": null,
|
||||
"Access-Control-Allow-Origin": null,
|
||||
"X-RateLimit-Limit": "60",
|
||||
"X-RateLimit-Remaining": "49",
|
||||
"Retry-After": null
|
||||
},
|
||||
"body": {
|
||||
"error": "invalid_request",
|
||||
"error_description": "The request is missing a required parameter, includes an invalid parameter value, includes a parameter more than once, or is otherwise malformed.",
|
||||
"hint": "Check the `refresh_token` parameter"
|
||||
}
|
||||
},
|
||||
{
|
||||
"case": "auth-code-invalid-ciphertext",
|
||||
"status": 400,
|
||||
"headers": {
|
||||
"Content-Type": "application/json",
|
||||
"Cache-Control": "no-cache, private",
|
||||
"Pragma": null,
|
||||
"WWW-Authenticate": null,
|
||||
"Access-Control-Allow-Origin": null,
|
||||
"X-RateLimit-Limit": "60",
|
||||
"X-RateLimit-Remaining": "48",
|
||||
"Retry-After": null
|
||||
},
|
||||
"body": {
|
||||
"error": "invalid_grant",
|
||||
"error_description": "The provided authorization grant (e.g., authorization code, resource owner credentials) or refresh token is invalid, expired, revoked, does not match the redirection URI used in the authorization request, or was issued to another client.",
|
||||
"hint": "Cannot validate the provided authorization code"
|
||||
}
|
||||
},
|
||||
{
|
||||
"case": "refresh-invalid-ciphertext",
|
||||
"status": 400,
|
||||
"headers": {
|
||||
"Content-Type": "application/json",
|
||||
"Cache-Control": "no-cache, private",
|
||||
"Pragma": null,
|
||||
"WWW-Authenticate": null,
|
||||
"Access-Control-Allow-Origin": null,
|
||||
"X-RateLimit-Limit": "60",
|
||||
"X-RateLimit-Remaining": "47",
|
||||
"Retry-After": null
|
||||
},
|
||||
"body": {
|
||||
"error": "invalid_grant",
|
||||
"error_description": "The refresh token is invalid.",
|
||||
"hint": "Cannot decrypt the refresh token"
|
||||
}
|
||||
},
|
||||
{
|
||||
"case": "auth-code-malformed-payload",
|
||||
"status": 400,
|
||||
"headers": {
|
||||
"Content-Type": "application/json",
|
||||
"Cache-Control": "no-cache, private",
|
||||
"Pragma": null,
|
||||
"WWW-Authenticate": null,
|
||||
"Access-Control-Allow-Origin": null,
|
||||
"X-RateLimit-Limit": "60",
|
||||
"X-RateLimit-Remaining": "46",
|
||||
"Retry-After": null
|
||||
},
|
||||
"body": {
|
||||
"error": "invalid_request",
|
||||
"error_description": "The request is missing a required parameter, includes an invalid parameter value, includes a parameter more than once, or is otherwise malformed.",
|
||||
"hint": "Authorization code malformed"
|
||||
}
|
||||
},
|
||||
{
|
||||
"case": "auth-code-expired",
|
||||
"status": 400,
|
||||
"headers": {
|
||||
"Content-Type": "application/json",
|
||||
"Cache-Control": "no-cache, private",
|
||||
"Pragma": null,
|
||||
"WWW-Authenticate": null,
|
||||
"Access-Control-Allow-Origin": null,
|
||||
"X-RateLimit-Limit": "60",
|
||||
"X-RateLimit-Remaining": "45",
|
||||
"Retry-After": null
|
||||
},
|
||||
"body": {
|
||||
"error": "invalid_grant",
|
||||
"error_description": "The provided authorization grant (e.g., authorization code, resource owner credentials) or refresh token is invalid, expired, revoked, does not match the redirection URI used in the authorization request, or was issued to another client.",
|
||||
"hint": "Authorization code has expired"
|
||||
}
|
||||
},
|
||||
{
|
||||
"case": "auth-code-revoked",
|
||||
"status": 400,
|
||||
"headers": {
|
||||
"Content-Type": "application/json",
|
||||
"Cache-Control": "no-cache, private",
|
||||
"Pragma": null,
|
||||
"WWW-Authenticate": null,
|
||||
"Access-Control-Allow-Origin": null,
|
||||
"X-RateLimit-Limit": "60",
|
||||
"X-RateLimit-Remaining": "44",
|
||||
"Retry-After": null
|
||||
},
|
||||
"body": {
|
||||
"error": "invalid_grant",
|
||||
"error_description": "The provided authorization grant (e.g., authorization code, resource owner credentials) or refresh token is invalid, expired, revoked, does not match the redirection URI used in the authorization request, or was issued to another client.",
|
||||
"hint": "Authorization code has been revoked"
|
||||
}
|
||||
},
|
||||
{
|
||||
"case": "auth-code-wrong-client",
|
||||
"status": 400,
|
||||
"headers": {
|
||||
"Content-Type": "application/json",
|
||||
"Cache-Control": "no-cache, private",
|
||||
"Pragma": null,
|
||||
"WWW-Authenticate": null,
|
||||
"Access-Control-Allow-Origin": null,
|
||||
"X-RateLimit-Limit": "60",
|
||||
"X-RateLimit-Remaining": "43",
|
||||
"Retry-After": null
|
||||
},
|
||||
"body": {
|
||||
"error": "invalid_request",
|
||||
"error_description": "The request is missing a required parameter, includes an invalid parameter value, includes a parameter more than once, or is otherwise malformed.",
|
||||
"hint": "Authorization code was not issued to this client"
|
||||
}
|
||||
},
|
||||
{
|
||||
"case": "auth-code-missing-redirect",
|
||||
"status": 400,
|
||||
"headers": {
|
||||
"Content-Type": "application/json",
|
||||
"Cache-Control": "no-cache, private",
|
||||
"Pragma": null,
|
||||
"WWW-Authenticate": null,
|
||||
"Access-Control-Allow-Origin": null,
|
||||
"X-RateLimit-Limit": "60",
|
||||
"X-RateLimit-Remaining": "42",
|
||||
"Retry-After": null
|
||||
},
|
||||
"body": {
|
||||
"error": "invalid_request",
|
||||
"error_description": "The request is missing a required parameter, includes an invalid parameter value, includes a parameter more than once, or is otherwise malformed.",
|
||||
"hint": "Check the `redirect_uri` parameter"
|
||||
}
|
||||
},
|
||||
{
|
||||
"case": "auth-code-wrong-redirect",
|
||||
"status": 400,
|
||||
"headers": {
|
||||
"Content-Type": "application/json",
|
||||
"Cache-Control": "no-cache, private",
|
||||
"Pragma": null,
|
||||
"WWW-Authenticate": null,
|
||||
"Access-Control-Allow-Origin": null,
|
||||
"X-RateLimit-Limit": "60",
|
||||
"X-RateLimit-Remaining": "41",
|
||||
"Retry-After": null
|
||||
},
|
||||
"body": {
|
||||
"error": "invalid_request",
|
||||
"error_description": "The request is missing a required parameter, includes an invalid parameter value, includes a parameter more than once, or is otherwise malformed.",
|
||||
"hint": "Invalid redirect URI"
|
||||
}
|
||||
},
|
||||
{
|
||||
"case": "pkce-missing-verifier",
|
||||
"status": 400,
|
||||
"headers": {
|
||||
"Content-Type": "application/json",
|
||||
"Cache-Control": "no-cache, private",
|
||||
"Pragma": null,
|
||||
"WWW-Authenticate": null,
|
||||
"Access-Control-Allow-Origin": null,
|
||||
"X-RateLimit-Limit": "60",
|
||||
"X-RateLimit-Remaining": "40",
|
||||
"Retry-After": null
|
||||
},
|
||||
"body": {
|
||||
"error": "invalid_request",
|
||||
"error_description": "The request is missing a required parameter, includes an invalid parameter value, includes a parameter more than once, or is otherwise malformed.",
|
||||
"hint": "Check the `code_verifier` parameter"
|
||||
}
|
||||
},
|
||||
{
|
||||
"case": "pkce-invalid-syntax",
|
||||
"status": 400,
|
||||
"headers": {
|
||||
"Content-Type": "application/json",
|
||||
"Cache-Control": "no-cache, private",
|
||||
"Pragma": null,
|
||||
"WWW-Authenticate": null,
|
||||
"Access-Control-Allow-Origin": null,
|
||||
"X-RateLimit-Limit": "60",
|
||||
"X-RateLimit-Remaining": "39",
|
||||
"Retry-After": null
|
||||
},
|
||||
"body": {
|
||||
"error": "invalid_request",
|
||||
"error_description": "The request is missing a required parameter, includes an invalid parameter value, includes a parameter more than once, or is otherwise malformed.",
|
||||
"hint": "Code Verifier must follow the specifications of RFC-7636."
|
||||
}
|
||||
},
|
||||
{
|
||||
"case": "pkce-mismatch",
|
||||
"status": 400,
|
||||
"headers": {
|
||||
"Content-Type": "application/json",
|
||||
"Cache-Control": "no-cache, private",
|
||||
"Pragma": null,
|
||||
"WWW-Authenticate": null,
|
||||
"Access-Control-Allow-Origin": null,
|
||||
"X-RateLimit-Limit": "60",
|
||||
"X-RateLimit-Remaining": "38",
|
||||
"Retry-After": null
|
||||
},
|
||||
"body": {
|
||||
"error": "invalid_grant",
|
||||
"error_description": "The provided authorization grant (e.g., authorization code, resource owner credentials) or refresh token is invalid, expired, revoked, does not match the redirection URI used in the authorization request, or was issued to another client.",
|
||||
"hint": "Failed to verify `code_verifier`."
|
||||
}
|
||||
},
|
||||
{
|
||||
"case": "pkce-downgrade",
|
||||
"status": 400,
|
||||
"headers": {
|
||||
"Content-Type": "application/json",
|
||||
"Cache-Control": "no-cache, private",
|
||||
"Pragma": null,
|
||||
"WWW-Authenticate": null,
|
||||
"Access-Control-Allow-Origin": null,
|
||||
"X-RateLimit-Limit": "60",
|
||||
"X-RateLimit-Remaining": "37",
|
||||
"Retry-After": null
|
||||
},
|
||||
"body": {
|
||||
"error": "invalid_request",
|
||||
"error_description": "The request is missing a required parameter, includes an invalid parameter value, includes a parameter more than once, or is otherwise malformed.",
|
||||
"hint": "code_verifier received when no code_challenge is present"
|
||||
}
|
||||
},
|
||||
{
|
||||
"case": "wrong-basic-secret",
|
||||
"status": 401,
|
||||
"headers": {
|
||||
"Content-Type": "application/json",
|
||||
"Cache-Control": "no-cache, private",
|
||||
"Pragma": null,
|
||||
"WWW-Authenticate": "Basic realm=\"OAuth\"",
|
||||
"Access-Control-Allow-Origin": null,
|
||||
"X-RateLimit-Limit": "60",
|
||||
"X-RateLimit-Remaining": "36",
|
||||
"Retry-After": null
|
||||
},
|
||||
"body": {
|
||||
"error": "invalid_client",
|
||||
"error_description": "Client authentication failed"
|
||||
}
|
||||
},
|
||||
{
|
||||
"case": "json-unsupported-grant",
|
||||
"status": 400,
|
||||
"headers": {
|
||||
"Content-Type": "application/json",
|
||||
"Cache-Control": "no-cache, private",
|
||||
"Pragma": null,
|
||||
"WWW-Authenticate": null,
|
||||
"Access-Control-Allow-Origin": null,
|
||||
"X-RateLimit-Limit": "60",
|
||||
"X-RateLimit-Remaining": "35",
|
||||
"Retry-After": null
|
||||
},
|
||||
"body": {
|
||||
"error": "unsupported_grant_type",
|
||||
"error_description": "The authorization grant type is not supported by the authorization server.",
|
||||
"hint": "Check that all required parameters have been provided"
|
||||
}
|
||||
},
|
||||
{
|
||||
"case": "json-valid-control",
|
||||
"status": 200,
|
||||
"headers": {
|
||||
"Content-Type": "application/json; charset=UTF-8",
|
||||
"Cache-Control": "no-store, private",
|
||||
"Pragma": "no-cache",
|
||||
"WWW-Authenticate": null,
|
||||
"Access-Control-Allow-Origin": null,
|
||||
"X-RateLimit-Limit": "60",
|
||||
"X-RateLimit-Remaining": "34",
|
||||
"Retry-After": null
|
||||
},
|
||||
"body": {
|
||||
"token_type": "Bearer",
|
||||
"expires_in": 31536000,
|
||||
"access_token_present": true,
|
||||
"refresh_token_present": false
|
||||
}
|
||||
}
|
||||
],
|
||||
"upstream_commit": "3516c776a1fcbd83d234efc007e3a49807d6ed91",
|
||||
"composer_lock_sha256": "b1376d21c517d700bc48b196e9dc2b30257caf25774e315ff9d1bf8a2411241a"
|
||||
}
|
||||
@@ -0,0 +1,23 @@
|
||||
{
|
||||
"version": "0.3.0",
|
||||
"candidate_sha256": "0e03e978721bf4fcfc65e18e4a98f47b26b71a151c792b380d18996ae467813d",
|
||||
"reference_php": "8.4.27",
|
||||
"database_modes": [
|
||||
"native",
|
||||
"laravel-copy"
|
||||
],
|
||||
"checks": {
|
||||
"php_bearer": 200,
|
||||
"php_cookie": 200,
|
||||
"cookie_missing_csrf": 401,
|
||||
"tampered_bearer": 401,
|
||||
"php_browser_bootstrap": 200,
|
||||
"legacy_cookie_cleared": true,
|
||||
"upgraded_browser_api": 200,
|
||||
"upgraded_browser_logout": 200,
|
||||
"browser_api_after_logout": 401,
|
||||
"php_validated_rust_bearer": true,
|
||||
"revoked_php_bearer": 401
|
||||
},
|
||||
"passed": true
|
||||
}
|
||||
@@ -0,0 +1,562 @@
|
||||
{
|
||||
"recorded_at_utc": "2026-10-27T02:52:00.131691+00:00",
|
||||
"reference": {
|
||||
"upstream_commit": "3516c776a1fcbd83d234efc007e3a49807d6ed91",
|
||||
"php": "8.4.27",
|
||||
"laravel": "13.29.0",
|
||||
"composer_lock_sha256": "b1376d21c517d700bc48b196e9dc2b30257caf25774e315ff9d1bf8a2411241a",
|
||||
"database": "fresh disposable SQLite, all 42 migrations completed; independent temporary application storage",
|
||||
"production_dependencies": 110,
|
||||
"required_extensions_loaded": true,
|
||||
"composer_dependencies_total_with_dev": 153,
|
||||
"materialized_sqlite_ddl": "sqlite-reference-schema.sql",
|
||||
"tables": 22,
|
||||
"explicit_indexes": 34
|
||||
},
|
||||
"candidate": {
|
||||
"artifact": "preexisting target/release/twofauth-rs, predates current source changes",
|
||||
"sha256": "e3d2f4435197bad611e2150c128b0edfcf97ce90d61156a430e948f1461438ba"
|
||||
},
|
||||
"limits": [
|
||||
"This is a limited differential result, not replacement certification.",
|
||||
"Random CSRF output and cookie protocols are not normalized.",
|
||||
"Only synthetic fixture data was used.",
|
||||
"Body IDs ignored only for account create/read as specified in cases.stateful.json.",
|
||||
"State effects checked through API readback, not SQL table comparison.",
|
||||
"New source changes must be rebuilt and compared again."
|
||||
],
|
||||
"results": {
|
||||
"default": {
|
||||
"exit_code": 1,
|
||||
"cases": [
|
||||
{
|
||||
"case": 0,
|
||||
"result": "different",
|
||||
"reference_status": 200,
|
||||
"candidate_status": 200,
|
||||
"checks": {
|
||||
"status": true,
|
||||
"content_type": false,
|
||||
"body": false
|
||||
}
|
||||
},
|
||||
{
|
||||
"case": 1,
|
||||
"result": "different",
|
||||
"reference_status": 200,
|
||||
"candidate_status": 200,
|
||||
"checks": {
|
||||
"status": true,
|
||||
"content_type": true,
|
||||
"body": false
|
||||
}
|
||||
},
|
||||
{
|
||||
"case": 2,
|
||||
"result": "different",
|
||||
"reference_status": 200,
|
||||
"candidate_status": 404,
|
||||
"checks": {
|
||||
"status": false,
|
||||
"content_type": true,
|
||||
"body": false
|
||||
}
|
||||
},
|
||||
{
|
||||
"case": 3,
|
||||
"result": "different",
|
||||
"reference_status": 404,
|
||||
"candidate_status": 404,
|
||||
"checks": {
|
||||
"status": true,
|
||||
"content_type": true,
|
||||
"body": false
|
||||
}
|
||||
}
|
||||
]
|
||||
},
|
||||
"stateful": {
|
||||
"exit_code": 1,
|
||||
"cases": [
|
||||
{
|
||||
"case": 0,
|
||||
"result": "different",
|
||||
"reference_status": 200,
|
||||
"candidate_status": 200,
|
||||
"checks": {
|
||||
"status": true,
|
||||
"content_type": false,
|
||||
"body": false,
|
||||
"expected_status": true
|
||||
}
|
||||
},
|
||||
{
|
||||
"case": 1,
|
||||
"result": "different",
|
||||
"reference_status": 200,
|
||||
"candidate_status": 200,
|
||||
"checks": {
|
||||
"status": true,
|
||||
"content_type": true,
|
||||
"body": false,
|
||||
"expected_status": true
|
||||
}
|
||||
},
|
||||
{
|
||||
"case": 2,
|
||||
"result": "equal",
|
||||
"reference_status": 200,
|
||||
"candidate_status": 200,
|
||||
"checks": {
|
||||
"status": true,
|
||||
"content_type": true,
|
||||
"body": true,
|
||||
"expected_status": true
|
||||
}
|
||||
},
|
||||
{
|
||||
"case": 3,
|
||||
"result": "equal",
|
||||
"reference_status": 201,
|
||||
"candidate_status": 201,
|
||||
"checks": {
|
||||
"status": true,
|
||||
"content_type": true,
|
||||
"body": true,
|
||||
"expected_status": true
|
||||
}
|
||||
},
|
||||
{
|
||||
"case": 4,
|
||||
"result": "equal",
|
||||
"reference_status": 200,
|
||||
"candidate_status": 200,
|
||||
"checks": {
|
||||
"status": true,
|
||||
"content_type": true,
|
||||
"body": true,
|
||||
"expected_status": true
|
||||
}
|
||||
},
|
||||
{
|
||||
"case": 5,
|
||||
"result": "equal",
|
||||
"reference_status": 200,
|
||||
"candidate_status": 200,
|
||||
"checks": {
|
||||
"status": true,
|
||||
"content_type": true,
|
||||
"body": true,
|
||||
"expected_status": true
|
||||
}
|
||||
},
|
||||
{
|
||||
"case": 6,
|
||||
"result": "equal",
|
||||
"reference_status": 200,
|
||||
"candidate_status": 200,
|
||||
"checks": {
|
||||
"status": true,
|
||||
"content_type": true,
|
||||
"body": true,
|
||||
"expected_status": true
|
||||
}
|
||||
},
|
||||
{
|
||||
"case": 7,
|
||||
"result": "equal",
|
||||
"reference_status": 200,
|
||||
"candidate_status": 200,
|
||||
"checks": {
|
||||
"status": true,
|
||||
"content_type": true,
|
||||
"body": true,
|
||||
"expected_status": true
|
||||
}
|
||||
},
|
||||
{
|
||||
"case": 8,
|
||||
"result": "equal",
|
||||
"reference_status": 204,
|
||||
"candidate_status": 204,
|
||||
"checks": {
|
||||
"status": true,
|
||||
"content_type": true,
|
||||
"body": true,
|
||||
"expected_status": true
|
||||
}
|
||||
},
|
||||
{
|
||||
"case": 9,
|
||||
"result": "different",
|
||||
"reference_status": 404,
|
||||
"candidate_status": 404,
|
||||
"checks": {
|
||||
"status": true,
|
||||
"content_type": true,
|
||||
"body": false,
|
||||
"expected_status": true
|
||||
}
|
||||
},
|
||||
{
|
||||
"case": 10,
|
||||
"result": "equal",
|
||||
"reference_status": 200,
|
||||
"candidate_status": 200,
|
||||
"checks": {
|
||||
"status": true,
|
||||
"content_type": true,
|
||||
"body": true,
|
||||
"expected_status": true
|
||||
}
|
||||
},
|
||||
{
|
||||
"case": 11,
|
||||
"result": "different",
|
||||
"reference_status": 401,
|
||||
"candidate_status": 401,
|
||||
"checks": {
|
||||
"status": true,
|
||||
"content_type": true,
|
||||
"body": false,
|
||||
"expected_status": true
|
||||
}
|
||||
}
|
||||
]
|
||||
},
|
||||
"extended": {
|
||||
"exit_code": 1,
|
||||
"cases": [
|
||||
{
|
||||
"case": 0,
|
||||
"result": "different",
|
||||
"reference_status": 200,
|
||||
"candidate_status": 200,
|
||||
"checks": {
|
||||
"status": true,
|
||||
"content_type": false,
|
||||
"body": false,
|
||||
"expected_status": true
|
||||
}
|
||||
},
|
||||
{
|
||||
"case": 1,
|
||||
"result": "different",
|
||||
"reference_status": 200,
|
||||
"candidate_status": 200,
|
||||
"checks": {
|
||||
"status": true,
|
||||
"content_type": true,
|
||||
"body": false,
|
||||
"expected_status": true
|
||||
}
|
||||
},
|
||||
{
|
||||
"case": 2,
|
||||
"result": "equal",
|
||||
"reference_status": 200,
|
||||
"candidate_status": 200,
|
||||
"checks": {
|
||||
"status": true,
|
||||
"content_type": true,
|
||||
"body": true,
|
||||
"expected_status": true
|
||||
}
|
||||
},
|
||||
{
|
||||
"case": 3,
|
||||
"result": "equal",
|
||||
"reference_status": 201,
|
||||
"candidate_status": 201,
|
||||
"checks": {
|
||||
"status": true,
|
||||
"content_type": true,
|
||||
"body": true,
|
||||
"expected_status": true
|
||||
}
|
||||
},
|
||||
{
|
||||
"case": 4,
|
||||
"result": "equal",
|
||||
"reference_status": 200,
|
||||
"candidate_status": 200,
|
||||
"checks": {
|
||||
"status": true,
|
||||
"content_type": true,
|
||||
"body": true,
|
||||
"expected_status": true
|
||||
}
|
||||
},
|
||||
{
|
||||
"case": 5,
|
||||
"result": "equal",
|
||||
"reference_status": 200,
|
||||
"candidate_status": 200,
|
||||
"checks": {
|
||||
"status": true,
|
||||
"content_type": true,
|
||||
"body": true,
|
||||
"expected_status": true
|
||||
}
|
||||
},
|
||||
{
|
||||
"case": 6,
|
||||
"result": "equal",
|
||||
"reference_status": 200,
|
||||
"candidate_status": 200,
|
||||
"checks": {
|
||||
"status": true,
|
||||
"content_type": true,
|
||||
"body": true,
|
||||
"expected_status": true
|
||||
}
|
||||
},
|
||||
{
|
||||
"case": 7,
|
||||
"result": "equal",
|
||||
"reference_status": 200,
|
||||
"candidate_status": 200,
|
||||
"checks": {
|
||||
"status": true,
|
||||
"content_type": true,
|
||||
"body": true,
|
||||
"expected_status": true
|
||||
}
|
||||
},
|
||||
{
|
||||
"case": 8,
|
||||
"result": "different",
|
||||
"reference_status": 201,
|
||||
"candidate_status": 201,
|
||||
"checks": {
|
||||
"status": true,
|
||||
"content_type": true,
|
||||
"body": false,
|
||||
"expected_status": true
|
||||
}
|
||||
},
|
||||
{
|
||||
"case": 9,
|
||||
"result": "equal",
|
||||
"reference_status": 200,
|
||||
"candidate_status": 200,
|
||||
"checks": {
|
||||
"status": true,
|
||||
"content_type": true,
|
||||
"body": true,
|
||||
"expected_status": true
|
||||
}
|
||||
},
|
||||
{
|
||||
"case": 10,
|
||||
"result": "equal",
|
||||
"reference_status": 204,
|
||||
"candidate_status": 204,
|
||||
"checks": {
|
||||
"status": true,
|
||||
"content_type": true,
|
||||
"body": true,
|
||||
"expected_status": true
|
||||
}
|
||||
},
|
||||
{
|
||||
"case": 11,
|
||||
"result": "different",
|
||||
"reference_status": 403,
|
||||
"candidate_status": 403,
|
||||
"checks": {
|
||||
"status": true,
|
||||
"content_type": true,
|
||||
"body": false,
|
||||
"expected_status": true
|
||||
}
|
||||
},
|
||||
{
|
||||
"case": 12,
|
||||
"result": "different",
|
||||
"reference_status": 403,
|
||||
"candidate_status": 404,
|
||||
"checks": {
|
||||
"status": false,
|
||||
"content_type": true,
|
||||
"body": false,
|
||||
"expected_status": false
|
||||
}
|
||||
},
|
||||
{
|
||||
"case": 13,
|
||||
"result": "different",
|
||||
"reference_status": 403,
|
||||
"candidate_status": 404,
|
||||
"checks": {
|
||||
"status": false,
|
||||
"content_type": true,
|
||||
"body": false,
|
||||
"expected_status": false
|
||||
}
|
||||
},
|
||||
{
|
||||
"case": 14,
|
||||
"result": "different",
|
||||
"reference_status": 200,
|
||||
"candidate_status": 404,
|
||||
"checks": {
|
||||
"status": false,
|
||||
"content_type": true,
|
||||
"body": false,
|
||||
"expected_status": false
|
||||
}
|
||||
},
|
||||
{
|
||||
"case": 15,
|
||||
"result": "different",
|
||||
"reference_status": 422,
|
||||
"candidate_status": 404,
|
||||
"checks": {
|
||||
"status": false,
|
||||
"content_type": true,
|
||||
"body": false,
|
||||
"expected_status": false
|
||||
}
|
||||
},
|
||||
{
|
||||
"case": 16,
|
||||
"result": "different",
|
||||
"reference_status": 422,
|
||||
"candidate_status": 405,
|
||||
"checks": {
|
||||
"status": false,
|
||||
"content_type": false,
|
||||
"body": false,
|
||||
"expected_status": false
|
||||
}
|
||||
},
|
||||
{
|
||||
"case": 17,
|
||||
"result": "different",
|
||||
"reference_status": 422,
|
||||
"candidate_status": 422,
|
||||
"checks": {
|
||||
"status": true,
|
||||
"content_type": true,
|
||||
"body": false,
|
||||
"expected_status": true
|
||||
}
|
||||
},
|
||||
{
|
||||
"case": 18,
|
||||
"result": "equal",
|
||||
"reference_status": 200,
|
||||
"candidate_status": 200,
|
||||
"checks": {
|
||||
"status": true,
|
||||
"content_type": true,
|
||||
"body": true,
|
||||
"expected_status": true
|
||||
}
|
||||
},
|
||||
{
|
||||
"case": 19,
|
||||
"result": "equal",
|
||||
"reference_status": 204,
|
||||
"candidate_status": 204,
|
||||
"checks": {
|
||||
"status": true,
|
||||
"content_type": true,
|
||||
"body": true,
|
||||
"expected_status": true
|
||||
}
|
||||
},
|
||||
{
|
||||
"case": 20,
|
||||
"result": "different",
|
||||
"reference_status": 404,
|
||||
"candidate_status": 404,
|
||||
"checks": {
|
||||
"status": true,
|
||||
"content_type": true,
|
||||
"body": false,
|
||||
"expected_status": true
|
||||
}
|
||||
},
|
||||
{
|
||||
"case": 21,
|
||||
"result": "equal",
|
||||
"reference_status": 200,
|
||||
"candidate_status": 200,
|
||||
"checks": {
|
||||
"status": true,
|
||||
"content_type": true,
|
||||
"body": true,
|
||||
"expected_status": true
|
||||
}
|
||||
},
|
||||
{
|
||||
"case": 22,
|
||||
"result": "different",
|
||||
"reference_status": 401,
|
||||
"candidate_status": 401,
|
||||
"checks": {
|
||||
"status": true,
|
||||
"content_type": true,
|
||||
"body": false,
|
||||
"expected_status": true
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
},
|
||||
"reproduction": "PHPRC=<php.ini path> python tools/run_reference.py --php <php executable or wrapper> --source ../upstream --candidate-binary target/release/twofauth-rs --output <result.json>",
|
||||
"upstream_suite": {
|
||||
"command": "PHPRC=<php.ini> PATH=<php runtime>:$PATH php artisan config:clear; php vendor/bin/phpunit",
|
||||
"tests": 1518,
|
||||
"assertions": 4573,
|
||||
"errors": 5,
|
||||
"failures": 2,
|
||||
"failure_details": [
|
||||
{
|
||||
"test": "Tests.Feature.Models.TwoFAccountModelTest::test_fill_with_custom_totp_uri_returns_correct_value",
|
||||
"kind": "failure",
|
||||
"message": "Tests\\Feature\\Models\\TwoFAccountModelTest::test_fill_with_custom_totp_uri_returns_correct_value"
|
||||
},
|
||||
{
|
||||
"test": "Tests.Feature.Models.TwoFAccountModelTest::test_fill_with_custom_hotp_uri_returns_correct_value",
|
||||
"kind": "failure",
|
||||
"message": "Tests\\Feature\\Models\\TwoFAccountModelTest::test_fill_with_custom_hotp_uri_returns_correct_value"
|
||||
},
|
||||
{
|
||||
"test": "Tests.Feature.Services.IconServiceTest::test_build_from_remote_image_stores_icon_and_returns_name with data set \"PNG\"",
|
||||
"kind": "error",
|
||||
"message": "Tests\\Feature\\Services\\IconServiceTest::test_build_from_remote_image_stores_icon_and_returns_name with data set \"PNG\""
|
||||
},
|
||||
{
|
||||
"test": "Tests.Feature.Services.IconServiceTest::test_build_from_remote_image_stores_icon_and_returns_name with data set \"JPEG\"",
|
||||
"kind": "error",
|
||||
"message": "Tests\\Feature\\Services\\IconServiceTest::test_build_from_remote_image_stores_icon_and_returns_name with data set \"JPEG\""
|
||||
},
|
||||
{
|
||||
"test": "Tests.Feature.Services.IconServiceTest::test_build_from_remote_image_stores_icon_and_returns_name with data set \"WEBP\"",
|
||||
"kind": "error",
|
||||
"message": "Tests\\Feature\\Services\\IconServiceTest::test_build_from_remote_image_stores_icon_and_returns_name with data set \"WEBP\""
|
||||
},
|
||||
{
|
||||
"test": "Tests.Feature.Services.IconServiceTest::test_build_from_remote_image_stores_icon_and_returns_name with data set \"BPM\"",
|
||||
"kind": "error",
|
||||
"message": "Tests\\Feature\\Services\\IconServiceTest::test_build_from_remote_image_stores_icon_and_returns_name with data set \"BPM\""
|
||||
},
|
||||
{
|
||||
"test": "Tests.Feature.Services.IconServiceTest::test_build_from_remote_image_stores_icon_and_returns_name with data set \"SVG\"",
|
||||
"kind": "error",
|
||||
"message": "Tests\\Feature\\Services\\IconServiceTest::test_build_from_remote_image_stores_icon_and_returns_name with data set \"SVG\""
|
||||
}
|
||||
],
|
||||
"limitations": [
|
||||
"All seven remaining failing cases depend on real DNS resolution before mocked HTTP. dns_get_record returned false with a temporary server error for the image hosts.",
|
||||
"No upstream source was patched to suppress those failures."
|
||||
]
|
||||
},
|
||||
"crypto": {
|
||||
"php_openssl": "6/6 fixtures passed",
|
||||
"laravel_encrypter": "Laravel 13.29.0 Encrypter::decryptString accepted 6/6 independent Python envelopes"
|
||||
}
|
||||
}
|
||||
File diff suppressed because it is too large.
Load diff
File diff suppressed because it is too large.
Load diff
@@ -0,0 +1,100 @@
|
||||
{
|
||||
"upstream_commit": "3516c776a1fcbd83d234efc007e3a49807d6ed91",
|
||||
"coverage_kind": "source-derived requirements plus finite executed fixtures; exhaustive compatibility is not certified",
|
||||
"frontend": {
|
||||
"public_build_present": true,
|
||||
"asset_manifest": "public/build/manifest.json",
|
||||
"source_rebuild_dependencies": [
|
||||
"../2FAuth-Components/packages/formcontrols",
|
||||
"../2FAuth-Components/packages/stores",
|
||||
"../2FAuth-Components/packages/styles",
|
||||
"../2FAuth-Components/packages/ui"
|
||||
],
|
||||
"bootstrap_globals": [
|
||||
"appSettings",
|
||||
"appConfig",
|
||||
"urls",
|
||||
"defaultPreferences",
|
||||
"lockedPreferences",
|
||||
"appVersion",
|
||||
"isDemoApp",
|
||||
"isTestingApp",
|
||||
"appLocales"
|
||||
],
|
||||
"http": {
|
||||
"api_prefix": "/api/v1",
|
||||
"web_prefix": "/",
|
||||
"credentials": true,
|
||||
"headers": [
|
||||
"X-Requested-With: XMLHttpRequest",
|
||||
"Content-Type: application/json"
|
||||
],
|
||||
"special_statuses": [
|
||||
419,
|
||||
418,
|
||||
407,
|
||||
401,
|
||||
422,
|
||||
404
|
||||
]
|
||||
},
|
||||
"sources": [
|
||||
"package.json",
|
||||
"resources/views/landing.blade.php",
|
||||
"app/Http/Controllers/SinglePageController.php",
|
||||
"resources/js/services/httpClientFactory.js"
|
||||
]
|
||||
},
|
||||
"authentication": {
|
||||
"guards": {
|
||||
"web-guard": "session",
|
||||
"api-guard": "passport",
|
||||
"reverse-proxy-guard": "reverse-proxy"
|
||||
},
|
||||
"first_party_cookie": "laravel_token",
|
||||
"csrf_cookie": "XSRF-TOKEN",
|
||||
"csrf_exclusions": [],
|
||||
"password_reset_table": "password_resets",
|
||||
"webauthn_recovery_table": "webauthn_recoveries",
|
||||
"sources": [
|
||||
"config/auth.php",
|
||||
"app/Http/Middleware/CustomCreateFreshApiToken.php",
|
||||
"app/Http/Middleware/PreventRequestForgery.php",
|
||||
"app/Providers/AuthServiceProvider.php"
|
||||
]
|
||||
},
|
||||
"encryption": {
|
||||
"cipher": "AES-256-CBC",
|
||||
"key_environment": [
|
||||
"APP_KEY",
|
||||
"APP_PREVIOUS_KEYS"
|
||||
],
|
||||
"conditional_setting": "useEncryption",
|
||||
"api": "Laravel Crypt::encryptString/decryptString",
|
||||
"sources": [
|
||||
"config/app.php",
|
||||
"app/Models/Traits/CanEncryptField.php",
|
||||
"app/Models/TwoFAccount.php"
|
||||
]
|
||||
},
|
||||
"database": {
|
||||
"drivers": [
|
||||
"sqlite",
|
||||
"mysql",
|
||||
"pgsql",
|
||||
"sqlsrv"
|
||||
],
|
||||
"evidence": "database.json",
|
||||
"materialized_schema_verified": true,
|
||||
"verified_schema_scope": "pinned migrations on SQLite only"
|
||||
},
|
||||
"differential_coverage": {
|
||||
"real_upstream_requests_executed": 280,
|
||||
"default_cases": 7,
|
||||
"application_method_path_entries": 91,
|
||||
"comparisons_per_database_mode": 140,
|
||||
"exact_per_database_mode": 129,
|
||||
"expected_raw_body_differences_per_mode": 11,
|
||||
"harness_regression_tests_passed": 6
|
||||
}
|
||||
}
|
||||
File diff suppressed because it is too large.
Load diff
@@ -0,0 +1,61 @@
|
||||
{
|
||||
"Cargo.lock": "eb74066a33403cef46a1df8ca01f3ddd31c7e76176afae9409f33f11fcc4fea3",
|
||||
"Cargo.toml": "a3ae8d9be58d210b72c86493777c47add1963c5e07a132ddf9caf051a78fd893",
|
||||
"compatibility/cases.admin-sharing.json": "5f39b08890a35639098d14d15f83c572540901a07f88878859f7ee1ebeea4f12",
|
||||
"compatibility/cases.device.json": "d8ce2b996783a392d7b9aaf6f974118f43c1bd020b7b9ee4315a86a0a0728ff2",
|
||||
"compatibility/cases.example.json": "4b4b3d09016d74110933b8b0cc315804887474942970b88d0828ede2c07c5d6c",
|
||||
"compatibility/cases.extended.json": "3be56ecb6ecae8a05b781ebcfedb227f3be11f9e08ffc8262d3a9bce85a85dc0",
|
||||
"compatibility/cases.oauth.json": "c084069e46c12b87f78d0a190016e15db3504f1741c816bf97d98d8ff47b7c04",
|
||||
"compatibility/cases.stateful.json": "1ed836e1f4cb76d97234065faf415aaba251a070a336977c2b8eaec5e5565e3b",
|
||||
"src/accounts.rs": "79960cd11029a11cc53e154bc488bc96496a9c8c1e1b85ef8cd1ebf1b1a1019d",
|
||||
"src/api_limits.rs": "7c3decee88724155448ad54993701188abcc9747139d0e955f0ac399fa9700a0",
|
||||
"src/auth.rs": "890b3b9adbe8afd52d21694a499bb85cacddf98bc192549be0b4218c967236d3",
|
||||
"src/auth_audit.rs": "70dfde6ce82641eae24f044e4755af294051459521632a93e50d5d6ad9410f56",
|
||||
"src/cors.rs": "0058858569b419e3a21c8a89d4aa58f2a0e3f4af499a5bcd42b6e09139508b0a",
|
||||
"src/crypto.rs": "39bf321d76a4abb9c5bffe5b77993ef393a00628262a8a0a3fa1c88e7c7a0655",
|
||||
"src/db.rs": "a049dc8069d8d86cb0c9283e1b2897f5c326a35ed6aef138eadcada893aac825",
|
||||
"src/frontend.rs": "056a75fcfe6a62527535436a06cecdc7a0be4f96be8a56d69135e350dd655f90",
|
||||
"src/groups.rs": "3cdb3cd1d9077e87099da7fdc291f20cdb15beebb92dcd9aaa3b53c772c2bfc9",
|
||||
"src/health.html": "ada7ca3391f78faee6e64d23feb69b88cf9a93da9629805c15b96b4a7131869e",
|
||||
"src/icons.rs": "e36e21a6d08629ab70e23803cb191cc2ff7350a9a11350e312984f35cfe5dcbc",
|
||||
"src/imports.rs": "245cd921e3cd1c3cd9d99e809b3c677795de0776c67e2225e7036e56ca43cf28",
|
||||
"src/laravel_sessions.rs": "9d66f36762da5c7107466730add09800346bdad1fc2a11c2580037c9faf10537",
|
||||
"src/lib.rs": "ad07ecd9fc3fb34fcf8fb0a314d75a3b6a6cca000d9bb9d7f5f616b1d8716831",
|
||||
"src/mail.rs": "4d9a0fecb0ad0653237a19e302f08055c5783fc2195ab1ba2aa7a911d42c9633",
|
||||
"src/mail_messages.json": "2950864b85dce65149b3f6b6a237b8d227f4847d2b66e741710b220b1855ac85",
|
||||
"src/main.rs": "4a90c73375964e9db6e4510ea0ccd2d52c26af200749266ae07282401c4bcdc8",
|
||||
"src/oauth_device.rs": "e4dd21a3422e083934b68edd5a6b3eb950c0fe3463ce0ebc617851928b7ccd36",
|
||||
"src/oauth_management.rs": "176cfaf6fc8895e52f8310239c380961508646f0e539be39edca8dab65b421cc",
|
||||
"src/oauth_server.rs": "9ab85322d905bb11f33f6098f71d6d930fe9e16bc489eced7293b768e0f9c868",
|
||||
"src/otp.rs": "659e1f61993824bc8c58dca064af5aca0022a1c93ab809b6aca819b54e010bbe",
|
||||
"src/passport.rs": "fcc2d3a76610c0337d8319bdf2bf115e3e5c1fd027cd19e11f45f1e136c08f8f",
|
||||
"src/preference_env.json": "acd88981c0bf1464cba7b2e7a88dc34b95b4e32c53845494bf47a48911847fca",
|
||||
"src/preferences.json": "5582dfc4b9507752c58a75163913d0908415b7843bcbd3e92aa47929a20a84c2",
|
||||
"src/profile.rs": "98055abf266e4f063c2821fb64aef7f0f65d823cb2799c2479c80087de257c8a",
|
||||
"src/proxy_auth.rs": "87f0ba8f13e22d41faaa8098d2ebca2e2ab892673d446859274077138a33a0e2",
|
||||
"src/schema_validation.rs": "8b76dd92d9788bae73b1ec2b8bfdc7a162412c0feab45433302e6de04653c2a7",
|
||||
"src/settings.json": "733e680c3eb3efbddba11283b2d893fdaaab6c317bc133d285ab65a1ee8d0363",
|
||||
"src/settings.rs": "42df151a0a0fca7df70be833170a95dd2d00516de483045c92e68cc30e8e510c",
|
||||
"src/sharing.rs": "8c7436bc3ef7cdb6bdd41d5f21a08bfc0241be3c669ce65df2a235a4e1c1e377",
|
||||
"src/sso.rs": "54bf97081d43141aecc56cf34f6565506e0ade54c4b4001ff34eec5ea4256ef2",
|
||||
"src/subdirectory.rs": "eacd89b631a9c1265c8a5199229768cb10dfdf0d2cb309c400311eb6d9f743d1",
|
||||
"src/system.rs": "e3afe95b83377153f139199e895f18add47517f3b2de254b38476ccd8c2726fb",
|
||||
"src/users.rs": "d52f54a9e27093db162b50f4863cb48b0a7afa8dd53793d827b0abd545be99ae",
|
||||
"src/webauthn.rs": "70b2520ff5fa043928a501915b47721bf75bc54bdbd69a8d326e56333aa60246",
|
||||
"tests/crypto_interop.py": "b2287d8574d10d00693d0912530c1d4c70505dfaddab2aaf387fe0ed195bd5f2",
|
||||
"tests/device_interop.py": "07d14355ba866b901b89e2792b5569212c3fd8b88c78d3206f1f2423df5059d2",
|
||||
"tests/differential_harness.py": "3694acaf253935691e715bc38d8fd9bad02219b3ba17624427a38fb3534b6cdf",
|
||||
"tests/fixtures/generate_laravel_sessions.php": "d82befcb2e6a49add0d4d1adbe826cb22153d5376979aceb7726de5c0a49941f",
|
||||
"tests/fixtures/laravel_cbc.json": "d5a70db56eb7b3d3503bb51378e6d4bf48cc3f957fc562a2e38e6564292785a8",
|
||||
"tests/fixtures/laravel_sessions.json": "993edffd9927a0e86854f5f3461890f20e6afeaee1a06a0271df9d6e68c85a1c",
|
||||
"tests/fixtures/webauthn-php-encrypted.txt": "3d2de57aa15c909f03fb07b84dfa96e4875f8da9ccb323dab09f21e7a9a58d57",
|
||||
"tests/fixtures/webauthn-private.pem": "a9f0231cb05b09c0d093468c2dc9c45782b776c4904302eefb5b925f71e4999b",
|
||||
"tests/http_smoke.py": "ea6f98db907fbd865f91aa508a2ab5b14de3dc8d89f050c8b309e7a1632cbb24",
|
||||
"tests/laravel_session_http.py": "df747bc0f2cb3777e57c525234279c6417b60d8c836c0becbeb2419705e5df6b",
|
||||
"tests/oauth_interop.py": "07a8c994fb3c4e283bb35cbdead50d4165f9eb1c592063b83670b9ab84fd5a41",
|
||||
"tools/differential_http.py": "7d8ab01ebfac575777bf65c1738d6e1f4e4317b787903c7be797313568a188e6",
|
||||
"tools/inventory.py": "c5fecb07767032fa0bc6fdc427f11da6920c2f2c0e377d7b653a332293f2eaeb",
|
||||
"tools/passport_interop.py": "3e2ccd732916ca0be0153011d233450364d939b28a5fcedb4040c797889ca7ff",
|
||||
"tools/run_reference.py": "9441072d4b8ba56d55a709443d270ab19f789fb2a3a5200dcbdc7d6c8b924dc6",
|
||||
"tools/semantic_http.py": "8e7e349d78391786a218a6b577991f6eb8aae5ef24e49119ca1955b6f39162cd"
|
||||
}
|
||||
@@ -0,0 +1,115 @@
|
||||
-- SQLite DDL materialized by pinned upstream Laravel migrations.
|
||||
-- Upstream 3516c776a1fcbd83d234efc007e3a49807d6ed91; PHP 8.4.27; Laravel 13.29.0.
|
||||
-- 42 migrations; no data, deployment configuration, keys or sessions included.
|
||||
|
||||
CREATE TABLE "auth_logs" ("id" integer primary key autoincrement not null, "authenticatable_type" varchar not null, "authenticatable_id" integer not null, "ip_address" varchar, "user_agent" text, "login_at" datetime, "login_successful" tinyint(1) not null default '0', "logout_at" datetime, "cleared_by_user" tinyint(1) not null default '0', "guard" varchar, "login_method" varchar, foreign key("authenticatable_id") references "users"("id") on delete cascade);
|
||||
|
||||
CREATE TABLE "cache" ("key" varchar not null, "value" text not null, "expiration" integer not null, primary key ("key"));
|
||||
|
||||
CREATE TABLE "cache_locks" ("key" varchar not null, "owner" varchar not null, "expiration" integer not null, primary key ("key"));
|
||||
|
||||
CREATE TABLE "groups" ("id" integer primary key autoincrement not null, "name" varchar not null, "created_at" datetime, "updated_at" datetime, "user_id" integer, "order_column" integer, "show_in_chips" tinyint(1) not null default '0', foreign key("user_id") references "users"("id") on delete cascade);
|
||||
|
||||
CREATE TABLE "icons" ("name" varchar not null, "content" text not null, "created_at" datetime, "updated_at" datetime, primary key ("name"));
|
||||
|
||||
CREATE TABLE "migrations" ("id" integer primary key autoincrement not null, "migration" varchar not null, "batch" integer not null);
|
||||
|
||||
CREATE TABLE "oauth_access_tokens" ("id" varchar not null, "user_id" integer, "client_id" integer not null, "name" varchar, "scopes" text, "revoked" tinyint(1) not null, "created_at" datetime, "updated_at" datetime, "expires_at" datetime, primary key ("id"));
|
||||
|
||||
CREATE TABLE "oauth_auth_codes" ("id" varchar not null, "user_id" integer not null, "client_id" integer not null, "scopes" text, "revoked" tinyint(1) not null, "expires_at" datetime, primary key ("id"));
|
||||
|
||||
CREATE TABLE "oauth_clients" ("id" integer primary key autoincrement not null, "name" varchar not null, "secret" varchar, "provider" varchar, "revoked" tinyint(1) not null, "created_at" datetime, "updated_at" datetime, "owner_type" varchar, "owner_id" integer, "redirect_uris" text not null, "grant_types" text not null);
|
||||
|
||||
CREATE TABLE "oauth_device_codes" ("id" varchar not null, "user_id" integer, "client_id" varchar not null, "user_code" varchar not null, "scopes" text not null, "revoked" tinyint(1) not null, "user_approved_at" datetime, "last_polled_at" datetime, "expires_at" datetime, primary key ("id"));
|
||||
|
||||
CREATE TABLE "oauth_refresh_tokens" ("id" varchar not null, "access_token_id" varchar not null, "revoked" tinyint(1) not null, "expires_at" datetime, primary key ("id"));
|
||||
|
||||
CREATE TABLE "options" ("id" integer primary key autoincrement not null, "key" varchar not null, "value" text not null);
|
||||
|
||||
CREATE TABLE "otp_logs" ("id" integer primary key autoincrement not null, "requester_id" integer, "requester_name" varchar not null, "requester_email" varchar not null, "owner_id" integer, "owner_name" varchar not null, "owner_email" varchar not null, "twofaccount_id" integer not null, "ip_address" varchar not null, "otp_type" varchar not null, "counter" integer, "generated_at" datetime not null, foreign key("requester_id") references "users"("id") on delete set null, foreign key("owner_id") references "users"("id") on delete set null, foreign key("twofaccount_id") references "twofaccounts"("id") on delete cascade);
|
||||
|
||||
CREATE TABLE "password_resets" ("email" varchar not null, "token" varchar not null, "created_at" datetime);
|
||||
|
||||
CREATE TABLE "sessions" ("id" varchar not null, "user_id" integer, "ip_address" varchar, "user_agent" text, "payload" text not null, "last_activity" integer not null, primary key ("id"));
|
||||
|
||||
CREATE TABLE "twofaccount_group_assignments" ("id" integer primary key autoincrement not null, "twofaccount_id" integer not null, "user_id" integer not null, "group_id" integer not null, "created_at" datetime, "updated_at" datetime, foreign key("twofaccount_id") references "twofaccounts"("id") on delete cascade, foreign key("user_id") references "users"("id") on delete cascade, foreign key("group_id") references "groups"("id") on delete cascade);
|
||||
|
||||
CREATE TABLE "twofaccount_shares" ("id" integer primary key autoincrement not null, "twofaccount_id" integer not null, "shared_with_user_id" integer, "scope" varchar not null, "created_by_user_id" integer not null, "created_at" datetime, "updated_at" datetime, foreign key("twofaccount_id") references "twofaccounts"("id") on delete cascade, foreign key("shared_with_user_id") references "users"("id") on delete cascade, foreign key("created_by_user_id") references "users"("id") on delete cascade);
|
||||
|
||||
CREATE TABLE "twofaccount_user_orders" ("id" integer primary key autoincrement not null, "user_id" integer not null, "twofaccount_id" integer not null, "position" integer not null, "created_at" datetime, "updated_at" datetime, foreign key("user_id") references "users"("id") on delete cascade, foreign key("twofaccount_id") references "twofaccounts"("id") on delete cascade);
|
||||
|
||||
CREATE TABLE "twofaccounts" ("id" integer primary key autoincrement not null, "service" text, "legacy_uri" text not null, "account" text not null, "icon" varchar, "created_at" datetime, "updated_at" datetime, "order_column" integer, "group_id" integer, "otp_type" varchar not null, "secret" text not null, "algorithm" varchar not null, "digits" integer not null, "period" integer, "counter" integer, "user_id" integer, foreign key("user_id") references users("id") on delete cascade on update no action, foreign key("group_id") references groups("id") on delete set null on update no action);
|
||||
|
||||
CREATE TABLE "users" ("id" integer primary key autoincrement not null, "name" varchar not null, "email" varchar not null, "email_verified_at" datetime, "password" varchar not null, "remember_token" varchar, "created_at" datetime, "updated_at" datetime, "last_seen_at" datetime, "is_admin" tinyint(1) not null default '0', "preferences" text, "oauth_provider" varchar, "oauth_id" varchar);
|
||||
|
||||
CREATE TABLE "webauthn_credentials" ("id" varchar not null, "authenticatable_type" varchar not null, "authenticatable_id" integer not null, "user_id" varchar not null, "alias" varchar, "counter" integer, "rp_id" varchar not null, "origin" varchar not null, "transports" text, "aaguid" varchar, "public_key" text not null, "attestation_format" varchar not null default 'none', "certificates" text, "disabled_at" datetime, "created_at" datetime, "updated_at" datetime, primary key ("id"));
|
||||
|
||||
CREATE TABLE "webauthn_recoveries" ("email" varchar not null, "token" varchar not null, "created_at" datetime);
|
||||
|
||||
CREATE INDEX "auth_logs_authenticatable_type_authenticatable_id_index" on "auth_logs" ("authenticatable_type", "authenticatable_id");
|
||||
|
||||
CREATE INDEX "auth_logs_login_at_index" on "auth_logs" ("login_at");
|
||||
|
||||
CREATE INDEX "auth_logs_login_successful_index" on "auth_logs" ("login_successful");
|
||||
|
||||
CREATE INDEX "auth_logs_logout_at_index" on "auth_logs" ("logout_at");
|
||||
|
||||
CREATE INDEX "cache_expiration_index" on "cache" ("expiration");
|
||||
|
||||
CREATE INDEX "cache_locks_expiration_index" on "cache_locks" ("expiration");
|
||||
|
||||
CREATE INDEX "oauth_access_tokens_user_id_index" on "oauth_access_tokens" ("user_id");
|
||||
|
||||
CREATE INDEX "oauth_auth_codes_user_id_index" on "oauth_auth_codes" ("user_id");
|
||||
|
||||
CREATE INDEX "oauth_clients_owner_type_owner_id_index" on "oauth_clients" ("owner_type", "owner_id");
|
||||
|
||||
CREATE INDEX "oauth_device_codes_client_id_index" on "oauth_device_codes" ("client_id");
|
||||
|
||||
CREATE UNIQUE INDEX "oauth_device_codes_user_code_unique" on "oauth_device_codes" ("user_code");
|
||||
|
||||
CREATE INDEX "oauth_device_codes_user_id_index" on "oauth_device_codes" ("user_id");
|
||||
|
||||
CREATE INDEX "oauth_refresh_tokens_access_token_id_index" on "oauth_refresh_tokens" ("access_token_id");
|
||||
|
||||
CREATE UNIQUE INDEX "options_key_unique" on "options" ("key");
|
||||
|
||||
CREATE INDEX "otp_logs_ip_address_index" on "otp_logs" ("ip_address");
|
||||
|
||||
CREATE INDEX "otp_logs_otp_type_index" on "otp_logs" ("otp_type");
|
||||
|
||||
CREATE INDEX "otp_logs_requester_id_index" on "otp_logs" ("requester_id");
|
||||
|
||||
CREATE INDEX "otp_logs_twofaccount_id_index" on "otp_logs" ("twofaccount_id");
|
||||
|
||||
CREATE INDEX "password_resets_email_index" on "password_resets" ("email");
|
||||
|
||||
CREATE INDEX "sessions_last_activity_index" on "sessions" ("last_activity");
|
||||
|
||||
CREATE INDEX "sessions_user_id_index" on "sessions" ("user_id");
|
||||
|
||||
CREATE INDEX "twofaccount_group_assignments_group_id_index" on "twofaccount_group_assignments" ("group_id");
|
||||
|
||||
CREATE UNIQUE INDEX "twofaccount_group_assignments_unique_scope" on "twofaccount_group_assignments" ("twofaccount_id", "user_id");
|
||||
|
||||
CREATE INDEX "twofaccount_group_assignments_user_id_index" on "twofaccount_group_assignments" ("user_id");
|
||||
|
||||
CREATE INDEX "twofaccount_shares_shared_with_user_id_index" on "twofaccount_shares" ("shared_with_user_id");
|
||||
|
||||
CREATE INDEX "twofaccount_shares_twofaccount_id_scope_index" on "twofaccount_shares" ("twofaccount_id", "scope");
|
||||
|
||||
CREATE UNIQUE INDEX "twofaccount_shares_unique_target" on "twofaccount_shares" ("twofaccount_id", "scope", "shared_with_user_id");
|
||||
|
||||
CREATE INDEX "twofaccount_user_orders_twofaccount_id_index" on "twofaccount_user_orders" ("twofaccount_id");
|
||||
|
||||
CREATE UNIQUE INDEX "twofaccount_user_orders_unique_scope" on "twofaccount_user_orders" ("user_id", "twofaccount_id");
|
||||
|
||||
CREATE INDEX "twofaccount_user_orders_user_id_position_index" on "twofaccount_user_orders" ("user_id", "position");
|
||||
|
||||
CREATE UNIQUE INDEX "users_email_unique" on "users" ("email");
|
||||
|
||||
CREATE UNIQUE INDEX "users_name_unique" on "users" ("name");
|
||||
|
||||
CREATE INDEX "web_authn_recoveries_email_index" on "webauthn_recoveries" ("email");
|
||||
|
||||
CREATE INDEX "webauthn_user_index" on "webauthn_credentials" ("authenticatable_type", "authenticatable_id");
|
||||
Reference in new issue
Block a user