{"id":27057533,"url":"https://github.com/charlybutar21/spring-boot-security-jwt-authentication","last_synced_at":"2026-04-18T04:34:13.209Z","repository":{"id":182835575,"uuid":"668729417","full_name":"charlybutar21/spring-boot-security-jwt-authentication","owner":"charlybutar21","description":"Spring Boot application to implement rest API with JWT authentication","archived":false,"fork":false,"pushed_at":"2023-07-21T14:51:47.000Z","size":103,"stargazers_count":0,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-10-25T18:35:20.601Z","etag":null,"topics":["api-integration","junit","jwt-authentication","mysql","rest-api","solid-principles","spring-boot","spring-data-jpa","spring-mvc","spring-security-jwt","spring-validation"],"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/charlybutar21.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}},"created_at":"2023-07-20T13:13:05.000Z","updated_at":"2023-08-30T15:11:32.000Z","dependencies_parsed_at":"2023-07-21T17:59:44.012Z","dependency_job_id":null,"html_url":"https://github.com/charlybutar21/spring-boot-security-jwt-authentication","commit_stats":null,"previous_names":["charlybutar21/spring-boot-security-jwt-authentication"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/charlybutar21/spring-boot-security-jwt-authentication","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/charlybutar21%2Fspring-boot-security-jwt-authentication","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/charlybutar21%2Fspring-boot-security-jwt-authentication/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/charlybutar21%2Fspring-boot-security-jwt-authentication/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/charlybutar21%2Fspring-boot-security-jwt-authentication/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/charlybutar21","download_url":"https://codeload.github.com/charlybutar21/spring-boot-security-jwt-authentication/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/charlybutar21%2Fspring-boot-security-jwt-authentication/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31957084,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-18T00:39:45.007Z","status":"online","status_checked_at":"2026-04-18T02:00:07.018Z","response_time":103,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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":["api-integration","junit","jwt-authentication","mysql","rest-api","solid-principles","spring-boot","spring-data-jpa","spring-mvc","spring-security-jwt","spring-validation"],"created_at":"2025-04-05T11:28:17.412Z","updated_at":"2026-04-18T04:34:13.187Z","avatar_url":"https://github.com/charlybutar21.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Spring Boot JWT Authentication example with Spring Security \u0026 Spring Data JPA\n\n## User Registration, User Login and Authorization process.\nThe diagram shows flow of how we implement User Registration, User Login and Authorization process.\n\n![spring-boot-jwt-authentication-spring-security-flow](spring-boot-jwt-authentication-spring-security-flow.png)\n\n## Configure Spring Datasource, JPA, App properties\nOpen `src/main/resources/application.properties`\n- MySQL\n```\nspring.datasource.url=jdbc:mysql://localhost:3306/demo_db?useSSL=false\nspring.datasource.username=root\nspring.datasource.password=password\nspring.datasource.driver-class-name=com.mysql.cj.jdbc.Driver\n\nspring.jpa.properties.hibernate.dialect=org.hibernate.dialect.MySQLDialect\nspring.jpa.hibernate.ddl-auto=update\n\n# App Properties\nbezkoder.app.jwtSecret= ======================BezKoder=Spring===========================\nbezkoder.app.jwtExpirationMs=86400000\n```\n## Run Spring Boot application\n```\nmvn spring-boot:run\n```\n\n## Run following SQL insert statements\nOpen `database.sql`\n```\nINSERT INTO roles(name) VALUES('ROLE_USER');\nINSERT INTO roles(name) VALUES('ROLE_MODERATOR');\nINSERT INTO roles(name) VALUES('ROLE_ADMIN');\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcharlybutar21%2Fspring-boot-security-jwt-authentication","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcharlybutar21%2Fspring-boot-security-jwt-authentication","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcharlybutar21%2Fspring-boot-security-jwt-authentication/lists"}