Your understanding is thorough!
Try to do this:
For the POST to `/oxauth/restv1/token`:
- Send Header `Content-Type: application/x-www-form-urlencoded; charset=UTF-8`
- Do not send param `client_id`
- For `grant_type` param use `urn:ietf:params:oauth:grant-type:uma-ticket` (not `client_credentials`)
The body of the JWT is correct, however account for the header that the `alg` you pass must match the algorithm of the key. To know the right value, visit oxTrust and navigate to `OpenID connect` > `Clients` > `SCIM RP clients`; in field JWKS locate the `kid` chosen and inspect JSON property `alg` .
Example of a header:
```
{
"typ": "JWT",
"alg": "ES384",
"kid": "c9f40353-9662-4fb2-a5e9-17ee57ad31cf"
}
```
Example of a POST:
```
POST /oxauth/restv1/token HTTP/1.1
Accept: application/json
Content-Length: 784
Content-Type: application/x-www-form-urlencoded; charset=UTF-8
Host: localhost:8443
Connection: Keep-Alive
client_assertion_type=urn%3Aietf%3Aparams%3Aoauth%3Aclient-assertion-type%3Ajwt-bearer&ticket=046c4c30-...&grant_type=urn%3Aietf%3Aparams%3Aoauth%3Agrant-type%3Auma-ticket&client_assertion=eyJ0eX...```