cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

JWT validation error

dmytro_shapiro
Employee
Employee
2,941

Tutorials: https://developers.sap.com/tutorials/cp-cf-businessrules09-test-apis.html
--------------------------

Hi,

I'm getting status code 401 and JWT validation error in the header:

www-authenticate: Bearer error="invalid_token", error_description="JWT verification failed: Do not trust 'jku' token header.", error_uri="https://tools.ietf.org/html/rfc6750#section-3.1"

I made several attempts to configure the environment, while starting from scratch, but the result is the same.

Additional information:

endpoint: /v2/workingset-rule-services

request URL: https://bpmruleruntime.cfapps.eu10.hana.ondemand.com/rules-service/rest/v2/workingset-rule-services

clientid: "sb-clone-1da15af8-171b-4807-ace8-c20938a7025b!b42586|bpmrulebroker!b2018"

Payload:

{
  "RuleServiceId": "53ede73bb93147128459ee22b1eddec4",
  "Vocabulary": [
    {
      "Employee": {
        "IsFullTimeEmployee": true,
        "countryofCompany": "USA",
        "jobTitle": "Engineer II",
         "company": "ACE_USA"
       }
    }
  ]
}
View Entire Topic
shahDarshan
Discoverer
0 Likes

If you have your trial account in the US region and are getting this error, the solution is to change the URL(Runtimrurl) while setting the environment. Change the url to 'us10' instead of 'eu10'. Refer the image attached.