springboot-security

Configure JWT and OAuth2 authentication with input validation and CVE scanning for Spring Boot services.

Updated Mar 26, 2026
One-click install
npx skills add https://github.com/luongldptit/move-ticket --skill springboot-security-luongldptit
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: springboot-security
Source: https://github.com/luongldptit/move-ticket/tree/main/.agent/skills/springboot-security
Command: npx skills add https://github.com/luongldptit/move-ticket --skill springboot-security-luongldptit

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill solves the common problem of Spring Boot services having critical security vulnerabilities from misconfigured authentication, unvalidated user inputs, exposed secrets, and missing security guardrails, which can lead to data breaches, unauthorized access, and compliance failures.

Core Features & Use Cases

  • Authentication & Authorization Setup: Provides implementation patterns for secure JWT, OAuth2, and session-based authentication, plus role-based and attribute-based access control with deny-by-default defaults.
  • Input & Data Protection: Guides implementation of Bean Validation, SQL injection prevention, password hashing, CSRF configuration, and security header setup.
  • Use Case: For example, when building a new customer-facing REST API, use this Skill to correctly configure JWT auth, validate all incoming request DTOs, set strict CORS policies, externalize database credentials, and run dependency CVE scans to avoid common OWASP Top 10 vulnerabilities.

Quick Start

Use the springboot-security skill to review the security configuration of your new Spring Boot customer API and implement JWT authentication, input validation, and externalized secret management.

Frequently Asked Questions about springboot-security

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I configure JWT authentication in a Spring Boot application?

To configure JWT authentication in Spring Boot, you need to implement secure token generation and validation filters. This Skill provides implementation patterns for secure JWT authentication, ensuring your API endpoints are protected against unauthorized access.

How do I prevent SQL injection in Spring Boot REST APIs?

Preventing SQL injection in Spring Boot APIs involves using parameterized queries and validating user inputs. This Skill guides you through implementing Bean Validation and SQL injection prevention techniques to secure your data layer.

What is the best way to manage external secrets and database credentials in Spring Boot?

Managing external secrets in Spring Boot requires externalizing credentials from your application properties. This Skill helps you implement external secrets management to prevent exposed secrets and avoid critical security vulnerabilities.

How do I set up method-level authorization and role-based access control in Spring Security?

Setting up method-level authorization in Spring Security involves configuring deny-by-default access controls. This Skill provides implementation patterns for role-based and attribute-based access control to enforce proper authorization.

Does this Skill support OAuth2 authentication implementation for Spring Boot services?

Yes, this Skill supports OAuth2 authentication implementation. It provides specific implementation patterns for integrating OAuth2 alongside JWT and session-based authentication to secure your Spring Boot services.

How do I scan Spring Boot project dependencies for CVEs?

Scanning Spring Boot dependencies for CVEs requires integrating security analysis into your build workflow. This Skill enables dependency security management by providing patterns for CVE scanning to identify vulnerable project dependencies.