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

Skip OIDC DevConsole setup if quarkus.oidc.auth-server-url can not be accessed at build time #22042

Merged
merged 1 commit into from
Dec 26, 2021

Conversation

sberyozkin
Copy link
Member

@sberyozkin sberyozkin commented Dec 8, 2021

Fixes #21951

Unfortunately this property is required to initialize Dev Console; I've been thinking, may be using OidcConfigurationMetadata in the runtime supplier can be possible - I've tried it today and unfortunately the Arc context is not active at the point the supplier is called. So if the auth-server-url is kept in Vault then OidcDevConsole will not be available - which is not a big problem.
I may create another issue to check what can be done to access OidcConfigurationMetadata in the supplier (it would make the code there cleaner as well).

@phillip-kruger I've also reproduced the error you saw yesterday - it happens in the dev mode, when the discovery is disabled and either authorization-path or token-path are not configured - which is what OIDC Dev UI needs. So I've updated the supplier to do the optional checks only and added a test (which was failing before the updates :-) )

@quarkus-bot quarkus-bot bot added the area/oidc label Dec 8, 2021
@sberyozkin sberyozkin force-pushed the oidc_dev_console_exception branch from d47b372 to 30f47d8 Compare December 23, 2021 19:12
@sberyozkin sberyozkin marked this pull request as ready for review December 23, 2021 19:13
@sberyozkin sberyozkin merged commit 8819dda into quarkusio:main Dec 26, 2021
@quarkus-bot quarkus-bot bot added this to the 2.7 - main milestone Dec 26, 2021
@sberyozkin sberyozkin deleted the oidc_dev_console_exception branch December 26, 2021 11:56
@gsmet gsmet modified the milestones: 2.7 - main, 2.6.2.Final Jan 7, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

read config oidc from vault
3 participants