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

JWT validation error

dmytro_shapiro
Employee
Employee
2,938

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
aishwarya_m_n
Associate
Associate

This error might have been because of the mismatch in the region of your trial account and the URL being used. Change the runtime URL while configuring the environment in SAP API Business Hub to bpmruleruntime.rule.cfapps.us10.hana.ondemand.com if your trial account has region as US.