-
Notifications
You must be signed in to change notification settings - Fork 34
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Micronaut Okta integration with GraalVM Native Image error #257
Comments
Just in case, can you please try with GraalVM 21.1.0 or, even better, with 21.2.0? I think some issues like the one you mentioned were fixed in those versions. |
Thanks I tried in 21.2 and here is the error -H:Class=com.example.Application BUILD SUCCESSFUL in 18m 40s
| / () ___ _ __ ___ _ __ __ _ _ | | 17:16:23.869 [main] INFO io.micronaut.runtime.Micronaut - Startup completed in 44ms. Server Running: http://localhost:8080
|
Issue description
I am running the Micronaut Okta integration
https://guides.micronaut.io/latest/micronaut-oauth2-okta-gradle-java.html
Current OS Mac Catalina
GraalVM 20.3 and 21.2 EE
Micronaut 2.5.11
a) i cannot get the logout uri to work although the uri is the same in the app.yml and the okta settings,
endpoints:
logout:
path: '/oauth/logout' # should match Okta's Logout redirect URI in App settings
error Identity Provider:
Error Code: invalid_request
Description: The 'post_logout_redirect_uri' parameter must be a Logout redirect URI in the client app settings: https://dev-81797895-admin.okta.com/admin/app/oidc_client/instance/0oa1cvvtvsjhYqjM95d7#tab-general
this is now fixed i removed path and just kept it as
endpoints:
logout:
get-allowed: true
and it okta app settings as the following 'http://localhost:8080/logout'
b) with native image I get the following error
Amitpals-MacBook-Pro-2:oktademo adhillon$ ./gradlew nativeImage Task :compileJava Note:
Writing resource-config.json file to destination: META-INF/native-image/com.example/oktademo/resource-config.jsonNote: Creating bean classes for 1 type elements
Task :nativeImage
[application:10157] classlist: 5,643.23 ms, 0.94 GB
[application:10157] (cap): 16,035.07 ms, 0.94 GB
[application:10157] setup: 18,697.41 ms, 0.94 GB
[application:10157] (clinit): 1,650.58 ms, 5.11 GB
[application:10157] (typeflow): 70,429.73 ms, 5.11 GB
[application:10157] (objects): 55,852.46 ms, 5.11 GB
[application:10157] (features): 5,306.78 ms, 5.11 GB
[application:10157] analysis: 138,257.03 ms, 5.11 GB`
c) but when I run the native image it starts but and serves the starting page and redirects via oauth to okta but does not complete authentication I get this error in the logs
The text was updated successfully, but these errors were encountered: