spring-security

Configure SecurityFilterChain authentication, authorization, and token validation for Spring applications.

Updated Apr 9, 2026
One-click install
npx skills add https://github.com/ririnto/sinon --skill spring-security-ririnto
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: spring-security
Source: https://github.com/ririnto/sinon/tree/main/plugins/spring/skills/spring-security
Command: npx skills add https://github.com/ririnto/sinon --skill spring-security-ririnto

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

Securing Spring applications requires precise configuration of authentication, authorization, token validation, and security headers to prevent breaches and misconfigurations.

Core Features & Use Cases

  • Secure request handling with SecurityFilterChain, explicit authentication and authorization rules.
  • Support for bearer-token resource servers (JWT or opaque-token), method-level security, session and CSRF policies.
  • Tests and verification to ensure correct security posture across API and browser flows.

Quick Start

Define a SecurityFilterChain that enforces explicit public and protected endpoints using OAuth2 resource-server JWT or opaque tokens.

Frequently Asked Questions about spring-security

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

FAQPage Schema
How do I configure a SecurityFilterChain for JWT authentication in Spring?

Configure JWT authentication by defining a SecurityFilterChain that enforces explicit public and protected endpoints using OAuth2 resource-server JWT or opaque tokens for robust server-side Spring security.

What is the best way to enforce method-level security in a Spring application?

Method-level security is enforced by applying explicit authorization rules across API and web flows. This ensures a robust security posture by validating permissions at the method level before executing server-side Spring application logic.

How do I handle CSRF and session policies for stateless Spring APIs?

Handle CSRF and session policies by configuring explicit security rules within your SecurityFilterChain. This ensures correct token validation strategies and session management for stateless API and browser flows in Spring applications.

Does this approach support both opaque tokens and JWT for Spring resource servers?

Yes, this approach supports configuring bearer-token resource servers using either JWT or opaque tokens. It validates tokens and enforces explicit authentication and authorization rules across your server-side Spring application API flows.

How do I test and verify my Spring security configuration across API and browser flows?

Verify your Spring security configuration by applying tests and verification guidance that ensure correct security posture across API and browser flows. This validates explicit authentication and token validation strategies in your SecurityFilterChain.

Why do I need explicit authentication and authorization rules instead of default Spring security?

Explicit authentication and authorization rules prevent breaches and misconfigurations. Defining precise SecurityFilterChain rules for public and protected endpoints ensures a robust security posture for token-based server-side Spring applications.