Postman not working to authenticate in keycloak

Hello,

I’ve been trying to use Postman to see if I can authenticate with Keycloak.
I paste the URL in Postman and define username and password in form-data ( also tried x-www-form-urlencoded ) but I keep getting this error in Keycloak.

2024-11-12 13:25:51,210 WARN [org.keycloak.events] (executor-thread-172) type=“LOGIN_ERROR”, realmId=“5d0dd960-0478-4ca6-b64a-810a3f6f4071”, realmName=“myrealm”, clientId=“null”, userId=“null”, ipAddress=“172.17.0.1”, error=“invalid_request”, reason=“Parameter ‘client_id’ not present or present multiple times in the HTTP request parameters”

I’ve checked and there is only one client_id parameter.

Any ideia what might be the issue ?

I use the token endpoint to authenticate and get the access token. Not sure if this will be useful. See the screenshot for reference. Change the master realm with your realm name.

Apparently everything has to be in x-www-form-urlenconded but I still wasnt able to sucessfully authenticate because the output is not the expected one.

2 things:

  • get an understanding of how the OIDC login works: You first get a login code( which needs to be verfied with the state and challenge) which you then need to exchange for a token
  • understand the difference between public and confidential clients