Assuming that Client in Keycloak is configured with OpenID Connect. First - Got to : Realm -> Realm Settings -> Endpoints. Endpoints will be at the bottom of Realm Settings page. Open 'OpenID Endpoint Configuration' link & from there pick the 'token-endpoint' url. Second - Clients -> Client ID -> Settings From here pick the client ID. Clients -> Client ID -> Credentials From here pick the Client Secret Third - Use the correct username & its password. Fourth -