A sample project with Spring Securitty that reads JWT token and utilize method-level security. The project is written on Kotlin. The original code is taken from here: https://github.com/kevcodez/spring-boot-2.3-oauth2-aws-cognito
This version of code is extended a bit to have user groups.