这是一个名为 spring-security-jwt-guide 的 Linux 应用,其最新版本可以下载为 spring-security-jwt-guidesourcecode.tar.gz。它可以在免费的工作站托管服务提供商 OnWorks 上在线运行。
Download and run online this app named spring-security-jwt-guide with OnWorks for free.
请按照以下说明运行此应用程序:
- 1. 在您的 PC 中下载此应用程序。
- 2. 在我们的文件管理器 https://www.onworks.net/myfiles.php?username=XXXXX 中输入您想要的用户名。
- 3. 在这样的文件管理器中上传这个应用程序。
- 4. 从此网站启动OnWorks Linux online 或Windows online emulator 或MACOS online emulator。
- 5. 从您刚刚启动的 OnWorks Linux 操作系统,使用您想要的用户名转到我们的文件管理器 https://www.onworks.net/myfiles.php?username=XXXXX。
- 6. 下载应用程序,安装并运行。
SCREENSHOTS
Ad
spring-security-jwt-guide
商品描述
This project is a comprehensive example repository that demonstrates how to secure a Spring Boot application using Spring Security and JSON Web Tokens (JWT). It is built on Spring Boot 3.x and Java 21, and includes integrations such as Spring Security 6.x, JPA (via Hibernate) for persistence, and Redis for session/token management. The goal is to show how to migrate from stateful, session-based auth toward stateless, modern REST API authentication using JWTs, roles, and permission checks. The code covers typical flows like user registration, login, logout, refreshing or invalidating tokens, and endpoint authorization with annotations like @PreAuthorize. It’s cleaner and more up-to-date than many older tutorials, reflecting current Spring and Java versions and allowing direct experimentation by developers.
功能
- JWT-based authentication and authorization integrated with Spring Security
- Stateless REST API design with user registration, login, logout, and protected endpoints
- Role and permission model implemented via JPA many-to-many relationships
- Redis integration for tracking/invalidation of active tokens and sessions
- Uses Spring Boot 3.x, Java 21, Spring Security 6.x for modern stack
- Includes sample database (H2) and ready startup to explore authentication flows
程式语言
爪哇岛
分类
This is an application that can also be fetched from https://sourceforge.net/projects/spring-security-jwt.mirror/. It has been hosted in OnWorks in order to be run online in an easiest way from one of our free Operative Systems.
