{"id":28135908,"url":"https://github.com/fernanda-kipper/auth-api","last_synced_at":"2025-07-07T21:14:16.544Z","repository":{"id":283772507,"uuid":"658423030","full_name":"Fernanda-Kipper/auth-api","owner":"Fernanda-Kipper","description":"This repository contains a simple Java Spring project that implements authentication and authorization using Spring Security","archived":false,"fork":false,"pushed_at":"2023-06-25T20:32:03.000Z","size":71,"stargazers_count":262,"open_issues_count":0,"forks_count":79,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-05-07T21:44:23.191Z","etag":null,"topics":["java","spring","spring-boot","spring-security"],"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/Fernanda-Kipper.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":"2023-06-25T17:41:48.000Z","updated_at":"2025-05-02T14:51:35.000Z","dependencies_parsed_at":"2025-03-22T05:01:51.533Z","dependency_job_id":"c1f220d0-9db5-4796-ba05-ee72bcc13fa2","html_url":"https://github.com/Fernanda-Kipper/auth-api","commit_stats":null,"previous_names":["fernanda-kipper/auth-api"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Fernanda-Kipper%2Fauth-api","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Fernanda-Kipper%2Fauth-api/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Fernanda-Kipper%2Fauth-api/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Fernanda-Kipper%2Fauth-api/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Fernanda-Kipper","download_url":"https://codeload.github.com/Fernanda-Kipper/auth-api/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":254170117,"owners_count":22026223,"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":["java","spring","spring-boot","spring-security"],"created_at":"2025-05-14T15:20:18.641Z","updated_at":"2025-05-14T15:21:05.891Z","avatar_url":"https://github.com/Fernanda-Kipper.png","language":"Java","readme":"# Authentication API\n\n![Java](https://img.shields.io/badge/java-%23ED8B00.svg?style=for-the-badge\u0026logo=openjdk\u0026logoColor=white)\n![Spring](https://img.shields.io/badge/spring-%236DB33F.svg?style=for-the-badge\u0026logo=spring\u0026logoColor=white)\n![Postgres](https://img.shields.io/badge/postgres-%23316192.svg?style=for-the-badge\u0026logo=postgresql\u0026logoColor=white)\n![JWT](https://img.shields.io/badge/JWT-black?style=for-the-badge\u0026logo=JSON%20web%20tokens)\n\nThis project is an API built using **Java, Java Spring, Flyway Migrations, PostgresSQL as the database, and Spring Security and JWT for authentication control.**\n\nThe API was developed for my [Youtube Tutorial](https://www.youtube.com/watch?v=5w-YCcOjPD0), to demonstrate how to configure Authenticatio and Authorization in Spring application using Spring Security.\n\n## Table of Contents\n\n- [Installation](#installation)\n- [Configuration](#configuration)\n- [Usage](#usage)\n- [API Endpoints](#api-endpoints)\n- [Authentication](#authentication)\n- [Database](#database)\n- [Contributing](#contributing)\n\n## Installation\n\n1. Clone the repository:\n\n```bash\ngit clone https://github.com/Fernanda-Kipper/auth-api.git\n```\n\n2. Install dependencies with Maven\n\n3. Install [PostgresSQL](https://www.postgresql.org/)\n\n## Usage\n\n1. Start the application with Maven\n2. The API will be accessible at http://localhost:8080\n\n\n## API Endpoints\nThe API provides the following endpoints:\n\n```markdown\nGET /product - Retrieve a list of all products. (all authenticated users)\n\nPOST /product - Register a new product (ADMIN access required).\n\nPOST /auth/login - Login into the App\n\nPOST /auth/register - Register a new user into the App\n```\n\n## Authentication\nThe API uses Spring Security for authentication control. The following roles are available:\n\n```\nUSER -\u003e Standard user role for logged-in users.\nADMIN -\u003e Admin role for managing partners (registering new partners).\n```\nTo access protected endpoints as an ADMIN user, provide the appropriate authentication credentials in the request header.\n\n## Database\nThe project utilizes [PostgresSQL](https://www.postgresql.org/) as the database. The necessary database migrations are managed using Flyway.\n\n## Contributing\n\nContributions are welcome! If you find any issues or have suggestions for improvements, please open an issue or submit a pull request to the repository.\n\nWhen contributing to this project, please follow the existing code style, [commit conventions](https://www.conventionalcommits.org/en/v1.0.0/), and submit your changes in a separate branch.\n\n\n\n\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffernanda-kipper%2Fauth-api","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ffernanda-kipper%2Fauth-api","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffernanda-kipper%2Fauth-api/lists"}