Seven Open‑Source OAuth and SSO Projects for Developers
This article introduces seven open‑source OAuth/SSO solutions—including oauth2‑shiro, tkey, MaxKey, spring‑lhbauth, oauth2, oauthserver, and JustAuth—detailing their features, supported protocols, and repository links to help developers implement secure authentication and token management in web and mobile applications.
Most modern web applications require login, registration, password encryption, and token management; to protect user privacy and simplify usage, OAuth and single sign‑on (SSO) systems have become essential. Below are six (plus one) open‑source projects that address these needs for developers.
1. oauth2‑shiro
Project URL: https://gitee.com/mkk/oauth2-shiro
Integrates Apache Oltu with Shiro to provide a lightweight OAuth2 framework, offering different implementations for web and mobile scenarios.
2. tkey
A single‑sign‑on system designed around the OAuth 2.0 standard. It uses pure HTTP, works on any device or scenario, is stateless across domains, and can be horizontally scaled for high availability.
3. MaxKey
Project URL: https://gitee.com/maxkeytop/MaxKey
MaxKey is an enterprise‑grade IAM and authentication product supporting OAuth 2.0/OpenID Connect, SAML 2.0, JWT, CAS, SCIM and more, offering user identity management, authentication, SSO, RBAC and resource management.
4. spring‑lhbauth
Project URL: https://gitee.com/lvhaibao/spring-lhbauth
Implements authentication and authorization based on OAuth2 and JWT.
5. oauth2
Project URL: https://gitee.com/lyric/oauth2
A Golang implementation of an OAuth 2.0 server following RFC 6749, offering simple, flexible, modular usage with support for in‑memory, file, Redis and MongoDB storage.
6. oauthserver
Project URL: https://gitee.com/jeesun/oauthserver
A complete, standalone OAuth2 server microservice based on Spring Boot; after creating the required tables and configuring the database connection, you obtain a ready‑to‑use OAuth2 server.
7. JustAuth
Project URL: https://gitee.com/yadong.zhang/JustAuth
JustAuth is a third‑party login utility library that abstracts away cumbersome SDKs, making authentication "so easy!". It integrates dozens of platforms such as GitHub, Gitee, Alipay, Weibo, WeChat, Google, Facebook, Twitter, StackOverflow, etc.
For more resources, follow the author, join the architecture community, and share the article to help others advance their knowledge.
Java Architect Essentials
Committed to sharing quality articles and tutorials to help Java programmers progress from junior to mid-level to senior architect. We curate high-quality learning resources, interview questions, videos, and projects from across the internet to help you systematically improve your Java architecture skills. Follow and reply '1024' to get Java programming resources. Learn together, grow together.
How this landed with the community
Was this worth your time?
0 Comments
Thoughtful readers leave field notes, pushback, and hard-won operational detail here.