mirror of
https://github.com/wahyd4/passkey-auth.git
synced 2026-08-09 04:15:55 +10:00
- Complete WebAuthn/FIDO2 authentication implementation - SQLite database with user and credential management - Email-based user identification with allowlist support - Admin approval workflow for new users - Session management with secure cookies - Docker containerization with Debian base for SQLite compatibility - Kubernetes deployment manifests with nginx ingress support - Web-based admin interface for user management - Comprehensive documentation and deployment guides - Standard open source project structure with CI/CD
29 lines
610 B
Bash
Executable File
29 lines
610 B
Bash
Executable File
#!/bin/bash
|
|
|
|
set -e
|
|
|
|
echo "🔧 Starting Passkey Auth in development mode..."
|
|
|
|
# Check if Go is installed
|
|
if ! command -v go &> /dev/null; then
|
|
echo "❌ Go is not installed"
|
|
exit 1
|
|
fi
|
|
|
|
# Install dependencies
|
|
echo "Installing dependencies..."
|
|
go mod download
|
|
|
|
# Set development environment variables
|
|
export PORT=8080
|
|
export WEBAUTHN_RP_ID=localhost
|
|
export DATABASE_PATH=./dev-passkey-auth.db
|
|
export SESSION_SECRET=dev-secret-not-for-production
|
|
|
|
echo "🚀 Starting server..."
|
|
echo "Access the admin interface at: http://localhost:8080"
|
|
echo "Press Ctrl+C to stop"
|
|
|
|
# Run the application
|
|
go run main.go
|