# dromara/Sa-Token

✨ 开源、免费、一站式 Java 权限认证框架，让鉴权变得简单、优雅！—— 登录认证、权限认证、分布式 Session 会话、微服务网关鉴权、SSO 单点登录、OAuth2.0 统一认证、jwt 集成、API Key 秘钥授权、API 参数签名

Repository: https://github.com/dromara/Sa-Token
Canonical: https://ross.abutalabs.com/products/sa-token
Homepage: https://sa-token.com
Language: Java
License: Apache-2.0
License Family: permissive
Topics: java, token, authorization, sso, aouth2, springcloud
Last push: 2026-08-26T12:22:47+00:00

## Health v2 (maintenance only)
Score: 95/100 (v2, computed 2026-09-02T17:46:02.011165+00:00)
- activity 99, release rhythm 86, longevity 100
- inputs: {"age_days": 2403, "days_push": 7, "days_rel": 14, "gap_med": 41.0, "n_releases_24m": 7}
- flags: none
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 19005, forks 2911 (observed 2026-08-28T04:11:27.341867+00:00)

## What it is
Sa-Token is a lightweight, open-source Java authentication and authorization framework covering login authentication, permission checks, distributed sessions, SSO, OAuth2.0, JWT integration, and microservice gateway auth. It integrates out-of-the-box with Spring Boot, Solon, JFinal, and other common Java web frameworks.

## Use cases
- add login authentication to a Spring Boot application
- implement role-based and permission-based access control in Java
- set up single sign-on (SSO) across multiple systems
- build an OAuth2.0 authorization server
- manage distributed sessions across microservices
- kick users offline or ban accounts programmatically
- secure gateway-level authentication in Spring Cloud
- integrate JWT-based token auth in a Java web app

## When to choose
- you need a one-stop Java auth solution covering login, permissions, SSO, and OAuth2.0
- you want minimal configuration and simple static-call APIs for authentication
- you are building Spring Boot or microservice (Spring Cloud) applications needing unified auth
- you need session management features like kick-offline, account bans, and auto-renewal

## When to avoid
- you are not working on the JVM/Java platform
- you need a standards-compliant implementation of Spring Security or Jakarta EE security specs
- your project requires fine-grained policy engines like OPA or Casbin-style ABAC

## Facets
- artifact type: framework
- maturity: stable
- function: auth, authorization, middleware, security
- domain: security, web-development, backend, developer-tools
- platform: jvm, cross-platform
- tags: java, sso, oauth2, jwt, session-management, microservices, spring-boot, token-authentication, single-sign-on, api-key, spring

## Member repositories
- dromara/Sa-Token (main) score 95

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:11:27.341867+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-29T17:00:42.477677+00:00, confidence not recorded.
  - readme: https://github.com/dromara/Sa-Token (fetched 2026-08-28T04:11:27.341867+00:00, sha a385f6f7ad31)
  - homepage: https://sa-token.com (fetched 2026-08-29T07:58:56.804932+00:00, sha c288a10a9abd)
- Data as of 2026-08-30T08:39:29.467469+00:00.
