{"id":24525833,"url":"https://github.com/efficientgoose/video-rental-springboot","last_synced_at":"2025-03-15T15:40:45.515Z","repository":{"id":260137011,"uuid":"876879044","full_name":"efficientgoose/video-rental-springboot","owner":"efficientgoose","description":null,"archived":false,"fork":false,"pushed_at":"2024-10-22T17:52:12.000Z","size":53,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-01-22T05:30:59.044Z","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/efficientgoose.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-10-22T17:49:32.000Z","updated_at":"2024-10-22T17:52:17.000Z","dependencies_parsed_at":"2024-10-29T20:20:11.586Z","dependency_job_id":null,"html_url":"https://github.com/efficientgoose/video-rental-springboot","commit_stats":null,"previous_names":["efficientgoose/video-rental-springboot"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/efficientgoose%2Fvideo-rental-springboot","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/efficientgoose%2Fvideo-rental-springboot/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/efficientgoose%2Fvideo-rental-springboot/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/efficientgoose%2Fvideo-rental-springboot/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/efficientgoose","download_url":"https://codeload.github.com/efficientgoose/video-rental-springboot/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243753989,"owners_count":20342537,"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":"2025-01-22T05:29:01.451Z","updated_at":"2025-03-15T15:40:45.466Z","avatar_url":"https://github.com/efficientgoose.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Spring Security Demo\n\nThis project demonstrates a simple authentication and authorization system using Spring Security in a Spring Boot application.\n\n\n\n## Running the Project\n\nTo run the project, you can use the Gradle Wrapper provided in the repository. Follow these steps:\n\n1. Open a terminal.\n\n2. Navigate to the root directory of the project where the `build.gradle` file is located.\n\n3. Run the following command:\n    `./gradlew bootrun`\n## AuthController\n\nThe `AuthController` class defines endpoints for user authentication and registration.\n\n- `/register`: Endpoint for user registration.\n- `/login`: Endpoint for user login.\n\n## Request Objects\n\n### AuthRequest\n\n- `email`: User's email address.\n- `password`: User's password.\n\n### RegisterRequest\n\n- `name`: User's name.\n- `email`: User's email address.\n- `password`: User's password.\n- `role`: User's role. Default role is USER if not specified.\n\n## Response Objects\n\n### AuthResponse\n\n- `message`: Success message.\n\n## SpringsecuritydemoApplication\n\nThis class is the main entry point of the application.\n\n- `/`: Endpoint for welcoming authenticated users.\n- `/admins`: Endpoint for welcoming authenticated users with ADMIN role.\n\n## PreAuthorize Annotation\n\n- `@PreAuthorize(\"hasAuthority('ADMIN')\")`: Restricts access to the `/admins` endpoint to users with the ADMIN role.\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fefficientgoose%2Fvideo-rental-springboot","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fefficientgoose%2Fvideo-rental-springboot","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fefficientgoose%2Fvideo-rental-springboot/lists"}