# szerhusenBC/jwt-spring-security-demo

A demo for using JWT (Json Web Token) with Spring Security and Spring Boot 2

Repository: https://github.com/szerhusenBC/jwt-spring-security-demo
Canonical: https://ross.abutalabs.com/products/jwt-spring-security-demo
Language: Java
License: MIT
License Family: permissive
Topics: jwt, jwt-authentication, spring-security, spring-boot, java, demo, authentication, springframework
Last push: 2022-02-07T06:09:47+00:00

## Health v2 (maintenance only)
Score: 23/100 (v2, computed 2026-09-03T02:20:16.233290+00:00)
- activity 0, release rhythm 8, longevity 100
- inputs: {"age_days": 3818, "days_push": 1668, "days_rel": null, "gap_med": null, "n_releases_24m": 0}
- flags: none
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 3106, forks 1309 (observed 2026-08-28T04:07:43.781890+00:00)

## What it is
A demo application showing how to implement JWT-based authentication with Spring Security and Spring Boot 2, based on a minimal extraction of the JHipster codebase. It includes sample endpoints with role-based access control, an H2 database, and a small JavaScript client for testing.

## Use cases
- learn how to secure a Spring Boot REST API with JWT
- example of JWT authentication with Spring Security
- set up token-based login endpoints in Java
- understand role-based authorization in Spring Security
- starting point for adding JWT auth to a Spring Boot app
- see how to configure Spring Security filters for tokens

## When to choose
- you are learning JWT authentication in the Spring ecosystem
- you want a minimal, readable reference implementation to copy from
- you need a quick demo of role-based endpoint protection with Spring Security

## When to avoid
- you need a production-ready, actively maintained security solution
- you are not using Java or the Spring framework
- you require the latest Spring Boot 3 / Spring Security 6 features

## Facets
- artifact type: learning-resource
- maturity: maintenance
- function: auth, security, web-framework
- domain: security, web-development, developer-tools, tutorials
- platform: jvm
- tags: jwt, spring-boot, spring-security, authentication, demo, token-based-auth, spring

## Member repositories
- szerhusenBC/jwt-spring-security-demo (main) score 23

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:07:43.781890+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-29T18:46:10.107548+00:00, confidence not recorded.
  - readme: https://github.com/szerhusenBC/jwt-spring-security-demo (fetched 2026-08-28T04:07:43.781890+00:00, sha 44f4f1e1347c)
- Data as of 2026-08-30T08:39:29.467469+00:00.
