User authentication via Keycloak

I am trying to authenticate a user via Keycloak. Example from the documentation:

{
    "msg": "method",
    "method": "login",
    "id":"42",
    "params": [
        {
            "oauth": {
                "credentialToken":"credential-token",
                "credentialSecret":"credential-secret"
            }
        }
    ]
}

How to get credentialToken and credentialSecret to send request?