Install any skill in seconds. Free to start, no credit card required.
Get Started Free →Configures Spring Boot 4 and Spring Security 7 as an OAuth2 resource server that validates JWTs and enforces scope-based authorization.
88% 100%+12 ptsof test cases passed
Passed 25 of 25 test cases with the skill, and 22 of 25 without it.
This test ran on v2. v6 is the current version and hasn’t been tested on gemini-3.6-flash yet.
3 of 3 safety checks passed
203 agent runs
2 forksA fork is a copy of this skill that someone made so they could edit it for their own use. The original doesn't change.
Spring Boot 4.x ships Spring Security 7 — lambda DSL only; and(), authorizeRequests(),
antMatchers(), and AntPathRequestMatcher/MvcRequestMatcher are gone
(requestMatchers("/path/**") is backed by PathPatternRequestMatcher).
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-security-oauth2-resource-server</artifactId>
</dependency>
@Configuration
@EnableWebSecurity
@EnableMethodSecurity
public class ResourceServerConfig {
@Bean
public SecurityFilterChain filterChain(HttpSecurity http) throws Exception {
return http
.csrf(AbstractHttpConfigurer::disable)
.sessionManagement(s -> s.sessionCreationPolicy(STATELESS))
.authorizeHttpRequests(auth -> auth
.requestMatchers("/actuator/health").permitAll()
.requestMatchers("/api/v1/admin/**").hasAuthority("SCOPE_admin")
.anyRequest().authenticated()
)
.oauth2ResourceServer(oauth2 -> oauth2
.jwt(jwt -> jwt.jwtAuthenticationConverter(jwtAuthConverter()))
)
.build();
}
@Bean
Skills that do similar work, with their benchmark result.
Next to this one in the catalogue, plus more from the same author.