Skip to content
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

OIDC Dev UI screen is blank after the user authentication #39876

Closed
sberyozkin opened this issue Apr 4, 2024 · 6 comments · Fixed by #39896
Closed

OIDC Dev UI screen is blank after the user authentication #39876

sberyozkin opened this issue Apr 4, 2024 · 6 comments · Fixed by #39896
Assignees
Labels
Milestone

Comments

@sberyozkin
Copy link
Member

Describe the bug

OIDC Dev UI screen is blank after the user authenticates to Keycloak and is redirected back to Dev UI.

I confirmed Quarkus 3.8.2 is OK, fails starting from 3.9.0 and on main

See https://stackoverflow.com/questions/78270560/quarkus-oidc-keycloak-provider-leads-to-a-blank-screen

Expected behavior

No response

Actual behavior

No response

How to Reproduce?

Remove the quarkus.keycloak.devservices.grant.type=client property in this quickstart and do mvn quarkus:dev and then in Dev UI, choose the OIDC card, login to Keycloak as alice:alice

Output of uname -a or ver

No response

Output of java -version

No response

Quarkus version or git rev

No response

Build tool (ie. output of mvnw --version or gradlew --version)

No response

Additional information

No response

@sberyozkin sberyozkin added the kind/bug Something isn't working label Apr 4, 2024
Copy link

quarkus-bot bot commented Apr 4, 2024

/cc @cescoffier (devui), @pedroigor (oidc), @phillip-kruger (devui)

@sberyozkin
Copy link
Member Author

@phillip-kruger and also @michalvavrik, I don't see anything related in the devservices related quarkus-oidc extension code, something else is impacting how the OIDC DevUI SPA is displayed after the redirect to it from Keycloak.

FYI, redirect_uri is http://localhost:8080/q/dev-ui/io.quarkus.quarkus-oidc/keycloak-provider

@sberyozkin
Copy link
Member Author

Confirmed, http://localhost:8080/q/dev-ui/io.quarkus.quarkus-oidc/keycloak-provider gives a blank screen

@sberyozkin
Copy link
Member Author

It is shown correctly if you go to DevUI, and select the OIDC card and click on Keycloak Provider but if you access it directly as http://localhost:8080/q/dev-ui/io.quarkus.quarkus-oidc/keycloak-provider, it is blank

@phillip-kruger
Copy link
Member

Are there any error in the browser console?

@sberyozkin
Copy link
Member Author

@phillip-kruger I've just retried, with 3.9.0, all is clear. It looks like it is about the http://localhost:8080/q/dev-ui/io.quarkus.quarkus-oidc/keycloak-provider endpoint being available only if it is manually linked to from the DevUI/OpenID Connect/Keycloak Provider sequence, but on the redirect back to it, or if you just try to invoke it directly in the browser, it shows nothing.

FYI, in 3.8.2, if I open http://localhost:8080/q/dev-ui/io.quarkus.quarkus-oidc/keycloak-provider, it shows me an initial OIDC DevUI SPA screen correctly

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants