sa-token-core
Core library for sa-token-rust authentication and authorization framework.
Features
- 🔐 Token Management: Generate, validate, and refresh tokens
- 📦 Session Management: User session storage and retrieval
- 🛡️ Permission & Role System: Fine-grained access control
- 🎯 StpUtil: Simplified utility API
- ⚡ High Performance: Async/await support with zero-copy design
Installation
[]
= "0.1.2"
= "0.1.2"
= { = "1", = ["full"] }
Quick Start
use ;
use MemoryStorage;
use Arc;
async
Core Components
SaTokenManager
Main manager for authentication operations:
- Token generation and validation
- Session management
- Permission and role checking
StpUtil
Utility class providing simplified API:
- Login/Logout operations
- Permission/Role management
- Token information retrieval
See StpUtil Documentation for details.
Documentation
Author
金书记
License
Licensed under either of:
- Apache License, Version 2.0
- MIT License