-
-
Notifications
You must be signed in to change notification settings - Fork 525
The OAuth Authorize button missing in Swagger UI when native compiled with Spring Boot 3.0 #2255
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
Comments
Same issue using 3.1.0. |
It seems that native compile removes code that has no implementation in classes (even classes with only annotations). OpenApiConfig has been removed. It was resolved by setting @OpenAPIDefinition, @SecuritySchema. in the class with @SpringBootApplication (ResourceServerApp.java for the demo repository). |
Hello @uc4w6c, thanks for your help and for explaining the problem! I would prefer adding For details, see GraalVM Native Image Support, Source Code Generation. Shouldn't the source code in the Spring-boot OpenAPI Demo applications be updated, e.g. the Also, maybe it is worth mentioning that adding |
That's true. I will update the docs. |
Thanks for the update. I confirm it's now published: https://springdoc.org/#is-graalvm-supported |
Describe the bug
To Reproduce
Version used:
Steps to reproduce the behavior:
Use the
demo-oauth2
example in https://github.com/springdoc/springdoc-openapi-demos, branch2.x
Native compile the
oauth-resource-server-webflux
project and run it:Open the Web UI, http://127.0.0.1:8082/resource-server/swagger-ui.html, and note that the Authorize button is missing:
Expected behavior
Use the same project as above, build and run it:
Open the Web UI, http://127.0.0.1:8082/resource-server/swagger-ui.html, and note that the Authorize button is present:
The text was updated successfully, but these errors were encountered: