{"id":20807096,"url":"https://github.com/pycreater/springsecurity","last_synced_at":"2026-04-25T13:03:11.155Z","repository":{"id":246160244,"uuid":"819729501","full_name":"Pycreater/SpringSecurity","owner":"Pycreater","description":null,"archived":false,"fork":false,"pushed_at":"2024-06-26T14:18:09.000Z","size":35,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-01-18T13:39:32.798Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"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/Pycreater.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}},"created_at":"2024-06-25T05:07:41.000Z","updated_at":"2024-06-26T14:20:01.000Z","dependencies_parsed_at":"2024-11-18T08:15:32.697Z","dependency_job_id":null,"html_url":"https://github.com/Pycreater/SpringSecurity","commit_stats":null,"previous_names":["pycreater/springsecurity"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Pycreater%2FSpringSecurity","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Pycreater%2FSpringSecurity/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Pycreater%2FSpringSecurity/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Pycreater%2FSpringSecurity/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Pycreater","download_url":"https://codeload.github.com/Pycreater/SpringSecurity/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243152875,"owners_count":20244657,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","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":"2024-11-17T19:30:58.558Z","updated_at":"2025-12-25T13:45:19.304Z","avatar_url":"https://github.com/Pycreater.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"# SpringSecurity - User Registration and Authentication\n\nWelcome to the SpringSecurity project! This application demonstrates a complete user registration, authentication, and authorization flow using Spring Boot, Spring Security, and OAuth2.\n\n## Table of Contents\n\n1. [Introduction](#introduction)\n2. [Features](#features)\n3. [Tech Stack](#tech-stack)\n4. [Installation](#installation)\n5. [Configuration](#configuration)\n6. [Usage](#usage)\n7. [Endpoints](#endpoints)\n8. [Testing](#testing)\n9. [Contributing](#contributing)\n10. [License](#license)\n11. [Contact](#contact)\n\n## Introduction\n\nThis project showcases a secure user registration and login system with role-based access control. It is built with Spring Boot and integrates Spring Security for authentication and authorization, along with OAuth2 for secure API access.\n\n## Features\n\n- User Registration\n- User Login\n- Password Encryption\n- Role-Based Authorization\n- OAuth2 Integration\n- JWT Token Generation and Validation\n- RESTful API\n\n## Tech Stack\n\n- **Backend:** Spring Boot, Spring Security, OAuth2\n- **Database:** MySQL\n- **Build Tool:** Maven\n- **Testing:** JUnit, Postman\n\n## Installation\n\n### Prerequisites\n\n- Java 11 or higher\n- Maven\n- MySQL Server\n\n### Steps\n\n1. **Clone the repository:**\n    ```sh\n    git clone https://github.com/Pycreater/SpringSecurity.git\n    cd SpringSecurity\n    ```\n\n2. **Configure MySQL:**\n    Create a database named `spring_security` and update the `application.properties` file with your MySQL credentials.\n    ```properties\n    spring.datasource.url=jdbc:mysql://localhost:3306/spring_security\n    spring.datasource.username=your_username\n    spring.datasource.password=your_password\n    ```\n\n3. **Build the project:**\n    ```sh\n    mvn clean install\n    ```\n\n4. **Run the application:**\n    ```sh\n    mvn spring-boot:run\n    ```\n\n## Configuration\n\nEnsure your `application.properties` is properly configured for database and security settings. For OAuth2, you might need to set up additional properties like client ID, client secret, and other OAuth2 configurations.\n\n## Usage\n\nOnce the application is running, you can access the endpoints using a tool like Postman or directly via a web browser. The base URL for the APIs is `http://localhost:8080`.\n\n## Endpoints\n\n- **User Registration:** `POST /api/auth/register`\n- **User Login:** `POST /api/auth/login`\n- **Get User Details:** `GET /api/user/{id}`\n- **Protected Resource:** `GET /api/protected`\n\nRefer to the API documentation for detailed request and response formats.\n\n## Testing\n\nTo run the tests, use the following command:\n```sh\nmvn test\n```\n\n### Testing with Postman\nYou can also use Postman to manually test the endpoints. A Postman collection is included in the repository.\n\n## Contributing\nContributions are welcome! Please follow these steps:\n\n1. Fork the repository\n2. Create your feature branch (`git checkout -b feature/YourFeature`)\n3. Commit your changes (`git commit -m 'Add some feature'`)\n4. Push to the branch (`git push origin feature/YourFeature`)\n5. Open a pull request\n\n## License\nThis project is licensed under the MIT License. See the [LICENSE](LICENSE) file for details.\n\n## Contact\nAuthor: Your Name  \nEmail: [pratikyadav3949@gmail.com](mailto:pratikyadav3949@gmail.com)  \nLinkedIn: [(https://www.linkedin.com/in/your-profile)](https://www.linkedin.com/in/pratikyadav3949/)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpycreater%2Fspringsecurity","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpycreater%2Fspringsecurity","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpycreater%2Fspringsecurity/lists"}