Skip to content

Integrating with Spring Boot API

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 setup
authaction.domain = myapp.eu.authaction.com
authaction.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