How vaibhav11464/auth-x works
AuthX is a Flask identity-verification application. Users authenticate, enroll a face, then complete a Look step and a Speak step; the server measures face identity, liveness, voice and lip motion, combines evidence into a trust decision, and can issue a hash-linked certificate. Faculty and administrators also review sessions, while a separate public identification demo can compare a visitor with enrolled students without signing them in. The graph preserves these documented stages and the evidence, persistence and profile layers. Some route and service internals were not excerpted, so uncertain internal calls are omitted.
Main entry points: verification.py Look / Speak API · models.py Accounts and sessions store · verification_profiles.py Verification profiles · auth.py Authentication API
Components 21
Access and sessions
- Authentication API
app/routes/auth.py - JWT and role guards
app/auth/decorators.py - Session lifecycle
app/services/session_lifecycle.py
Capture and scoring
- Face enrollment API
app/routes/face.py - Enrollment processing
app/services/enrollment.py - Look / Speak API
app/routes/verification.py - Verification profiles
app/services/verification_profiles.py - Face quality gates
app/services/face_quality.py - Face detection
app/services/face_detector.py - Voice and lip scoring
app/services/voice_detector.py - Challenge-word speech
app/services/speech.py
Evidence and records
- Trust and SAFE gates
app/services/risk_engine.py - Decision evidence
app/services/decision_evidence.py - Accounts and sessions store
app/models.py - Verification certificates
app/services/certificate.py
User-facing flows
- Identify API
app/routes/identify.py - Student matching
app/services/identification.py - Student / faculty views
app/routes/pages.py
Other components
- Student
- Faculty / admin
- Demo visitor
Connections 28
- Student → Authentication API: signs in
README.md - Authentication API → Accounts and sessions store: checks account
app/routes/auth.py - Authentication API → JWT and role guards: issues tokens
app/routes/auth.py - Student → Face enrollment API: enrolls face
README.md - Face enrollment API → Enrollment processing: processes samples
app/routes/face.py - Enrollment processing → Face quality gates: checks quality
app/services/enrollment.py - Enrollment processing → Accounts and sessions store: stores enrollment
- Student → Look / Speak API: submits Look / Speak
README.md - Look / Speak API → JWT and role guards: checks access
app/routes/verification.py - Look / Speak API → Session lifecycle: checks lifecycle
app/routes/verification.py - Look / Speak API → Verification profiles: scores steps
app/routes/verification.py - Look / Speak API → Accounts and sessions store: reads / writes results
app/routes/verification.py - Verification profiles → Face quality gates: gates face frames
app/services/verification_profiles.py - Face quality gates → Face detection: checks faces
app/services/face_quality.py - Verification profiles → Voice and lip scoring: scores voice
app/services/verification_profiles.py - Verification profiles → Challenge-word speech: verifies challenge word
app/services/verification_profiles.py - Look / Speak API → Trust and SAFE gates: fuses evidence
- Trust and SAFE gates → Decision evidence: evaluates SAFE gates
app/services/risk_engine.py - Decision evidence → Challenge-word speech: checks stored word
app/services/decision_evidence.py - Look / Speak API → Verification certificates: issues certificate
app/routes/verification.py - Verification certificates → Accounts and sessions store: reads certificate data
app/services/certificate.py - Faculty / admin → Student / faculty views: reviews sessions
README.md - Student / faculty views → Accounts and sessions store: reads session data
app/routes/pages.py - Demo visitor → Identify API: requests match
README.md - Identify API → Student matching: compares identity
app/routes/identify.py - Student matching → Face detection: detects faces
app/services/identification.py - Student matching → Accounts and sessions store: reads enrollments
app/services/identification.py - Identify API → Challenge-word speech: checks speech
app/routes/identify.py