{"id":31699418,"url":"https://github.com/sumitmadaan16/spring-security-demo","last_synced_at":"2026-05-05T19:32:52.685Z","repository":{"id":317260525,"uuid":"1066662193","full_name":"sumitmadaan16/spring-security-demo","owner":"sumitmadaan16","description":"Spring Boot project with user registration, password encryption, and Basic Auth using Spring Security. Stateless session management, PostgreSQL integration, and clean layered architecture. Ideal for backend authentication demos.","archived":false,"fork":false,"pushed_at":"2025-10-01T17:33:24.000Z","size":23,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-10-08T19:47:34.400Z","etag":null,"topics":["authentication","backend","backend-api","java","jwt","jwt-authentication","jwt-token","postgresql","rest-api","restful-api","spring-boot","spring-mvc","spring-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":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/sumitmadaan16.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":"2025-09-29T19:42:15.000Z","updated_at":"2025-10-01T17:34:35.000Z","dependencies_parsed_at":"2025-10-08T19:43:48.024Z","dependency_job_id":null,"html_url":"https://github.com/sumitmadaan16/spring-security-demo","commit_stats":null,"previous_names":["sumitmadaan16/spring-security-demo"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/sumitmadaan16/spring-security-demo","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sumitmadaan16%2Fspring-security-demo","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sumitmadaan16%2Fspring-security-demo/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sumitmadaan16%2Fspring-security-demo/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sumitmadaan16%2Fspring-security-demo/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/sumitmadaan16","download_url":"https://codeload.github.com/sumitmadaan16/spring-security-demo/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sumitmadaan16%2Fspring-security-demo/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32664946,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-05T11:29:49.557Z","status":"ssl_error","status_checked_at":"2026-05-05T11:29:48.587Z","response_time":54,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5: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":["authentication","backend","backend-api","java","jwt","jwt-authentication","jwt-token","postgresql","rest-api","restful-api","spring-boot","spring-mvc","spring-security","springboot"],"created_at":"2025-10-08T19:43:44.861Z","updated_at":"2026-05-05T19:32:52.681Z","avatar_url":"https://github.com/sumitmadaan16.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"📌 GitHub Project Description\n\n\u003e 🔐 Spring Security Demo — User Registration \u0026 Authentication  \n\u003e A lightweight Spring Boot application showcasing secure user registration and Basic Authentication using Spring Security. Built with a PostgreSQL backend and designed for stateless session management,\n\u003e this project demonstrates how to encrypt passwords, authenticate users, and protect endpoints with minimal configuration.\n\n🚀 Features\n- ✅ User registration with BCrypt password hashing  \n- 🔐 Basic Authentication for protected endpoints  \n- 🧼 Stateless session management (`SessionCreationPolicy.STATELESS`)  \n- 🗃️ PostgreSQL integration via Spring Data JPA  \n- 🧠 Clean architecture with service, controller, and entity layers  \n- 🧪 Tested using Postman\n\n🛠️ Tech Stack\n- Java 17  \n- Spring Boot 3.5  \n- Spring Security  \n- Spring Data JPA  \n- PostgreSQL  \n- Lombok\n\n 📂 Endpoints\n| Method | Endpoint     | Description                     | Auth Required |\n|--------|--------------|----------------------------------|---------------|\n| POST   | `/register`  | Register a new user              | ❌ No          |\n| GET    | `/greet`     | Greet user by username           | ✅ Yes         |\n\n⚙️ Setup Instructions\n1. Clone the repo  \n2. Create `application.properties` with your DB credentials  \n3. Run the app using `mvn spring-boot:run`  \n4. Test endpoints using Postman or curl\n\n📄 Sample `application.properties`\n```properties\nspring.datasource.url=jdbc:postgresql://localhost:5432/your_db\nspring.datasource.username=your_username\nspring.datasource.password=your_password\nspring.jpa.hibernate.ddl-auto=update\n```\n\n👨‍💻 Author\n**Sumit Madaan** — Backend Developer \u0026 Security Enthusiast  \nexploring scalable backend architectures, authentication flows, and system design.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsumitmadaan16%2Fspring-security-demo","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsumitmadaan16%2Fspring-security-demo","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsumitmadaan16%2Fspring-security-demo/lists"}