https://github.com/sultanalieva-s/secure-auth-api
https://github.com/sultanalieva-s/secure-auth-api
2fa authentication docker docker-compose fastapi grafana mysql prometheus rate-limiting
Last synced: 3 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/sultanalieva-s/secure-auth-api
- Owner: sultanalieva-s
- Created: 2024-11-17T15:20:25.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2025-09-23T13:08:12.000Z (9 months ago)
- Last Synced: 2026-01-03T16:32:24.562Z (6 months ago)
- Topics: 2fa, authentication, docker, docker-compose, fastapi, grafana, mysql, prometheus, rate-limiting
- Language: Python
- Homepage:
- Size: 171 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 12
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Secure Authentication API
# Features:
User Authentication
2FA
Role based access
User activity logs
Monitoring via Prometheus and Grafana
Rate limiting
## Local Setup
To run the project locally, follow these steps:
1. **Clone the repository**:
```bash
git clone https://github.com/sultanalieva-s/secure-auth-api.git
cd secure-auth-api
```
2. **Build and run docker containers**:
```bash
make build
```
## Database Migrations
- Enter container's bash:
```bash
docker exec -it bash
```
- Generate migration
```bash
alembic revision --autogenerate -m 'MIGRATION DESCRIPTION'
```
- Generate migration
```bash
alembic upgrade head
```
## Creating Admin:
- Enter container's bash:
```bash
docker exec -it bash
```
- Run create_admin.py script
```bash
python3 create_admin.py
```