How to use Quarkus OIDC Client with client_secret_post authentication option

178 Views Asked by At

I need to contact an auth-server through a POST call, in which I need to pass as body an object containing username, password, tenant and role.

The documentation states that I need to define

quarkus.oidc-client.credentials.client-secret.value=mysecret
quarkus.oidc-client.credentials.client-secret.method=post

but I can't understand what "mysecret" is supposed to be. I tried to use the path of the object, a JSON, a variable name, but everytime I get

[Exception 0] java.util.NoSuchElementException: No value present
[Exception 1] io.quarkus.oidc.OIDCException

I'm quite confused about this behaviour, how should I define this client-secret.value property?

I'm using Quarkus 3.2.6 with Java 17

0

There are 0 best solutions below