{"id":15790639,"url":"https://github.com/rudradcruze/securityapplication","last_synced_at":"2026-04-13T07:02:20.557Z","repository":{"id":252106610,"uuid":"839360822","full_name":"rudradcruze/SecurityApplication","owner":"rudradcruze","description":"This project is a Spring Boot application that provides security features using JWT authentication. It includes custom filters for JWT authentication and response logging.","archived":false,"fork":false,"pushed_at":"2024-08-12T16:18:57.000Z","size":33,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2024-10-11T22:18:40.254Z","etag":null,"topics":["custom-filters","java","jwt-authentication","logging","maven","security","spring-boot","stateless-session"],"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/rudradcruze.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-08-07T13:03:38.000Z","updated_at":"2024-08-12T16:22:45.000Z","dependencies_parsed_at":"2024-08-12T18:39:05.090Z","dependency_job_id":"2f93810d-de8c-44f3-a4ea-aefa20fc2dc5","html_url":"https://github.com/rudradcruze/SecurityApplication","commit_stats":{"total_commits":7,"total_committers":1,"mean_commits":7.0,"dds":0.0,"last_synced_commit":"c33a876e794f81d6170ae984c14220484c3d9e90"},"previous_names":["rudradcruze/securityapplication"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/rudradcruze/SecurityApplication","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rudradcruze%2FSecurityApplication","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rudradcruze%2FSecurityApplication/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rudradcruze%2FSecurityApplication/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rudradcruze%2FSecurityApplication/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/rudradcruze","download_url":"https://codeload.github.com/rudradcruze/SecurityApplication/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rudradcruze%2FSecurityApplication/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31742941,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-13T06:26:45.479Z","status":"ssl_error","status_checked_at":"2026-04-13T06:26:44.645Z","response_time":93,"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":["custom-filters","java","jwt-authentication","logging","maven","security","spring-boot","stateless-session"],"created_at":"2024-10-04T22:22:09.094Z","updated_at":"2026-04-13T07:02:20.523Z","avatar_url":"https://github.com/rudradcruze.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Security Application\n\n## Overview\nThis project is a Spring Boot application that provides security features using JWT authentication. It includes custom filters for JWT authentication and response logging.\n\n## Features\n- JWT Authentication\n- Stateless session management\n- Custom filters for request and response logging\n- Secure endpoints with role-based access control\n\n## Endpoints\n- `POST /auth/login` - Authenticate user and generate JWT token\n- `POST /auth/register` - Register a new user\n- `GET /posts` - Public endpoint accessible without authentication\n- `GET /error` - Public endpoint for error handling\n- `GET /secure` - Secure endpoint accessible only with valid JWT token\n\n## Dependencies\n- Spring Boot Starter Web\n- Spring Boot Starter Security\n- Spring Boot Starter Data JPA\n- Lombok\n- Jakarta Servlet API\n- Spring Web\n\n## Installation\n1. Clone the repository:\n    ```sh\n    git clone https://github.com/rudradcruze/securityapp.git\n    ```\n2. Navigate to the project directory:\n    ```sh\n    cd securityapp\n    ```\n3. Build the project using Maven:\n    ```sh\n    mvn clean install\n    ```\n4. Run the application:\n    ```sh\n    mvn spring-boot:run\n    ```\n\n## Configuration\n- Configure the database connection in `application.properties`.\n- Set up JWT secret and expiration time in `application.properties`.\n\n## Usage\n1. Register a new user by sending a POST request to `/auth/register` with user details.\n2. Authenticate the user by sending a POST request to `/auth/login` with credentials to receive a JWT token.\n3. Use the JWT token to access secure endpoints by including it in the `Authorization` header as `Bearer \u003ctoken\u003e`.\n\n## Custom Filters\n### JwtAuthFilter\n- Validates the JWT token and sets the authentication in the security context.\n\n### ResponseLoggerFilter\n- Logs the details of each request and response for debugging and monitoring purposes.\n\n## Exception Handling\n- Custom exception handling is implemented to resolve exceptions and provide meaningful error responses.\n\n## 🚀 About Me\n\nTech-savvy learner/programmer pushing boundaries of online tech. Passionate about new tools, seeking challenges to advance skills.\n\n## 🔗 Social Links\n\n![Name](https://img.shields.io/badge/Name-Francis%20Rudra%20D%20Cruze-yellowgreen?style=for-the-badge)\n[![linkedin](https://img.shields.io/badge/linkedin-0A66C2?style=for-the-badge\u0026logo=linkedin\u0026logoColor=white)](https://www.linkedin.com/in/rudradcruze)\n[![twitter](https://img.shields.io/badge/twitter-1DA1F2?style=for-the-badge\u0026logo=twitter\u0026logoColor=white)](https://twitter.com/rudradcruze)\n[![Facebook](https://img.shields.io/badge/facebook-4267B2?style=for-the-badge\u0026logo=facebook\u0026logoColor=white)](https://facebook.com/rudradcruze)\n[![francisrudra@gmail.com](https://img.shields.io/badge/gmail-4267B2?style=for-the-badge\u0026logo=gmail\u0026logoColor=white)](mailto:francisrudra@gmail.com)","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frudradcruze%2Fsecurityapplication","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frudradcruze%2Fsecurityapplication","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frudradcruze%2Fsecurityapplication/lists"}