Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
472 changes: 53 additions & 419 deletions README.md

Large diffs are not rendered by default.

5 changes: 0 additions & 5 deletions app.py
Original file line number Diff line number Diff line change
@@ -1,8 +1,3 @@
"""
AIAS — Main Flask Application
Entry point for the Sign-In & Verification System.
"""

import logging
import os
import sys
Expand Down
6 changes: 0 additions & 6 deletions auth/email_service.py
Original file line number Diff line number Diff line change
@@ -1,9 +1,3 @@
"""
AIAS Email Service
Sends OTP verification emails via Gmail SMTP over TLS.
Uses HTML templates for professional email appearance.
"""

import smtplib
import ssl
from email.mime.text import MIMEText
Expand Down
5 changes: 0 additions & 5 deletions auth/google_oauth.py
Original file line number Diff line number Diff line change
@@ -1,8 +1,3 @@
"""
AIAS Google OAuth 2.0
Handles 'Sign in with Google' using authlib.
"""

from authlib.integrations.flask_client import OAuth

from config import Config
Expand Down
6 changes: 0 additions & 6 deletions auth/otp_service.py
Original file line number Diff line number Diff line change
@@ -1,9 +1,3 @@
"""
AIAS OTP Service
Generates, hashes, and validates 6-digit OTP codes.
Uses cryptographically secure random generation and SHA-256 hashing.
"""

import hashlib
import secrets
from datetime import datetime, timezone
Expand Down
6 changes: 0 additions & 6 deletions auth/rate_limiter.py
Original file line number Diff line number Diff line change
@@ -1,9 +1,3 @@
"""
AIAS Rate Limiter
Prevents brute force attacks, email spam, and abuse.
Uses database-backed sliding window rate limiting.
"""

from database.security import DatabaseSecurity
from config import Config

Expand Down
9 changes: 0 additions & 9 deletions auth/redis_service.py
Original file line number Diff line number Diff line change
@@ -1,12 +1,3 @@
"""
AIAS Redis Service
Handles Redis connection management, session caching, and rate limiting
with circuit breaker pattern for automatic recovery.

Connection Type: redis-py → ConnectionPool → TCP to Redis server
Protocol: RESP (Redis Serialization Protocol)
"""

import json
import logging
import threading
Expand Down
5 changes: 0 additions & 5 deletions auth/routes.py
Original file line number Diff line number Diff line change
@@ -1,8 +1,3 @@
"""
AIAS Auth Routes
All authentication endpoints: sign-in, register, OTP verification, Google OAuth.
"""

import secrets
from functools import wraps

Expand Down
5 changes: 0 additions & 5 deletions config.py
Original file line number Diff line number Diff line change
@@ -1,8 +1,3 @@
"""
AIAS Configuration Module
Loads environment variables and provides app-wide settings.
"""

import os
import secrets
from dotenv import load_dotenv
Expand Down
5 changes: 0 additions & 5 deletions database/db.py
Original file line number Diff line number Diff line change
@@ -1,8 +1,3 @@
"""
AIAS Database Connection Manager for MongoDB
Provides connection pooling, auto-indexing, health checks, and query helpers.
"""

import logging
import threading
import time
Expand Down
5 changes: 0 additions & 5 deletions database/models.py
Original file line number Diff line number Diff line change
@@ -1,8 +1,3 @@
"""
AIAS Database Models for MongoDB
Provides data access methods for Users, OTPs, and Sessions.
"""

from datetime import datetime, timedelta, timezone
from bson import ObjectId

Expand Down
6 changes: 0 additions & 6 deletions database/security.py
Original file line number Diff line number Diff line change
@@ -1,9 +1,3 @@
"""
AIAS Database Security Utilities for MongoDB
Handles expired data cleanup, rate limit log management,
and database integrity checks.
"""

from datetime import datetime, timedelta, timezone

from database.db import db
Expand Down
Loading