awesome-repositories.com
Blog
MCP
awesome-repositories.com

Discover the best open-source repositories with AI-powered search.

ExploreCurated searchesOpen-source alternativesSelf-hosted softwareBlogSitemap
ProjectMCP serverAboutHow we rankPress
LegalPrivacyTerms
© 2026 Bringes Technology SRL·VAT RO45896025·hello@awesome-repositories.com
·
dromara avatar

dromara/Sa-Token

0
View on GitHub↗
18,626 stars·2,884 forks·Java·apache-2.0·9 viewssa-token.cc↗

Sa Token

Sa-Token is a Java-based authentication and authorization framework designed to manage user sessions, permissions, and identity verification within web applications and microservice architectures. It provides a centralized security layer that enforces access control policies and identity validation across distributed service environments and API gateways.

The framework distinguishes itself through its support for cross-domain single sign-on and its ability to function as an OAuth2 identity provider. It manages user session lifecycles by applying configurable rules for single or multi-login requirements and synchronizes authentication states across multiple servers and independent application instances using external, persistent storage.

Beyond core identity management, the project covers a broad range of security capabilities including role-based access control and interceptor-based enforcement. It integrates with diverse web frameworks through an adapter-based approach, allowing for consistent security enforcement regardless of the underlying application architecture.

Features

  • Authentication and Authorization - Provides a comprehensive framework for managing user authentication, session lifecycles, and access control permissions in Java applications.
  • Identity Providers - Implements custom identity provider services using standard authorization protocols.
  • OAuth2 Providers - Implements standard OAuth2 authorization protocols to secure inter-service communication and manage user access across diverse platforms.
  • Role-Based Access Control - Enforces access control by evaluating user permissions against defined roles and security policies.
  • Single Sign-On - Supports cross-domain single sign-on by sharing authentication tokens through secure centralized storage.
  • Cross-Domain Authentication - Enables secure authentication across multiple domains by sharing tokens through centralized storage.
  • Microservices Security - Enforces centralized identity verification and access control policies across distributed microservice architectures and API gateways.
  • Session Management - Coordinates user login states and authentication sessions across multiple domains and microservices.
  • Session Management Systems - Synchronizes user login states and authentication tokens across multiple servers and independent application instances.
  • Token-Based Authentication - Implements stateless authentication using cryptographically signed tokens to verify user identity without server-side state.
  • Authentication Login Handlers - Manages active user sessions across devices with configurable rules for single or multi-login requirements.
  • Distributed Authentication Strategies - Centralizes authentication and session management across microservices to ensure consistent security enforcement.
  • Session Management Policies - Manages the lifecycle of active login sessions with configurable policies for concurrent access.
  • External Database Persistence - Persists authentication session data in external databases to ensure continuity across multiple application instances.
  • Session Authentication - Maintains persistent user login states across application restarts and various devices.
  • Web Framework Integrations - Provides adapters and middleware to integrate authentication logic with various web frameworks and server runtimes.
  • Java 项目 - Listed in the “Java 项目” section of the Great Open Source Project awesome list.
  • Inter-Service Authentication - Validates identity and access permissions during inter-service communication and at the gateway level.
  • Request Interceptors - Hooks into the request lifecycle to validate user identity and permissions before accessing protected resources.

Star history

Star history chart for dromara/sa-tokenStar history chart for dromara/sa-token

AI search

Explore more awesome repositories

Describe what you need in plain English — the AI ranks thousands of curated open-source projects by relevance.

Start searching with AI

Frequently asked questions

What does dromara/sa-token do?

Sa-Token is a Java-based authentication and authorization framework designed to manage user sessions, permissions, and identity verification within web applications and microservice architectures. It provides a centralized security layer that enforces access control policies and identity validation across distributed service environments and API gateways.

What are the main features of dromara/sa-token?

The main features of dromara/sa-token are: Authentication and Authorization, Identity Providers, OAuth2 Providers, Role-Based Access Control, Single Sign-On, Cross-Domain Authentication, Microservices Security, Session Management.

What are some open-source alternatives to dromara/sa-token?

Open-source alternatives to dromara/sa-token include: casdoor/casdoor — Casdoor is a centralized identity and access management platform that functions as an OAuth 2.0 authorization server.… zitadel/zitadel — This project is a cloud-native identity and access management platform designed to centralize authentication,… zlt2000/microservices-platform — This project is a comprehensive enterprise architecture for building multi-tenant distributed systems, implemented as… microsoft/security-101 — Security-101 is a vendor-agnostic, foundational cybersecurity learning curriculum organized into modular,… kanidm/kanidm — Kanidm is a centralized identity management server designed to handle authentication, authorization, and directory… supertokens/supertokens-core — SuperTokens Core is an open-source, self-hosted authentication and identity management platform designed for…

Open-source alternatives to Sa Token

Similar open-source projects, ranked by how many features they share with Sa Token.
  • casdoor/casdoorcasdoor avatar

    casdoor/casdoor

    13,814View on GitHub↗

    Casdoor is a centralized identity and access management platform that functions as an OAuth 2.0 authorization server. It provides a comprehensive suite of services for managing user identities, authentication sessions, and access policies across both web and machine-to-machine applications. Built with a decoupled frontend-backend architecture in Go, the platform supports high-concurrency environments and offers a web-based management interface for administrative tasks. The platform distinguishes itself through its extensive support for federated identity management, allowing integration with

    Goai-gatewayauthauthentication
    View on GitHub↗13,814
  • zitadel/zitadelzitadel avatar

    zitadel/zitadel

    13,029View on GitHub↗

    This project is a cloud-native identity and access management platform designed to centralize authentication, authorization, and identity lifecycle management. It functions as a standards-compliant OpenID Connect authorization server, providing secure session management and token issuance for web, mobile, and device-based applications. The platform is built to handle complex identity requirements through stateless token authentication and support for modern passwordless methods, including biometrics and hardware keys. What distinguishes this platform is its native support for multi-tenant env

    Go2faauthenticationauthorization
    View on GitHub↗13,029
  • zlt2000/microservices-platformzlt2000 avatar

    zlt2000/microservices-platform

    4,735View on GitHub↗

    This project is a comprehensive enterprise architecture for building multi-tenant distributed systems, implemented as a Spring Cloud microservices platform. It provides a complete framework for managing microservices, focusing on multi-tenant data architecture and centralized identity provision. The platform is distinguished by its integrated approach to identity and security, utilizing an OAuth2 identity provider to manage single sign-on, role-based access control, and JWT token issuance across distributed services. It further separates organizational boundaries through multi-tenant data iso

    Javaelkgpejava
    View on GitHub↗4,735
  • microsoft/security-101microsoft avatar

    microsoft/Security-101

    6,203View on GitHub↗

    Security-101 is a vendor-agnostic, foundational cybersecurity learning curriculum organized into modular, framework-aligned modules. It is designed to build core knowledge across multiple security domains without tying content to specific products or platforms, making it suitable for both beginners and professionals seeking a structured introduction to the field. The curriculum is built around established security frameworks, including the MITRE ATT&CK framework for standardized threat analysis and the NIST Cybersecurity Framework for incident response workflows. It covers a broad range of do

    HTMLappseccia-triaddata-protection
    View on GitHub↗6,203
  • See all 30 alternatives to Sa Token→