- Version info: 'GraalVM 22.2.0 Java 17 CE'
- Java version info: '17.0.4+8-jvmci-22.2-b06'
- C compiler: cc (apple, arm64, 14.0.0)
- Garbage collector: Serial GC
- Micronaut: 3.8.1
- Build native image
./gradlew nativeCompile
- Execute native image
./extensions-token-info
- Authenticate with Basic Authentication at
http://localhost:8080/login
with credential Username = admin and Password = password - Request should respond with JWT cookie.
- Perform GET
http://localhost:8080/token_info
request. - Observe the 'extensions' json object encompassing the
roles
array.
{
"extensions": {
"roles": [
"ADMIN"
]
},
"active": true,
"username": "[email protected]",
"exp": 1673910387,
"iat": 1673906787,
"nbf": 1673906787,
"sub": "[email protected]",
"iss": "extensions-token-info"
}