# Baeldung/spring-security-oauth

Getting Started withg Spring Security OAuth:

Repository: https://github.com/Baeldung/spring-security-oauth
Canonical: https://ross.abutalabs.com/products/baeldung-spring-security-oauth
Homepage: http://bit.ly/github-lsso
Language: Java
License: MIT
License Family: permissive
Topics: spring-security-oauth, oauth, spring-security
Last push: 2026-06-26T07:16:12+00:00

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

## Adoption (not part of the score)
Stars 2025, forks 1908 (observed 2026-08-28T04:06:06.732163+00:00)

## What it is
A companion repository of example modules for Baeldung's Spring Security OAuth tutorials and the 'Learn Spring Security OAuth' course. It contains runnable Spring Boot authorization servers, resource servers, and Angular/React client apps demonstrating OAuth2 flows including JWT, JWS/JWK, and PKCE for JavaScript-only SPAs.

## Use cases
- learn how to implement OAuth2 with Spring Security
- set up an authorization server with Keycloak and a Spring resource server
- secure a REST API with JWT tokens in Spring Boot
- implement the authorization code flow with PKCE in a JavaScript SPA
- see working examples of legacy Spring Security OAuth2 configurations
- understand JWS and JWK usage in Spring Security OAuth2

## When to choose
- you are learning Spring Security's OAuth2 stack from Baeldung tutorials or the LSSO course
- you need runnable reference implementations of OAuth2 clients, resource servers, and authorization servers in Java
- you want to compare legacy Spring Security OAuth with the newer Spring Security 5 OAuth2 stack

## When to avoid
- you need a production-ready OAuth library or framework to drop into your project
- you want actively maintained, up-to-date example code for the latest Spring Security releases
- you are not using the Java/Spring ecosystem

## Facets
- artifact type: learning-resource
- maturity: maintenance
- function: auth, security, developer-tools
- domain: security, web-development, tutorials, developer-tools
- platform: jvm
- tags: oauth2, spring-security, spring-boot, jwt, keycloak, example-code, authorization-server, resource-server, angular, react-spa, web-server

## Member repositories
- Baeldung/spring-security-oauth (main) score 72

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:06:06.732163+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-30T02:59:45.154524+00:00, confidence not recorded.
  - readme: https://github.com/Baeldung/spring-security-oauth (fetched 2026-08-28T04:06:06.732163+00:00, sha 5cc2633c7601)
  - homepage: http://bit.ly/github-lsso (fetched 2026-08-29T10:39:49.597684+00:00, sha 9acefae633c5)
- Data as of 2026-08-30T08:39:29.467469+00:00.
