{"id":48723638,"url":"https://github.com/jecode93/api_authentication_with_jwt","last_synced_at":"2026-04-11T21:00:29.740Z","repository":{"id":266371542,"uuid":"854289267","full_name":"jecode93/api_authentication_with_jwt","owner":"jecode93","description":null,"archived":false,"fork":false,"pushed_at":"2026-04-09T22:20:00.000Z","size":180,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"development","last_synced_at":"2026-04-11T21:00:06.090Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Ruby","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/jecode93.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2024-09-08T21:46:04.000Z","updated_at":"2026-04-09T22:19:58.000Z","dependencies_parsed_at":"2024-12-21T00:18:24.721Z","dependency_job_id":"0bed04de-d1ca-4f33-ba41-7b5a123f3b8d","html_url":"https://github.com/jecode93/api_authentication_with_jwt","commit_stats":null,"previous_names":["jecode93/api_authentication_with_jwt"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/jecode93/api_authentication_with_jwt","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jecode93%2Fapi_authentication_with_jwt","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jecode93%2Fapi_authentication_with_jwt/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jecode93%2Fapi_authentication_with_jwt/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jecode93%2Fapi_authentication_with_jwt/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jecode93","download_url":"https://codeload.github.com/jecode93/api_authentication_with_jwt/tar.gz/refs/heads/development","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jecode93%2Fapi_authentication_with_jwt/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31695165,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-11T20:18:30.949Z","status":"ssl_error","status_checked_at":"2026-04-11T20:18:29.982Z","response_time":54,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2026-04-11T21:00:12.844Z","updated_at":"2026-04-11T21:00:29.735Z","avatar_url":"https://github.com/jecode93.png","language":"Ruby","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Rails Authentication API\n\nA secure Ruby on Rails API application with JWT-based authentication, built with best practices and modern security features.\n\n## Features\n\n- **JWT Authentication**: Secure token-based authentication system\n- **User Management**: Complete user registration and login functionality\n- **Password Security**: BCrypt encryption for secure password storage\n- **RESTful API**: Clean and intuitive API endpoints\n- **Security**: Brakeman security scanning integrated\n- **Code Quality**: RuboCop Rails Omakase for consistent code style\n- **Auto-updates**: Dependabot configured for automatic dependency updates\n\n## Tech Stack\n\n- **Ruby on Rails**: 8.0.1\n- **PostgreSQL**: 1.6.2\n- **JWT**: 3.1.2\n- **BCrypt**: For password hashing\n- **Puma**: 6.6.1 (Web server)\n- **Brakeman**: 7.1.0 (Security scanner)\n- **RuboCop Rails Omakase**: 1.1.0 (Code linter)\n\n## Prerequisites\n\n- Ruby (version compatible with Rails 8.0.1)\n- PostgreSQL\n- Bundler\n\n## Installation\n\n1. Clone the repository:\n```bash\ngit clone [api_authentication_with_jwt](https://github.com/jecode93/api_authentication_with_jwt.git)\ncd \u003capi_authentication_with_jwt\u003e\n```\n\n2. Install dependencies:\n```bash\nbundle install\n```\n\n3. Set up the database:\n```bash\nrails db:create\nrails db:migrate\n```\n\n4. Start the server:\n```bash\nrails server\n```\n\nThe API will be available at `http://localhost:3000`\n\n## API Endpoints\n\n### Authentication\n\n#### Register a new user\n```http\nPOST /users\nContent-Type: application/json\n\n{\n  \"user\": {\n    \"email\": \"user@example.com\",\n    \"password\": \"securepassword\"\n  }\n}\n```\n\n#### Login\n```http\nPOST /login\nContent-Type: application/json\n\n{\n  \"email\": \"user@example.com\",\n  \"password\": \"securepassword\"\n}\n```\n\n**Response:**\n```json\n{\n  \"token\": \"eyJhbGciOiJIUzI1NiJ9...\",\n  \"user\": {\n    \"id\": 1,\n    \"email\": \"user@example.com\"\n  }\n}\n```\n\n### Protected Routes\n\nFor authenticated requests, include the JWT token in the Authorization header:\n```http\nAuthorization: Bearer \u003cyour-jwt-token\u003e\n```\n\n## Security Features\n\n- **Password Encryption**: All passwords are encrypted using BCrypt\n- **JWT Tokens**: Secure, stateless authentication\n- **Email Uniqueness**: Enforced at the database level\n- **Brakeman Scanning**: Continuous security vulnerability checks\n- **Parameter Validation**: Strong parameters to prevent mass assignment\n\n## Project Structure\n\n```\napp/\n├── controllers/\n│   ├── application_controller.rb\n│   ├── authentication_controller.rb\n│   └── users_controller.rb\n├── models/\n│   └── user.rb\n└── concerns/\n    └── json_web_token.rb\n```\n\n## Development\n\n### Running Tests\n```bash\nrails test\n```\n\n### Code Linting\n```bash\nrubocop\n```\n\n### Security Scan\n```bash\nbrakeman\n```\n\n## Dependency Management\n\nThis project uses Dependabot to automatically keep dependencies up to date. Pull requests for dependency updates are automatically created and can be reviewed before merging.\n\n## Recent Updates\n\n- Upgraded to Rails 8.0.1\n- Updated JWT to version 3.1.2\n- Enhanced security with Brakeman 7.1.0\n- Improved performance with latest Puma and Bootsnap versions\n- PostgreSQL driver updated to 1.6.2\n\n## Contributing\n\n1. Fork the repository\n2. Create your feature branch (`git checkout -b feature/amazing-feature`)\n3. Commit your changes (`git commit -m 'Add some amazing feature'`)\n4. Push to the branch (`git push origin feature/amazing-feature`)\n5. Open a Pull Request\n\n## License\n\nThis project is open source and available under the [MIT License](LICENSE).\n\n## Author\n\n👤 **Jean Emmanuel Cadet**\n\n- 🌐 **Portfolio:** [jeanemmanuelcadet.com](https://jeanemmanuelcadet.com)\n- ✍️ **Blog:** [codecurious.dev](https://codecurious.dev)\n- 💻 **GitHub:** [github.com/jecode93](https://github.com/jecode93)\n- 🔗 **LinkedIn:** [linkedin.com/in/jean-emmanuel-cadet](https://linkedin.com/in/jean-emmanuel-cadet)\n- 📧 **Email:** [jeanemmanuelcadet@gmail.com](mailto:jeanemmanuelcadet@gmail.com)\n\n## Acknowledgments\n\n- Built with Ruby on Rails\n- Authentication powered by JWT\n- Security enhanced with Brakeman\n- Code quality maintained with RuboCop Rails Omakase\n\n---\n\nFor questions or support, please open an issue in the GitHub repository.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjecode93%2Fapi_authentication_with_jwt","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjecode93%2Fapi_authentication_with_jwt","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjecode93%2Fapi_authentication_with_jwt/lists"}