Registry / auth / sa-token-core

sa-token-core

JSON →
library1.45.0javamavenunverified

A lightweight Java web authentication and authorization framework with comprehensive features and easy usage.

<dependency> <groupId>cn.dev33</groupId> <artifactId>sa-token-core</artifactId> <version>1.45.0</version> </dependency>
INSTALL
IMPORT
SIG · SA-TOKEN-CORE
S
sa-token-core
authjavav1.45.0
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

StpUtil
cn.dev33.satoken.stp.StpUtil

Login a user and check authentication status.

import cn.dev33.satoken.stp.StpUtil; // Login a user by ID StpUtil.login(10001); // Check if logged in System.out.println(StpUtil.isLogin());
Debug
Known issues
gotchaSa-Token uses a default token name 'satoken' which may conflict with other frameworks; configure via application properties.
fix
Set sa-token.token-name in your configuration to a custom value.
affects: < 1.30.0
Upgrade
Version history
1.45.0latest on Maven
Audit
Dependencies

No dependency data recorded yet.

Agent activity
16 hits · last 30 days
node
14
OpenAI (training)
1
Resources
sa-token-core — mvn dependency:get sa-token-core · libregistry