Authentication service built with Ruby on Rails, featuring:
- JWT-based authentication
- Redis-based rate limiting
- Secure password management
- API throttling
- User registration and authentication
- JWT token management
- Rate limiting (1000 requests/minute)
- Redis integration
- Secure password handling
- Ruby 3.3.6
- Rails 7.2.2
- Redis
- PostgreSQL
Create a .env file in the root directory:
REDIS_URL=redis://localhost:6379/0
JWT_SECRET=your_jwt_secret
DATABASE_URL=postgresql://localhost/auth_service- POST /api/v1/register - User registration
- POST /api/v1/login - User login
- DELETE /api/v1/logout - User logout
- GET /api/v1/me - Get current user
- General API: 1000 requests/minute
- Login: 20 requests/5 minutes
- Register: 5 requests/hour
Pull requests are welcome.
MIT