springdoc / springdoc-openapi-demos

Demo for OpenAPI 3 with spring-boot
http://springdoc.org
Apache License 2.0
493 stars 267 forks source link

Demo springdoc-openapi-oauth2 doesn't work #37

Closed cervenf closed 2 years ago

cervenf commented 2 years ago

Describe the bug demo of https://github.com/springdoc/springdoc-openapi-demos/tree/master/springdoc-openapi-oauth2 doesn't works for me.

To Reproduce

Note: when I added "*" to redirect urls in keycloak config, then keycloak login screen was opened. I was able to fill credentials josh@test.com / 123. But then I was redirected to wrong url: http://localhost:8081/oauth2-redirect.html?state=RnJpIEF1ZyAxMyAyMDIxIDE0OjE0OjM4IEdNVCswMjAwIChDZW50cmFsIEV1cm9wZWFuIFN1bW1lciBUaW1lKQ%3D%3D&session_state=3808135b-c54b-4ca2-862e-5e2bf2f53a11&code=0ae8e608-e5ae-4eb2-b627-ea0f6da9d7f1.3808135b-c54b-4ca2-862e-5e2bf2f53a11.b88ce206-63d6-43b6-87c9-ea09d8c02f32

which produced 404

Expected behavior

Screenshots image

bnasslahsen commented 2 years ago

The test URL is: http://localhost:8081/resource-server/swagger-ui.html You are using wrong URL.

cervenf commented 2 years ago

works, thank you :)