Closed IanPUiUk closed 8 months ago
/cc @pedroigor (oidc), @sberyozkin (oidc)
Also it seems like setting an env var for the value isn't getting picked up. If i set QUARKUS_OIDC_CLIENT_GRANT_OPTIONS_PASSWORD_PASSWORD to have a value i the environment I still get the NPE
@IanPUiUk
Also it seems like setting an env var for the value isn't getting picked up. If i set QUARKUS_OIDC_CLIENT_GRANT_OPTIONS_PASSWORD_PASSWORD to have a value i the environment I still get the NPE
AFAIK, due to a prefix in the oidc-client
config root, one needs to have a property declared, at least without the value, like password:
in your YAML fragment, CC @radcortez
Agreed about enforcing that the password grant password must be set
Another finding that may help: If I use an exact match env var it works fine:
quarkus.oidc-client.grant-optios.password.password=thepassword
Describe the bug
I have a @RestClient bean that uses @OidcFilter to configure a token to use when making calls and so uses oidc-client.
When starting quarkus if
quarkus.oidc-client.grant.type
= password andquarkus.oidc-client.grant-options.password.password
is not set then an NPE is thrown at startup...Expected behavior
The missing config value should be reported
Actual behavior
A NullPointerException is thrown
How to Reproduce?
application.yaml
Output of
uname -a
orver
windows 11
Output of
java -version
21
Quarkus version or git rev
3.2.9.Final
Build tool (ie. output of
mvnw --version
orgradlew --version
)maven 3.9.5 through IntelliJ
Additional information
No response