{"id":49082734,"url":"https://github.com/ghlps/guimox-auth","last_synced_at":"2026-04-29T04:38:17.305Z","repository":{"id":299883051,"uuid":"969598897","full_name":"ghlps/guimox-auth","owner":"ghlps","description":"Java service used to provide authentication for my applications. The project uses OAuth2 (Google) and also e-mail/password login.","archived":false,"fork":false,"pushed_at":"2025-09-16T08:12:36.000Z","size":84,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2026-04-20T13:55:43.789Z","etag":null,"topics":["java","oauth2","security","springboot"],"latest_commit_sha":null,"homepage":"","language":"Java","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/ghlps.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"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":"2025-04-20T14:17:00.000Z","updated_at":"2025-09-16T08:12:39.000Z","dependencies_parsed_at":"2025-07-20T11:12:57.379Z","dependency_job_id":"2baa0637-aa92-45e2-af48-475f919190a1","html_url":"https://github.com/ghlps/guimox-auth","commit_stats":null,"previous_names":["guimox/guimox-auth","ghlps/guimox-auth"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/ghlps/guimox-auth","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ghlps%2Fguimox-auth","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ghlps%2Fguimox-auth/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ghlps%2Fguimox-auth/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ghlps%2Fguimox-auth/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ghlps","download_url":"https://codeload.github.com/ghlps/guimox-auth/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ghlps%2Fguimox-auth/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32411539,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-29T03:46:11.172Z","status":"ssl_error","status_checked_at":"2026-04-29T03:37:55.317Z","response_time":110,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: 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":["java","oauth2","security","springboot"],"created_at":"2026-04-20T13:44:56.286Z","updated_at":"2026-04-29T04:38:17.289Z","avatar_url":"https://github.com/ghlps.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"## Auth System for My Apps\n\nThis project is a centralized authentication service built with Spring Boot, designed to provide secure authentication and authorization for all my applications. It is deployed on my VPS and exposes a set of APIs for user registration, login, email verification, token refresh, and OAuth2 login (Google). The system is intended to be the single point of authentication for any app I develop that requires user management.\n\n## Features\n\n- **User Registration \u0026 Login:**  \n  Secure endpoints for user signup and login with email and password.\n\n- **JWT Authentication:**  \n  Uses JSON Web Tokens (JWT) for stateless authentication and session management.\n\n- **Email Verification:**  \n  Sends verification codes to users' emails using the Resend API to confirm their accounts.\n\n- **OAuth2 Integration:**  \n  Supports Google OAuth2 login for seamless third-party authentication.\n\n- **Token Refresh:**  \n  Provides refresh tokens to maintain user sessions securely.\n\n- **Role \u0026 App Management:**  \n  Users can be associated with different apps, allowing for multi-app authentication from a single service.\n\n- **Secure Password Storage:**  \n  Passwords are hashed using BCrypt for enhanced security.\n\n- **Environment-based Configuration:**  \n  Sensitive data (database credentials, API keys, secrets) are externalized using environment variables.\n\n## Tech Stack\n\n- **Java 17**\n- **Spring Boot 3**\n- **Spring Security**\n- **Spring Data JPA**\n- **PostgreSQL**\n- **JWT (io.jsonwebtoken)**\n- **OAuth2 Client**\n- **Resend (Email API)**\n- **Docker**\n\n## API Endpoints\n\n- `POST /auth/signup` — Register a new user\n- `POST /auth/login` — Authenticate and receive JWT tokens\n- `POST /auth/verify` — Verify user email with code\n- `POST /auth/resend` — Resend verification code\n- `POST /auth/refresh-token` — Refresh JWT access token\n- `GET /auth/grantcode` — Google OAuth2 callback\n- `GET /users/me` — Get authenticated user info\n- `GET /users` — List all users (admin only)\n\n## Security\n\n- All sensitive configuration (database URL, JWT secret, OAuth2 credentials, email API keys) is managed via environment variables and never committed to source control.\n- The `.gitignore` is configured to prevent accidental commits of secrets or environment-specific files.\n\n## Deployment\n\n- The application is containerized with Docker and can be deployed to any VPS or cloud provider.\n- A GitHub Actions workflow is provided for CI/CD, building and deploying the Docker image to your server.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fghlps%2Fguimox-auth","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fghlps%2Fguimox-auth","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fghlps%2Fguimox-auth/lists"}