-
Notifications
You must be signed in to change notification settings - Fork 2.7k
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
Migrate OIDC to the new Dev UI #33653
Migrate OIDC to the new Dev UI #33653
Conversation
Hey @michalvavrik Great stuff, will look at it more likely on Mon, enjoy the rest of the weekend, cheers ! |
This comment has been minimized.
This comment has been minimized.
5f55a12
to
e39aa97
Compare
Rebased this PR onto #33648 |
This comment has been minimized.
This comment has been minimized.
Hey @michalvavrik First of all, major thanks for making this PR happen, appreciated. Initially I was keeping getting The other problem I have noticed is that after Keycloak restarts, I can't reconnect to it without clearing all History in the browser, for example, after Have a look at the above 2 issues please when you get a chance Thanks |
Interesting, I tested every scenario with 3 quickstarts (sometimes I adjusted it little bit for my needs) and |
that makes sense, if component was already created, it has no way to find out it should recall |
I think you can replace LitElement with QwcHotReloadElement and implement reload method. If you scratch around you will find an example |
thanks! |
Yeah, in the old Dev UI, the reloading was happening indirectly, as it would involve an HTTP request, great though Phillip has prepared a lot of tools like |
@sberyozkin couldn't reproduce 500 and:
Did you meant that 500 was wrong, but then it worked as expected, or is something I mentioned above incorrect?
I'd be surprised if ti wasn't, Can you please provide steps to reproduce (high level, just so that I understand at which configuration and what is that I'm looking for) |
everything you mentioned there is correct (
I literally just built your PR branch, then went to |
It worries me, but can't reproduce. I'll fix hot reload thing and we shall see if you run into this again when doing review then. Thanks for response. |
e39aa97
to
d699d16
Compare
So
I guess it is not a problem for other component, however we need to update query params (remove them) when Keycloak container was restarted as code and state etc. would be invalid. I won't open issue because I don't know how to reproduce it. Sometimes when you really need to reproduce it, you just can't and then it happens few times in row. Anyway - I introduced properties state which is workaround, but has nice side affect that we will know when properties could have changed (BE changed and we need to perform change detection) and won't perform any actions if nothing changed. IMHO this workaround should be kept anyway. |
I am not sure I follow, but I am sure we can solve your issue. Can you record it somehow ? Or do you want a quick meet to discuss ? |
@phillip-kruger gave me few tips on Zulip, I'll try them tomorrow |
This comment has been minimized.
This comment has been minimized.
Thank you, @michalvavrik, and @phillip-kruger. Michal, we can simplify it, for example, if I've logged in as So, lets say, I'm testing |
I believe what you describe already work (or TBH it works better than what you describe as it requires no action at all from you), I'll just reflect changes suggested by Phillip and ping you here when the PR is ready for the review. |
It did not work for me :-), but yeah, I'll try again when the PR gets updated |
d699d16
to
5b1acea
Compare
I updated change detection, there could be done more (probably easiest way would be https://lit.dev/docs/templates/directives/#keyed or couple watched properties under one object), but IMO it is resource-friendly enough. If you run into any scenario that is not according to your expectations or bug, just write me steps how to reproduce it and I'll fix it. Thanks |
Also something must be done about this section https://quarkus.io/guides/security-openid-connect-dev-services#dev-services-and-ui-support-for-other-openid-connect-providers I didn't update it in this PR intentionally as I'll need your feedback. If you want to keep previous behavior, then we probably have to introduce build item in OIDC depl. that if present, we don't create our own OIDC provider. Also I'll need to check that other extension can deliver |
✔️ The latest workflow run for the pull request has completed successfully. It should be safe to merge provided you have a look at the other checks in the summary. |
Hi @michalvavrik Works all as expected, thanks for checking everything, things can be tuned further as needed going forward.
We already have it, Line 144 in 5b1acea
We can do it later, Steph can probably confirm it too once he starts testing his alternative OIDC Dev UI extension (Testing OIDC endpoints from UI without having to login to Keycloak) |
closes: #32031