Hi Team,
I have added a policy and associated with an api. However when i hit the api from postman, it responds as
{
“error”: “Key not authorized: no matching policy found”
}
policies.json
{
“59d23feda75915000131b4d0”: {
“rate”: 1000,
“per”: 1,
“quota_max”: 100,
“quota_renewal_rate”: 60,
“access_rights”: {
“41433797848f41a558c1573d3e55a410”: {
“api_name”: “admin”,
“api_id”: “8272be5b2d0d499968d05bc0c667a175”,
“versions”: [
“Default”
]
}
},
“org_id”: “59b924cf49f9740001ce7586”,
“hmac_enabled”: false,
“key_expires_in”: 0
}
}
tyk.conf
“policies”: {
“policy_source”: “file”,
“policy_record_name”: “/opt/tyk-gateway/policies/policies.json”
},
api - The api is jwt enabled
“jwt_signing_method”: “rsa”,
“jwt_source”: “***”,
“jwt_identity_base_field”: “apisub”,
“jwt_client_base_field”: “”,
“jwt_policy_field_name”: “59d23feda75915000131b4d0”,