Overview of ShiroJwt
masterShiroJwt is a Spring Boot-based framework that implements a stateless authentication mechanism using Apache Shiro and Java-JWT. It provides a RESTful API architecture with integrated Redis (Jedis) for caching and token control.
Key features include:
- Stateless Authentication: Uses JWT (JSON Web Tokens) for user identity.
- Token Control: Uses a
RefreshTokenstored in Redis to maintain control over JWTs (e.g., allowing for user logout/revocation). - Automatic Token Refresh: Automatically issues a new
AccessTokenvia theAuthorizationheader when the current one expires, provided theRefreshTokenis still valid. - Secure Password Storage: Uses AES-128 + Base64 encryption combined with the account name to ensure unique ciphertexts even for identical passwords.
- Redis Integration: Overwrites Shiro's default cache mechanism to use Redis for improved scalability.