Integrating with Spring Boot API
Using authaction-spring-boot-starter
Section titled “Using authaction-spring-boot-starter”Add two lines — the starter handles JWKS fetching, caching, audience validation, and the security filter chain automatically.
<dependency> <groupId>com.authaction</groupId> <artifactId>authaction-spring-boot-starter</artifactId> <version>0.1.0</version></dependency># application.properties — this is the entire setupauthaction.domain = myapp.eu.authaction.comauthaction.audience = https://api.myapp.com@GetMapping("/me")public Map<String, Object> me(@CurrentUser Jwt jwt) { return Map.of("sub", jwt.getSubject(), "email", jwt.getClaim("email"));}Full SDK reference: github.com/authaction/authaction-spring-boot-starter