# bezkoder/spring-boot-spring-security-jwt-authentication

Spring Boot + Security: Token Based Authentication example with JWT, Authorization, Spring Data & MySQL

Repository: https://github.com/bezkoder/spring-boot-spring-security-jwt-authentication
Canonical: https://ross.abutalabs.com/products/spring-boot-spring-security-jwt-authentication
Language: Java
License Family: other
Topics: spring-boot-security, jwt-authentication, spring-boot-server, spring-data, spring-security, spring-boot, spring-boot-2, spring-security-jwt, jwt
Last push: 2024-04-09T04:59:20+00:00

## Health v2 (maintenance only)
Score: 32/100 (v2, computed 2026-09-02T17:46:02.011165+00:00)
- activity 0, release rhythm 35, longevity 100
- inputs: {"age_days": 2514, "days_push": 876, "days_rel": null, "gap_med": null, "n_releases_24m": 0}
- flags: no_releases, no_license
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 1587, forks 897 (observed 2026-08-28T04:05:07.876489+00:00)

## What it is
A Spring Boot example project demonstrating token-based authentication with Spring Security, JWT, role-based authorization, and Spring Data JPA backed by MySQL or PostgreSQL. It serves as a reference implementation and companion code for a tutorial on user registration, login, and refresh tokens.

## Use cases
- add jwt authentication to a spring boot rest api
- learn how spring security handles user login and registration
- implement role-based authorization with spring security
- example of refresh token flow in spring boot
- secure a spring boot backend with token based auth
- set up spring data jpa with mysql for user accounts

## When to choose
- you are learning Spring Security and JWT from a working example
- you want a starter template for a Spring Boot auth backend
- you need a reference for role-based access control with Spring Data JPA

## When to avoid
- you need a production-ready, maintained security library
- you require a licensed artifact for commercial redistribution
- you use a stack other than Java/Spring Boot

## Facets
- artifact type: learning-resource
- maturity: maintenance
- function: auth, authorization, web-framework, orm, database
- domain: backend, web-development, security, developer-tools, tutorials
- platform: jvm, self-hosted
- tags: spring-boot, spring-security, jwt, example-project, rest-api, spring-data-jpa, mysql, postgresql, token-authentication, boilerplate, web-server

## Member repositories
- bezkoder/spring-boot-spring-security-jwt-authentication (main) score 32

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:05:07.876489+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-30T03:55:22.052543+00:00, confidence not recorded.
  - readme: https://github.com/bezkoder/spring-boot-spring-security-jwt-authentication (fetched 2026-08-28T04:05:07.876489+00:00, sha 92df99c51bd9)
- Data as of 2026-08-30T08:39:29.467469+00:00.
