Commit Graph

7 Commits

Author SHA1 Message Date
Björn Benouarets
e76469ad55 feat: add business logic controllers
- Add authentication controller for login, logout, and token refresh
- Add user controller for user management and profile operations
- Add session controller for session management and validation
- Add access controller for API access control and permissions
- Include proper input validation and error handling
- Implement secure authentication flows
2025-09-25 23:24:32 +02:00
Björn Benouarets
6f4e929959 feat: add data access layer (repositories)
- Add user repository with CRUD operations and authentication methods
- Add session repository for session management and validation
- Add API key repository for API key management
- Include proper error handling and database transaction support
- Implement search and filtering capabilities
2025-09-25 23:24:28 +02:00
Björn Benouarets
4ee00d0b97 feat: add authentication and database middleware
- Add JWT authentication middleware for protected routes
- Add database middleware for request-scoped database access
- Include proper error handling and response formatting
- Support for role-based access control
2025-09-25 23:24:23 +02:00
Björn Benouarets
f509f6e524 feat: add utility functions and helpers
- Add JWT token generation and validation utilities
- Add password hashing with bcrypt for secure authentication
- Add pagination helper for API responses
- Add random string generation for tokens and IDs
- Add session management utilities
- Add admin user initialization functionality
2025-09-25 23:24:18 +02:00
Björn Benouarets
9a8a93061d feat: add database connection and configuration
- Add PostgreSQL database connection setup with GORM
- Include database initialization and migration functionality
- Add connection pooling and error handling
- Support for environment-based database configuration
2025-09-25 23:24:13 +02:00
Björn Benouarets
a1dea963e9 feat: add data models and API structures
- Add User model with authentication fields and validation
- Add Session model for managing user sessions
- Add API response structures for consistent API responses
- Include GORM tags for database mapping and validation
2025-09-25 23:24:06 +02:00
Björn Benouarets
d0dc7a2837 feat: initialize Go module with dependencies
- Add go.mod with Fiber web framework, JWT, GORM, and PostgreSQL driver
- Include all necessary dependencies for IDP API development
- Set up module path as git.secnex.io/secnex/idp-api
- Add comprehensive .gitignore for Go projects
2025-09-25 23:23:58 +02:00