Hi - Hopefully you can help me.
I am creating an AWS Lambda Authorizer which uses Okta. It runs fine in JVM mode, but when I try and run it in native mode, I get:
07:00:30 ERROR [io.qu.am.la.ru.AbstractLambdaPollLoop] (Lambda Thread) Failed to run lambda: java.lang.IllegalStateException: No `interface com.okta.jwt.AccessTokenVerifier$Builder` implementation found on the classpath. Have you remembered to include the okta-jwt-verifier-impl.jar in your runtime classpath?
I've added the class path to a reflection config file:
[
{
"name" : "com.okta.jwt.AccessTokenVerifier$Builder",
"allDeclaredConstructors" : true,
"allPublicConstructors" : true,
"allDeclaredMethods" : true,
"allPublicMethods" : true,
"allDeclaredFields" : true,
"allPublicFields" : true
},
{
"name" : "com.okta.jwt.AccessTokenVerifier",
"allDeclaredConstructors" : true,
"allPublicConstructors" : true,
"allDeclaredMethods" : true,
"allPublicMethods" : true,
"allDeclaredFields" : true,
"allPublicFields" : true
},
{
"name" : "com.okta.jwt.JwtVerifiers",
"allDeclaredConstructors" : true,
"allPublicConstructors" : true,
"allDeclaredMethods" : true,
"allPublicMethods" : true,
"allDeclaredFields" : true,
"allPublicFields" : true
}
]
Obviously, the jar is in the POM.
<dependency>
<groupId>com.okta.jwt</groupId>
<artifactId>okta-jwt-verifier-impl</artifactId>
<version>${okta-jwt.version}</version>
</dependency>
GraalVM version: 21.1.0
Quarkus version: 2.0.2.Final
Any thoughts on what I can do to get this problem resolved?
Thanks,
Tom