# spring-guides/tut-spring-security-and-angular-js

Spring Security and Angular:: A tutorial on how to use Spring Security with a single page application with various backend architectures, ranging from a simple single server to an API gateway with OAuth2 authentication.

Repository: https://github.com/spring-guides/tut-spring-security-and-angular-js
Canonical: https://ross.abutalabs.com/products/tut-spring-security-and-angular-js
Homepage: https://spring.io/guides/tutorials/spring-security-and-angular-js/
Language: Java
License Family: other
Last push: 2026-08-09T10:07:11+00:00

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

## Adoption (not part of the score)
Stars 1721, forks 1605 (observed 2026-08-28T04:05:26.846687+00:00)

## What it is
A tutorial series from the Spring guides repository showing how to secure an Angular single page application with Spring Security and Spring Boot. It progresses through multiple backend architectures, from a simple single server to an API gateway with OAuth2 authentication.

## Use cases
- secure an angular spa with spring security
- learn oauth2 login with spring boot backend
- add authentication to a single page application
- set up an api gateway with oauth2 for a spa
- understand session vs token auth in spring
- build a rest api backend for angular with login

## When to choose
- you are building a Spring Boot backend with an Angular frontend and need authentication
- you want a step-by-step walkthrough of Spring Security with SPAs
- you need to learn OAuth2 and API gateway patterns in the Spring ecosystem

## When to avoid
- you use React, Vue, or another frontend framework instead of Angular
- you need production-ready reference code rather than a tutorial
- you want a non-Java backend stack

## Facets
- artifact type: learning-resource
- maturity: active
- function: auth, security, web-framework, http-server
- domain: web-development, security, backend, tutorials, developer-tools
- platform: jvm, browser
- tags: spring-security, spring-boot, angular, oauth2, single-page-application, api-gateway, tutorial-series, java, web-server

## Member repositories
- spring-guides/tut-spring-security-and-angular-js (main) score 75

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:05:26.846687+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:34:02.954338+00:00, confidence not recorded.
  - homepage: https://spring.io/guides/tutorials/spring-security-and-angular-js/ (fetched 2026-08-29T11:09:50.014173+00:00, sha 2f3f5be8cf78)
  - site_page: https://spring.io/quickstart (fetched 2026-08-29T11:09:50.021103+00:00, sha fc64dd950363)
  - site_page: https://docs.spring.io/spring-boot/docs/current/reference/htmlsingle (fetched 2026-08-29T11:09:50.024443+00:00, sha 6281e44f48f6)
  - site_page: https://enterprise.spring.io (fetched 2026-08-29T11:09:50.019136+00:00, sha 85ac7d6d5114)
  - site_page: https://enterprise.spring.io/lts-releases (fetched 2026-08-29T11:09:50.022705+00:00, sha 3251cc8760b6)
- Data as of 2026-08-30T08:39:29.467469+00:00.
