v2.0rc2 #68
Replies: 4 comments
-
|
@mahmoodnasr can you give this a try and let us know |
Beta Was this translation helpful? Give feedback.
-
PR #66 — V2.0 Code ReviewThis is a substantial release: new DRF API layer, template renames, immediate mediation support, new service/token architecture, and many JS files. Here's everything I found, ordered by severity. CRITICAL1. JavaScript SyntaxError — Duplicate
|
| # | Severity | File | Issue |
|---|---|---|---|
| 1 | Critical | check.js template |
Duplicate else block — SyntaxError |
| 2 | Critical | passkeys.js static |
getElementById misspelled 3x — TypeError |
| 3 | Critical | auth.py (example) |
Open redirect via unvalidated next param |
| 4 | High | Both passkeys.js |
tryLogin() always submits — dead code after |
| 5 | High | service.py |
Bare except Exception hides real errors |
| 6 | High | webauthn.py |
.pop() mutates input dict before fido2 processes it |
| 7 | High | webauthn.py |
Double DB query + missing select_related |
| 8 | Medium | views.py (API) |
No rate limiting on public auth endpoints |
| 9 | Medium | helpers.py |
Potential open redirect via HTTP_REFERER |
| 10 | Medium | JS files | Near-identical 135-line duplication |
| 11 | Medium | webauthn.py |
enabled=1 instead of enabled=True |
| 12 | Medium | token_backends.py |
Session fallback fails without session middleware |
| 13 | Low | webauthn.py |
raise Exception(excep) destroys traceback |
| 14 | Low | JS files | Global variable pollution (no let/const) |
| 15 | Low | views.py (example) |
Relative redirect path is fragile |
| 16 | Low | Multiple | Missing trailing newlines |
| 17 | Low | coverage | Dropped from 100% to 93.32% |
Bottom line: Issues #1, #2, and #3 are ship-blockers. Issues #4-#7 should be fixed before release. The rest can be addressed in a follow-up, but I'd push back on merging until at least the Critical and High items are resolved.
Beta Was this translation helpful? Give feedback.
-
|
Thanks |
Beta Was this translation helpful? Give feedback.
-
|
Uploaded v2.0rc3 |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
v2.0rc2
passkeysfolder and renamed the templates. thanks to @ganiyevuz and @smark-1PassKeys.html->passkeys/manage.htmlPassKeys_base.html->passkeys/base.htmlcheck_passkeys.js->passkeys/check.jspasskeys.js->passkeys/passkeys.jsmodal.html->passkeys/modal.htmlpasskeys.api) — REST endpoints for passkey registration, authentication, and managementpasskeys.api.service) — session-independent FIDO2 logic with signed state tokenspip install django-passkeys[drf]orpip install django-passkeys[drf-jwt]@login requiredto passkey registration views. thanks to @rafaelurbeno for reporting the issue.This discussion was created from the release v2.0rc2.
Beta Was this translation helpful? Give feedback.
All reactions