
Spring Boot Security Jwt
JWT authentication and authorization patterns for Spring Boot 3.5.x using Spring Security 6.x and JJWT.
- skills.sh installs
- 4.3K
- GitHub stars
- 372
- last updated
- Aug 21, 2026
What it does
- Covers token generation, validation, refresh rotation, Bearer and cookie authentication, and method-level RBAC with
@PreAuthorize - Includes a
JwtService, aJwtAuthenticationFilterextendingOncePerRequestFilter, aSecurityFilterChainconfig, and auth endpoints for register, authenticate, refresh, and logout - Enforces stateless sessions and token expiry with configurable access and refresh lifetimes, plus token revocation for logout and rotation
- Designed for Spring Boot services that need JWT-based APIs, SPA backends, or OAuth2 and social login integration
Install
$ npx -y skills add giuseppe-trisciuoglio/developer-kit --skill spring-boot-security-jwt -yInstalls into .agents/skills for every agent it finds here, and .claude/skills for Claude Code.
Files
Spring Boot JWT Security
JWT authentication and authorization patterns for Spring Boot 3.5.x using Spring Security 6.x and JJWT. Covers token generation, validation, refresh strategies, RBAC/ABAC, and OAuth2 integration.
Overview
This skill provides implementation patterns for stateless JWT authentication in Spring Boot applications. It covers the complete authentication flow including token generation with JJWT 0.12.6, Bearer/cookie-based authentication, refresh token rotation, and method-level authorization with @PreAuthorize expressions.
Key capabilities:
- Access and refresh token generation with configurable expiration
- Bearer token and HttpOnly cookie authentication strategies
- Integration with Spring Data JPA and OAuth2 providers
- RBAC with role/permission-based
@PreAuthorizerules - Token revocation and blacklisting for logout/rotation
When to Use
Details
- Repository
- github.com/giuseppe-trisciuoglio/developer-kit
- Category
- Backend & APIs
- First seen
- Apr 16, 2026
More from giuseppe-trisciuoglio/developer-kit
All 95- Spring Data Jpa4.3K
- Turborepo Monorepo4.3K
- Unit Test Boundary Conditions4.3K
- Spring Boot Openapi Documentation4.2K
- Clean Architecture4.2K
- Drawio Logical Diagrams4.2K
- Typescript Security Review4.2K
- Prompt Engineering4.2K
- Nextjs App Router4.1K
- Spring Boot Crud Patterns4.1K
- Zod Validation Utilities4K
- Chunking Strategy4K
- Spring Boot Event Driven Patterns4K
- Nestjs Code Review4K
- Nestjs Best Practices4K
- Spring Boot Cache4K
- Spring Boot Resilience4j4K
- Nextjs Code Review4K
- Unit Test Service Layer4K
- Spring Ai Mcp Server Patterns4K
- Unit Test Wiremock Rest Api4K
- Nextjs Authentication4K
- Spring Boot Actuator4K
- Spring Boot Dependency Injection4K
Similar to Spring Boot Security Jwt
More Backend & APIs
jwt-authenticationpluginagentmarketplace/custom-plugin-nodejs227 installsNode.js JWT authentication guide covering access and refresh tokens, password hashing, and role-based route protection.
auth0-springboot-apiauth0/agent-skills387 installsLead-in for securing Spring Boot REST endpoints with Auth0 JWT validation, scopes, and DPoP binding.
auth-implementation-patternswshobson/agents21.2K installsCatalog-style summary of authentication and authorization patterns covering JWT, OAuth2, sessions, and RBAC.
jwt-securitymindrally/skills1.6K installsGuidelines for JWT authentication covering token creation, validation, storage, and refresh, with concrete security rules.
java-spring-bootpluginagentmarketplace/custom-plugin-java11.8K installsProduction Spring Boot guidance covering REST APIs, Spring Security, Spring Data JPA, and Actuator monitoring.