JustAuth is a Java component that wires social and enterprise OAuth providers into applications without vendor-specific SDKs. It exposes a small API with builder-style configuration.
Overview
JustAuth is a third-party authorization login toolkit for Java backends. It targets teams that want one integration surface instead of maintaining separate SDKs for each identity provider.
The library ships connectors for dozens of domestic and international platforms, including GitHub, Gitee, QQ, WeChat, Alipay, Weibo, Baidu, DingTalk, Google, Facebook, Twitter, Microsoft, Apple ID, Slack, Amazon, and many others listed in its documentation. Teams can also register custom OAuth endpoints through shared interfaces.
Configuration supports static or dynamically loaded client credentials, pluggable HTTP clients such as Hutool, Apache HttpClient, or OkHttp, custom OAuth state storage for clustered deployments, adjustable OAuth scopes, and extension points for proprietary identity servers.
Usage typically adds a Maven or Gradle dependency, picks an HTTP adapter if needed, constructs an Auth request for the chosen provider, and handles the returned user profile after the authorization redirect completes.
Key features
- Dozens of built-in OAuth providers
- Builder and plain API styles
- Custom OAuth platform adapters
- Pluggable HTTP client backends
- Configurable state caching
- Adjustable authorization scopes
- Maven and Gradle distribution
Use cases
- Adding social login to Java web apps
- Supporting China-region identity providers
- Unifying multiple OAuth vendors behind one API
- Connecting enterprise WeChat or DingTalk auth
- Replacing per-provider OAuth SDKs